@vite(['resources/css/app.css', 'resources/js/app.js']) @php $sidebarLinks = [ [ 'name' => 'Dashboard', 'route' => 'management.dashboard', 'icon' => '' ], [ 'name' => 'Business Units & Branches', 'route' => 'management.organization.business-units', 'active_pattern' => ['management.organization.*', 'management.business-units.*', 'management.branches.*'], 'icon' => '', 'submenus' => [ ['name' => 'Business Units', 'route' => 'management.organization.business-units', 'active_pattern' => ['management.organization.business-units', 'management.business-units.*']], ['name' => 'Branches & Stations', 'route' => 'management.organization.branches', 'active_pattern' => ['management.organization.branches', 'management.branches.*']], ['name' => 'Hierarchy Topology', 'route' => 'management.organization.structure'], ['name' => 'Corporate Profile', 'route' => 'management.organization.index'], ] ], [ 'name' => 'Procurement & Approvals', 'route' => 'management.procurement', 'active_pattern' => ['management.procurement*', 'management.approvals*'], 'icon' => '', 'submenus' => [ ['name' => 'Purchase Orders', 'route' => 'management.procurement', 'active_pattern' => 'management.procurement*'], ['name' => 'Approval Center', 'route' => 'management.approvals', 'active_pattern' => 'management.approvals*'], ] ], [ 'name' => 'Inventory', 'route' => 'management.inventory', 'active_pattern' => 'management.inventory*', 'icon' => '' ], [ 'name' => 'Finance & Billing', 'route' => 'management.finance', 'active_pattern' => 'management.finance*', 'icon' => '' ], [ 'name' => 'Users & Staff', 'route' => 'management.users.index', 'active_pattern' => ['management.users.*', 'management.roles.*'], 'icon' => '', 'submenus' => [ ['name' => 'Staff Directory', 'route' => 'management.users.index', 'active_pattern' => 'management.users.*'], ['name' => 'Roles & Permissions', 'route' => 'management.roles.index', 'active_pattern' => 'management.roles.*'], ] ], [ 'name' => 'Reports & Audit', 'route' => 'management.reports', 'active_pattern' => ['management.reports*', 'management.audit*'], 'icon' => '', 'submenus' => [ ['name' => 'Administrative Reports', 'route' => 'management.reports'], ['name' => 'Audit & Control Center', 'route' => 'management.audit'], ] ], [ 'name' => 'Settings', 'route' => 'management.settings.system', 'active_pattern' => 'management.settings.*', 'icon' => '', 'submenus' => [ ['name' => 'System Preferences', 'route' => 'management.settings.system'], ['name' => 'Corporate Profile', 'route' => 'management.settings.organization'], ['name' => 'Financial Settings', 'route' => 'management.settings.financial'], ['name' => 'Tax Configuration', 'route' => 'management.settings.tax'], ['name' => 'Numbering & Codes', 'route' => 'management.settings.numbering'], ['name' => 'Notifications & Alerts', 'route' => 'management.settings.notifications'], ] ], ]; @endphp
@php $currentUser = auth()->user(); $userName = $currentUser->name ?? 'Administrator'; @endphp
@yield('content')