@stack('head') @php $nav = function (string $route, string $icon, string $label, ?string $count = null, ?string $pattern = null) use ($queueCounts) { $active = request()->routeIs($pattern ?? $route) ? 'active' : ''; $badge = $count && ($queueCounts[$count] ?? 0) > 0 ? ''.$queueCounts[$count].'' : ''; return ''.e($label).''.$badge.''; }; @endphp

@yield('title', 'Dashboard')

@yield('actions')
@include('partials.flash') @yield('content')
@stack('scripts')