<?php
declare(strict_types=1);

use App\Core\Registries\PermissionRegistry;
use App\Core\Registries\MenuRegistry;

PermissionRegistry::register('training_groups', [
    'training_group.view'   => ['ar' => 'عرض المجموعات التدريبية',   'en' => 'View Training Groups'],
    'training_group.manage' => ['ar' => 'إدارة المجموعات التدريبية', 'en' => 'Manage Training Groups'],
]);

MenuRegistry::register('training_groups', [
    'label_ar'   => 'المجموعات التدريبية',
    'icon'       => 'users',
    'route'      => '/training-groups',
    'permission' => 'training_group.view',
    'order'      => 399,
    'parent'     => 'sports_activities',
    'children'   => [
        ['label_ar' => 'المجموعات',       'label_en' => 'Groups',             'route' => '/training-groups',      'permission' => 'training_group.view',   'order' => 1],
        ['label_ar' => 'طلبات النقل',     'label_en' => 'Transfer Requests',  'route' => '/transfer-requests',    'permission' => 'training_group.manage', 'order' => 2],
        ['label_ar' => 'قائمة الانتظار',  'label_en' => 'Waiting List',       'route' => '/waiting-list',         'permission' => 'training_group.view',   'order' => 3],
    ],
]);
