<?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' => 'Membership',        'route' => '/tutorials/membership',       'permission' => 'tutorials.view', 'order' => 1],
        ['label_ar' => 'النشاط الرياضي',         'label_en' => 'Sports Activity',   'route' => '/tutorials/sports-activity',  'permission' => 'tutorials.view', 'order' => 2],
        ['label_ar' => 'الخزينة',                'label_en' => 'Treasury',          'route' => '/tutorials/treasury',         'permission' => 'tutorials.view', 'order' => 3],
        ['label_ar' => 'المحاسبة والماليات',     'label_en' => 'Accounting',        'route' => '/tutorials/accounting',       'permission' => 'tutorials.view', 'order' => 4],
        ['label_ar' => 'الموارد البشرية',        'label_en' => 'HR',                'route' => '/tutorials/hr',               'permission' => 'tutorials.view', 'order' => 5],
        ['label_ar' => 'المشتريات',              'label_en' => 'Procurement',       'route' => '/tutorials/procurement',      'permission' => 'tutorials.view', 'order' => 6],
        ['label_ar' => 'المخازن',                'label_en' => 'Inventory',         'route' => '/tutorials/inventory',        'permission' => 'tutorials.view', 'order' => 7],
        ['label_ar' => 'الخزينة الرئيسية',       'label_en' => 'Cashier',           'route' => '/tutorials/cashier',          'permission' => 'tutorials.view', 'order' => 8],
        ['label_ar' => 'المبيعات',               'label_en' => 'Sales',             'route' => '/tutorials/sales',            'permission' => 'tutorials.view', 'order' => 9],
        ['label_ar' => 'المدفوعات',              'label_en' => 'Payments',          'route' => '/tutorials/payments',         'permission' => 'tutorials.view', 'order' => 10],
        ['label_ar' => 'الإيجارات',              'label_en' => 'Rentals',           'route' => '/tutorials/rentals',          'permission' => 'tutorials.view', 'order' => 11],
        ['label_ar' => 'الدعم الفني',            'label_en' => 'Support',           'route' => '/tutorials/support',          'permission' => 'tutorials.view', 'order' => 12],
        ['label_ar' => 'الإعدادات',              'label_en' => 'Settings',          'route' => '/tutorials/settings',         'permission' => 'tutorials.view', 'order' => 13],
        ['label_ar' => 'الأدوار والصلاحيات',     'label_en' => 'Roles',             'route' => '/tutorials/roles',            'permission' => 'tutorials.view', 'order' => 14],
        ['label_ar' => 'التقارير',               'label_en' => 'Reports',           'route' => '/tutorials/reports',          'permission' => 'tutorials.view', 'order' => 15],
        ['label_ar' => 'المستندات',              'label_en' => 'Documents',         'route' => '/tutorials/documents',        'permission' => 'tutorials.view', 'order' => 16],
        ['label_ar' => 'الفروع',                 'label_en' => 'Branches',          'route' => '/tutorials/branches',         'permission' => 'tutorials.view', 'order' => 17],
        ['label_ar' => 'الأخبار',                'label_en' => 'News',              'route' => '/tutorials/news',             'permission' => 'tutorials.view', 'order' => 18],
        ['label_ar' => 'سير العمل',              'label_en' => 'Workflow',          'route' => '/tutorials/workflow',         'permission' => 'tutorials.view', 'order' => 19],
    ],
]);

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