<?php
declare(strict_types=1);

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

PermissionRegistry::register('access_matrix', [
    'access_matrix.view'   => ['ar' => 'عرض مصفوفة الصلاحيات', 'en' => 'View Access Matrix'],
    'access_matrix.manage' => ['ar' => 'إدارة مصفوفة الصلاحيات', 'en' => 'Manage Access Matrix'],
]);

MenuRegistry::register('access_matrix', [
    'label_ar'   => 'مصفوفة الصلاحيات',
    'label_en'   => 'Access Matrix',
    'icon'       => 'grid-3x3',
    'route'      => '/access-matrix',
    'permission' => 'access_matrix.view',
    'order'      => 710,
    'children'   => [
        ['label_ar' => 'المصفوفة الكاملة', 'route' => '/access-matrix', 'permission' => 'access_matrix.view', 'order' => 1],
        ['label_ar' => 'مقارنة أدوار', 'route' => '/access-matrix/compare', 'permission' => 'access_matrix.view', 'order' => 2],
        ['label_ar' => 'صحة الصلاحيات', 'route' => '/access-matrix/health', 'permission' => 'access_matrix.view', 'order' => 3],
    ],
]);
