@php
$moduleMap = [
'FOE' => ['color' => 'bg-orange', 'icon' => 'fas fa-concierge-bell'],
'BNQT' => ['color' => 'bg-red', 'icon' => 'fas fa-hotel'],
'KTN' => ['color' => 'bg-red', 'icon' => 'fas fa-hotel'],
'POS' => ['color' => 'bg-yellow', 'icon' => 'fas fa-utensils'],
'INV' => ['color' => 'bg-cyan', 'icon' => 'fas fa-boxes'],
'HKG' => ['color' => 'bg-purple', 'icon' => 'fas fa-broom'],
'HRMS' => ['color' => 'bg-pink', 'icon' => 'fas fa-user-tie'],
'ASM' => ['color' => 'bg-teal', 'icon' => 'fas fa-barcode'],
'ADM' => ['color' => 'bg-blue', 'icon' => 'fas fa-cogs'],
'PKG' => ['color' => 'bg-gray', 'icon' => 'fas fa-parking'],
'TD' => ['color' => 'bg-green', 'icon' => 'fas fa-bus'],
'BPASS' => ['color' => 'bg-olive', 'icon' => 'fas fa-receipt'],
'PURS' => ['color' => 'bg-pink', 'icon' => 'fas fa-shopping-cart'],
];
@endphp
@if(isset($modules) && is_array($modules))
@foreach($modules as $module)
@php
$modid = $module->modid;
if (!isset($moduleMap[$modid]))
continue;
$config = $moduleMap[$modid];
@endphp
@endif
@if($modid === 'HRMS')
@else
@endif
@endforeach
{{ $module->module_name }}