06081159b6
Infrastructure for a portal-wide in-app help system:
* Users have hints_enabled (default true) and dismissed_hints (JSON
array) columns. User::shouldSeeHint(key) checks both.
* app/Support/Hints.php — single-source-of-truth registry with 14
pilot hints across Service (5), CRM (3), Depozit (3), Finanțe (3).
Each entry has RO/RU/EN title + body + optional next-step + links.
* <x-hint key="wo.dashboard.overview" /> Blade component renders a
small "?" icon with Alpine.js popover; the popover shows title,
body, next-step, related links and an "X" button that POSTs to
/app/hints/{key}/dismiss.
* HintController handles dismiss (per key), toggle (global on/off)
and reset (clear dismissed + re-enable). Routes are auth:web.
* /app/faq page (Filament Page under Admin group) renders the whole
registry grouped by area with a live search box and buttons to
toggle global hints or reset dismissed ones.
* Wired 3 pilot hints into the WO dashboard: title (overview), Docs
tab PDF preview, and the Chat client card.
Follow-ups: extend registry to cover more pages and add <x-hint>
tags where useful. Filament resource fields can also reuse the same
copy via ->hint()/->helperText().
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
80 lines
3.6 KiB
PHP
80 lines
3.6 KiB
PHP
<?php
|
|
|
|
return [
|
|
// ── Группы (заголовки разделов сайдбара) ──
|
|
'group' => [
|
|
'Admin' => 'Администрирование',
|
|
'Analiză' => 'Аналитика',
|
|
'Anvelope' => 'Шины',
|
|
'CRM' => 'CRM',
|
|
'Depozit' => 'Склад',
|
|
'Finanțe' => 'Финансы',
|
|
'Magazin' => 'Магазин',
|
|
'Marketing' => 'Маркетинг',
|
|
'Service' => 'Сервис',
|
|
'Stoc & Finanțe' => 'Склад и финансы',
|
|
'Subcontractare' => 'Субподряд',
|
|
'Tinichigerie' => 'Кузовной цех',
|
|
],
|
|
|
|
// ── Пункты навигации ──
|
|
'label' => [
|
|
'FAQ & Ghid' => 'FAQ и гид',
|
|
'API Tokens' => 'API токены',
|
|
'Achiziții' => 'Закупки',
|
|
'Angajați' => 'Сотрудники',
|
|
'Apeluri' => 'Звонки',
|
|
'Asistent AI' => 'AI-ассистент',
|
|
'Atelierul meu' => 'Моя мастерская',
|
|
'Automobile' => 'Автомобили',
|
|
'Backup' => 'Резервные копии',
|
|
'Bonusuri & avansuri' => 'Премии и авансы',
|
|
'Calendar' => 'Календарь',
|
|
'Calendar vizual' => 'Визуальный календарь',
|
|
'Canale marketing' => 'Маркетинговые каналы',
|
|
'Cereri' => 'Заявки',
|
|
'Cheltuieli' => 'Расходы',
|
|
'Clienți' => 'Клиенты',
|
|
'Clienți magazin' => 'Клиенты магазина',
|
|
'Coeficienți preț' => 'Ценовые коэффициенты',
|
|
'Comenzi online' => 'Онлайн-заказы',
|
|
'Companii' => 'Компании',
|
|
'Depozit' => 'Склад',
|
|
'Depozite' => 'Склады',
|
|
'Unități de măsură' => 'Единицы измерения',
|
|
'Facturi & abonamente' => 'Счета и подписки',
|
|
'Finanțe (consolidat)' => 'Финансы (сводно)',
|
|
'Fișe lucru' => 'Заказ-наряды',
|
|
'Furnizori' => 'Поставщики',
|
|
'Import factură Excel' => 'Импорт счёта Excel',
|
|
'Integrări' => 'Интеграции',
|
|
'Jurnal activitate' => 'Журнал действий',
|
|
'KPI mecanici' => 'KPI механиков',
|
|
'Lucrări terți' => 'Работы субподрядчиков',
|
|
'Norme-ore' => 'Нормо-часы',
|
|
'Pipeline' => 'Воронка',
|
|
'Pipeline (tabel)' => 'Воронка (таблица)',
|
|
'Planuri' => 'Тарифы',
|
|
'Plăți' => 'Платежи',
|
|
'Posturi de lucru' => 'Рабочие места',
|
|
'Procentaj' => 'Проценты',
|
|
'Protocoale forsunki' => 'Протоколы форсунок',
|
|
'Rapoarte' => 'Отчёты',
|
|
'Recomandări' => 'Рекомендации',
|
|
'Roluri & Drepturi' => 'Роли и права',
|
|
'Salarii' => 'Зарплаты',
|
|
'Scaner' => 'Сканер',
|
|
'Seturi anvelope' => 'Комплекты шин',
|
|
'Setări' => 'Настройки',
|
|
'Setări plăți' => 'Настройки платежей',
|
|
'Subcontractori' => 'Субподрядчики',
|
|
'Tehnicieni' => 'Техники',
|
|
'Template-uri mesaje' => 'Шаблоны сообщений',
|
|
'Tinichigerie / Detailing' => 'Кузов / Детейлинг',
|
|
'Utilizatori' => 'Пользователи',
|
|
'VIN-căutare' => 'Поиск по VIN',
|
|
'Încărcare STO' => 'Загрузка СТО',
|
|
'Șabloane servicii' => 'Шаблоны услуг',
|
|
],
|
|
];
|