<?php
declare(strict_types=1);

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

MenuRegistry::register('fines', [
    'label_ar' => 'المخالفات والغرامات',
    'label_en' => 'Violations & Fines',
    'icon'       => 'alert',
    'route'      => '/violations',
    'permission' => 'fine.view',
    'parent'     => null,
    'order'      => 530,
    'children'   => [
        ['label_ar' => 'المخالفات', 'label_en' => 'Violations', 'route' => '/violations', 'permission' => 'fine.view',    'order' => 1],
        ['label_ar' => 'الغرامات',  'label_en' => 'Fines',      'route' => '/fines',      'permission' => 'fine.view',    'order' => 2],
    ],
]);

PermissionRegistry::register('fines', [
    'fine.view'    => ['ar' => 'عرض الغرامات',   'en' => 'View Fines'],
    'fine.impose'  => ['ar' => 'فرض غرامة',      'en' => 'Impose Fine'],
    'fine.collect' => ['ar' => 'تحصيل غرامة',    'en' => 'Collect Fine'],
    'fine.waive'   => ['ar' => 'إعفاء من غرامة', 'en' => 'Waive Fine'],
]);