Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- [
- 'title' => 'Тикеты',
- 'condition' => request()->user()->is_junior_operator || request()->user()->is_operator || request()->user()->is_senior_operator || request()->user()->is_super_admin,
- 'items' => [
- ['title' => 'Статистика закрытых тикетов', 'route' => route('admin.unloading_operator_statistics')],
- ['title' => 'Статистика использованных шаблонов', 'route' => route('admin.tickets.statistics')],
- [
- 'title' => 'Отметки тикетов',
- 'route' => route('admin.tickets.marks'),
- 'condition' => request()->user()->is_senior_operator,
- ],
- [
- 'title' => 'Отчёт по отметкам',
- 'route' => route('admin.tickets.marks.statistics_index'),
- 'condition' => request()->user()->is_senior_operator,
- ],
- ],
- ],
- [
- 'title' => 'Люди',
- 'condition' => request()->user()->is_operator || request()->user()->is_senior_operator || request()->user()->is_ruling_operator || request()->user()->is_super_admin || request()->user()->is_identification_operator || request()->user()->is_lawyer,
- 'items' => [
- ['title' => 'Поиск', 'route' => route('admin.users.search')],
- ['title' => 'Опросы', 'route' => route('admin.questionnaire.questions', ["questionnaire" => 1])],
- ['title' => 'Удаленные профили', 'route' => route('admin.deleted_users.index')],
- ['title' => 'Промокоды', 'route' => route('admin.promocodes.index'), 'condition' => request()->user()->is_super_admin,],
- ['title' => 'Проверка транзакции', 'route' => route('admin.invoice_info')],
- ['title' => 'История возвратов ЮKassa', 'route' => route('admin.yookassa.refunds')],
- ],
- ],
- [
- 'title' => 'Транзакции',
- 'route' => route('admin.invoice_info'),
- 'condition' => request()->user()->is_lawyer,
- ],
- [
- 'title' => 'Боты',
- 'route' => route('admin.bots.index'),
- 'condition' => request()->user()->is_super_admin,
- ],
- [
- 'title' => 'Идентификация',
- 'route' => route('admin.identification.index'),
- 'condition' => request()->user()->is_identification_operator || request()->user()->is_super_admin,
- ],
- [
- 'title' => 'Рассылки',
- 'route' => route('admin.mailings.index'),
- 'condition' => request()->user()->is_super_admin,
- ],
- [
- 'title' => 'Список операторов',
- 'route' => route('admin.schedule.index'),
- 'condition' => request()->user()->is_senior_operator || request()->user()->is_super_admin,
- ],
- [
- 'title' => 'Обжалование',
- 'route' => route('admin.appeal.status', ['status' => App\Enums\AppealStatus::New]),
- 'condition' => request()->user()->is_lawyer || request()->user()->is_super_admin,
- ],
- [
- 'title' => 'Главная',
- 'route' => route('home'),
- ],
- [
- 'title' => 'Блог и статьи',
- 'items' => [
- ['title' => 'Новый блог', 'route' => route('admin.blog.create.category')],
- [
- 'title' => 'Статьи и новости',
- 'route' => route('admin.articles.index'),
- 'condition' => request()->user()->is_content_manager || request()->user()->is_super_admin,
- ],
- ],
- ],
- [
- 'title' => 'SuperApp',
- 'condition' => request()->user()->is_super_admin || request()->user()->is_admin,
- 'items' => [
- ['title' => 'Админка SuperApp', 'route' => route('admin.superapp.types')],
- ],
- ],
- [
- 'title' => 'Рассылки',
- 'condition' => request()->user()->is_super_admin || request()->user()->is_admin,
- 'items' => [
- ['title' => 'WhatsApp', 'route' => route('admin.wazzup_channels')],
- ],
- ],
- [
- 'title' => 'Партнеры',
- 'condition' => request()->user()->is_super_admin || request()->user()->is_admin,
- 'items' => [
- ['title' => 'Статистика партнеров', 'route' => route('stats.index')],
- ],
- ],
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement