<?php
declare(strict_types=1);

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

MenuRegistry::register('tutorials', [
    'label_ar'   => 'الشروحات',
    'label_en'   => 'Tutorials',
    'icon'       => 'graduation-cap',
    'route'      => '/tutorials',
    'permission' => 'tutorials.view',
    'parent'     => null,
    'order'      => 990,
    'children'   => [
        ['label_ar' => 'المحاسبة والماليات',     'label_en' => 'Accounting',        'route' => '/tutorials/accounting',       'permission' => 'tutorials.view', 'order' => 1],
        ['label_ar' => 'الموارد البشرية',        'label_en' => 'HR',                'route' => '/tutorials/hr',               'permission' => 'tutorials.view', 'order' => 2],
        ['label_ar' => 'المشتريات',              'label_en' => 'Procurement',       'route' => '/tutorials/procurement',      'permission' => 'tutorials.view', 'order' => 3],
        ['label_ar' => 'المخازن',                'label_en' => 'Inventory',         'route' => '/tutorials/inventory',        'permission' => 'tutorials.view', 'order' => 4],
        ['label_ar' => 'الخزينة الرئيسية',       'label_en' => 'Cashier',           'route' => '/tutorials/cashier',          'permission' => 'tutorials.view', 'order' => 5],
        ['label_ar' => 'المبيعات',               'label_en' => 'Sales',             'route' => '/tutorials/sales',            'permission' => 'tutorials.view', 'order' => 6],
        ['label_ar' => 'المدفوعات',              'label_en' => 'Payments',          'route' => '/tutorials/payments',         'permission' => 'tutorials.view', 'order' => 7],
        ['label_ar' => 'المدربين',               'label_en' => 'Coaches',           'route' => '/tutorials/coaches',          'permission' => 'tutorials.view', 'order' => 8],
        ['label_ar' => 'الكارنيهات',             'label_en' => 'Carnets',           'route' => '/tutorials/carnets',          'permission' => 'tutorials.view', 'order' => 9],
        ['label_ar' => 'المرافق',                'label_en' => 'Facilities',        'route' => '/tutorials/facilities',       'permission' => 'tutorials.view', 'order' => 10],
        ['label_ar' => 'البطولات',               'label_en' => 'Tournaments',       'route' => '/tutorials/tournaments',      'permission' => 'tutorials.view', 'order' => 11],
        ['label_ar' => 'الإيجارات',              'label_en' => 'Rentals',           'route' => '/tutorials/rentals',          'permission' => 'tutorials.view', 'order' => 12],
        ['label_ar' => 'الدعم الفني',            'label_en' => 'Support',           'route' => '/tutorials/support',          'permission' => 'tutorials.view', 'order' => 13],
        ['label_ar' => 'الإعدادات',              'label_en' => 'Settings',          'route' => '/tutorials/settings',         'permission' => 'tutorials.view', 'order' => 14],
        ['label_ar' => 'المخالفات',              'label_en' => 'Fines',             'route' => '/tutorials/fines',            'permission' => 'tutorials.view', 'order' => 15],
        ['label_ar' => 'الأدوار والصلاحيات',     'label_en' => 'Roles',             'route' => '/tutorials/roles',            'permission' => 'tutorials.view', 'order' => 16],
        ['label_ar' => 'المقابلات',              'label_en' => 'Interviews',        'route' => '/tutorials/interviews',       'permission' => 'tutorials.view', 'order' => 17],
        ['label_ar' => 'التقسيط',                'label_en' => 'Installments',      'route' => '/tutorials/installments',     'permission' => 'tutorials.view', 'order' => 18],
        ['label_ar' => 'التقارير',               'label_en' => 'Reports',           'route' => '/tutorials/reports',          'permission' => 'tutorials.view', 'order' => 19],
        ['label_ar' => 'العضوية الموسمية',       'label_en' => 'Seasonal',          'route' => '/tutorials/seasonal',         'permission' => 'tutorials.view', 'order' => 20],
        ['label_ar' => 'المستندات',              'label_en' => 'Documents',         'route' => '/tutorials/documents',        'permission' => 'tutorials.view', 'order' => 21],
        ['label_ar' => 'الفروع',                 'label_en' => 'Branches',          'route' => '/tutorials/branches',         'permission' => 'tutorials.view', 'order' => 22],
        ['label_ar' => 'الأخبار',                'label_en' => 'News',              'route' => '/tutorials/news',             'permission' => 'tutorials.view', 'order' => 23],
        ['label_ar' => 'سير العمل',              'label_en' => 'Workflow',          'route' => '/tutorials/workflow',          'permission' => 'tutorials.view', 'order' => 24],
        ['label_ar' => 'الاشتراكات',             'label_en' => 'Subscriptions',     'route' => '/tutorials/subscriptions',    'permission' => 'tutorials.view', 'order' => 25],
        ['label_ar' => 'الحجوزات',               'label_en' => 'Reservations',      'route' => '/tutorials/reservations',     'permission' => 'tutorials.view', 'order' => 26],
        ['label_ar' => 'مركز المباريات',         'label_en' => 'Match Center',      'route' => '/tutorials/match-center',     'permission' => 'tutorials.view', 'order' => 27],
        ['label_ar' => 'إدارة حمامات السباحة',   'label_en' => 'Pool Management',   'route' => '/tutorials/pool-management',  'permission' => 'tutorials.view', 'order' => 28],
    ],
]);

PermissionRegistry::register('tutorials', [
    'tutorials.view' => ['ar' => 'عرض الشروحات', 'en' => 'View Tutorials'],
]);
