<?php
declare(strict_types=1);

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

MenuRegistry::register('interviews', [
    'label_ar'   => 'المقابلات',
    'label_en'   => 'Interviews',
    'icon'       => 'calendar',
    'route'      => '/interviews',
    'permission' => 'interview.view',
    'parent'     => null,
    'order'      => 650,
    'children'   => [
        ['label_ar' => 'كل المقابلات', 'label_en' => 'All Interviews', 'route' => '/interviews', 'permission' => 'interview.view', 'order' => 1],
    ],
]);

PermissionRegistry::register('interviews', [
    'interview.view'     => ['ar' => 'عرض المقابلات', 'en' => 'View Interviews'],
    'interview.schedule' => ['ar' => 'جدولة مقابلة',  'en' => 'Schedule Interview'],
    'interview.decide'   => ['ar' => 'البت في مقابلة', 'en' => 'Decide Interview'],
    'interview.conduct'  => ['ar' => 'إجراء مقابلة',   'en' => 'Conduct Interview'],
]);