<?php
declare(strict_types=1);

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

MenuRegistry::register('pricing', [
    'label_ar'   => 'التسعير',
    'label_en'   => 'Pricing',
    'icon'       => 'banknote',
    'route'      => '/pricing',
    'permission' => 'pricing.view',
    'parent'     => null,
    'order'      => 850,
    'children'   => [
        ['label_ar' => 'لوحة التسعير',   'label_en' => 'Pricing Dashboard',   'route' => '/pricing',                    'permission' => 'pricing.view',                  'order' => 1],
        ['label_ar' => 'الخصومات الخاصة', 'label_en' => 'Special Discounts',   'route' => '/pricing/special-discounts',  'permission' => 'pricing.special_discounts.view', 'order' => 2],
    ],
]);

PermissionRegistry::register('pricing', [
    'pricing.view'                  => ['ar' => 'عرض لوحة التسعير',     'en' => 'View Pricing Dashboard'],
    'pricing.edit'                  => ['ar' => 'تعديل الأسعار والرسوم', 'en' => 'Edit Prices & Fees'],
    'pricing.special_discounts.view'   => ['ar' => 'عرض الخصومات الخاصة',  'en' => 'View Special Discounts'],
    'pricing.special_discounts.create' => ['ar' => 'إنشاء خصم خاص',       'en' => 'Create Special Discount'],
    'pricing.special_discounts.edit'   => ['ar' => 'تعديل الخصومات الخاصة','en' => 'Edit Special Discounts'],
]);
