<?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' => 'Sports Activity', 'route' => '/tutorials/sports-activity', 'permission' => 'tutorials.view', 'order' => 1],
        ['label_ar' => 'شئون العضوية', 'label_en' => 'Membership', 'route' => '/tutorials/membership', 'permission' => 'tutorials.view', 'order' => 2],
    ],
]);

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