<?php
declare(strict_types=1);

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

MenuRegistry::register('support', [
    'label_ar'   => 'الدعم الفني',
    'label_en'   => 'Support',
    'icon'       => 'life-buoy',
    'route'      => '/support',
    'permission' => 'support.view',
    'parent'     => null,
    'order'      => 900,
    'children'   => [
        ['label_ar' => 'التذاكر',       'label_en' => 'Tickets',      'route' => '/support',        'permission' => 'support.view',   'order' => 1],
        ['label_ar' => 'تذكرة جديدة',  'label_en' => 'New Ticket',   'route' => '/support/create',  'permission' => 'support.create', 'order' => 2],
    ],
]);

PermissionRegistry::register('support', [
    'support.view'    => ['ar' => 'عرض تذاكر الدعم',    'en' => 'View Support Tickets'],
    'support.create'  => ['ar' => 'إنشاء تذكرة دعم',    'en' => 'Create Support Ticket'],
    'support.reply'   => ['ar' => 'الرد على التذاكر',    'en' => 'Reply to Tickets'],
    'support.assign'  => ['ar' => 'تعيين التذاكر',       'en' => 'Assign Tickets'],
    'support.close'   => ['ar' => 'إغلاق التذاكر',      'en' => 'Close Tickets'],
    'support.manage'  => ['ar' => 'إدارة تذاكر الدعم',  'en' => 'Manage Support Tickets'],
]);
