@php
// Icons for the top-level permission categories.
$categoryIcons = [
'Administrator' => 'users',
'Configuration' => 'settings',
'Main' => 'layout',
'Reporting' => 'bar-chart-2',
];
// Icons for the sub-categories nested within each category.
$subCategoryIcons = [
'Company' => 'briefcase',
'Customer' => 'user',
'Roles' => 'shield',
'Users' => 'user-check',
'Branch Management' => 'map-pin',
'Gold Price' => 'dollar-sign',
'EKYC' => 'eye',
'Inventory Management' => 'box',
'Spread Management' => 'trending-up',
'Withdrawal' => 'arrow-down-circle',
'Audit Trail' => 'activity',
'Contract' => 'file',
'Transactions' => 'clock',
'Reference Data' => 'database',
'Additional Charges' => 'percent',
'Ledger' => 'book',
];
@endphp
@foreach ($permissionGroups as $category => $subCategories)
@foreach ($subCategories as $subCategory => $permissions)
@php $subCategoryKey = $category . '|' . $subCategory; @endphp
@foreach ($permissions as $permission)
@php
$actionLabel = ucwords(
str_replace(
['_', '-'],
' ',
\Illuminate\Support\Str::after(
$permission->name,
'.',
),
),
);
@endphp
@endforeach
@endforeach
@endforeach
No permissions match your search.