@vite(['resources/css/app.css', 'resources/js/app.js']) @stack('styles') @php $activeRoute = request()->route() ? request()->route()->getName() : ''; $user = auth()->user(); // Ensure user is authenticated (should not reach here if not authenticated due to middleware) if (!$user) { abort(401, 'Unauthenticated'); } @endphp

{{ config('app.name', 'Puskodal 110') }}

{{ $user?->name }} {{ ucfirst($user->role ?? 'guest') }}
@yield('content')
@stack('scripts')