@vite(['resources/css/app.css', 'resources/js/app.js'])
@php $user = auth()->user(); $role = $user->role->value; /* * Nav grouped by what the work actually is, not by controller. * * `match` is stated per item rather than derived from the route name. The * three File Exchange screens all sit under the `batches.` prefix, so a * wildcard would light up "All Batches" whenever any of them is open. */ $groups = [ 'Overview' => [ ['label' => 'Dashboard', 'route' => $user->homeRoute(), 'icon' => 'grid', 'match' => [$user->homeRoute(), 'dashboard'], 'roles' => ['admin', 'efu_ops', 'bipl_ops']], ], 'Pipeline' => [ ['label' => 'Subscriptions', 'route' => 'subscriptions.index', 'icon' => 'list', 'match' => ['subscriptions.*'], 'roles' => ['admin', 'efu_ops']], ['label' => 'Claims', 'route' => 'claims.index', 'icon' => 'doc', 'match' => ['claims.*'], 'roles' => ['admin', 'efu_ops']], ['label' => 'Customers', 'route' => 'customers.index', 'icon' => 'users', 'match' => ['customers.*'], 'roles' => ['admin', 'efu_ops']], ['label' => 'Products', 'route' => 'products.index', 'icon' => 'shield', 'match' => ['products.*', 'plans.*'], 'roles' => ['admin', 'efu_ops']], ], 'File Exchange' => [ ['label' => 'Lead Extracts', 'route' => 'batches.lead-exports', 'icon' => 'download', 'match' => ['batches.lead-exports', 'batches.lead-exports.*'], 'roles' => ['admin', 'efu_ops', 'bipl_ops']], ['label' => 'File Uploads', 'route' => 'batches.uploads', 'icon' => 'upload', 'match' => ['batches.uploads', 'batches.uploads.*'], 'roles' => ['admin', 'efu_ops', 'bipl_ops']], ['label' => 'All Batches', 'route' => 'batches.index', 'icon' => 'folder', 'match' => ['batches.index', 'batches.show', 'batches.download'], 'roles' => ['admin', 'efu_ops', 'bipl_ops']], ], 'Administration' => [ ['label' => 'Users', 'route' => 'users.index', 'icon' => 'users', 'match' => ['users.*'], 'roles' => ['admin']], ['label' => 'Settings', 'route' => 'settings.index', 'icon' => 'cog', 'match' => ['settings.*'], 'roles' => ['admin']], ['label' => 'Audit Log', 'route' => 'audit.index', 'icon' => 'clock', 'match' => ['audit.*'], 'roles' => ['admin']], ], ]; $isActive = fn (array $item) => request()->routeIs($item['match']); $initials = collect(explode(' ', $user->name))->take(2)->map(fn ($p) => mb_substr($p, 0, 1))->join(''); @endphp{{ $user->name }}
{{ $user->email }}
@yield('subtitle')
@endif