<?php
declare(strict_types=1);

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

MenuRegistry::register('transfers', [
    'label_ar' => 'التحويلات والفصل',
    'label_en' => 'Transfers & Separations',
    'icon' => 'swap',
    'route' => '/transfers',
    'permission' => 'transfer.view',
    'parent' => null,
    'order' => 700,
    'children' => [
        ['label_ar' => 'طلبات التحويل', 'label_en' => 'Transfer Requests', 'route' => '/transfers', 'permission' => 'transfer.view', 'order' => 1],
        ['label_ar' => 'حالات الطلاق', 'label_en' => 'Divorce Cases', 'route' => '/divorce', 'permission' => 'transfer.view', 'order' => 2],
        ['label_ar' => 'حالات الوفاة', 'label_en' => 'Death Cases', 'route' => '/death', 'permission' => 'transfer.view', 'order' => 3],
        ['label_ar' => 'طلبات التنازل', 'label_en' => 'Waiver Requests', 'route' => '/waivers', 'permission' => 'waiver.view', 'order' => 4],
    ],
]);

PermissionRegistry::register('transfers', [
    'transfer.initiate' => ['ar' => 'بدء تحويل/فصل', 'en' => 'Initiate Transfer'],
    'transfer.approve'  => ['ar' => 'موافقة تحويل/فصل', 'en' => 'Approve Transfer'],
    'transfer.view'     => ['ar' => 'عرض التحويلات', 'en' => 'View Transfers'],
    'separation.initiate' => ['ar' => 'بدء فصل', 'en' => 'Initiate Separation'],
    'separation.approve'  => ['ar' => 'موافقة فصل', 'en' => 'Approve Separation'],
    'separation.view'     => ['ar' => 'عرض الفصل', 'en' => 'View Separations'],
    'waiver.initiate' => ['ar' => 'بدء تنازل', 'en' => 'Initiate Waiver'],
    'waiver.approve'  => ['ar' => 'موافقة تنازل', 'en' => 'Approve Waiver'],
    'waiver.view'     => ['ar' => 'عرض التنازلات', 'en' => 'View Waivers'],
]);