@stack('styles')
{!! $breadcrumb ?? '
' . (View::hasSection('title') ? View::getSections()['title'] : 'Dashboard') . '
' !!}
View site
{{-- Notification bell --}} @php $_bellQuotes = \App\Models\Quote::where('status','new')->count(); $_bellContacts = \App\Models\ContactSubmission::where('status','unread')->count(); $_bellTotal = $_bellQuotes + $_bellContacts; @endphp
@if($_bellTotal > 0)
{{ $_bellTotal > 9 ? '9+' : $_bellTotal }}
@endif
Notifications
New quotes @if($_bellQuotes > 0)
{{ $_bellQuotes }}
@endif
Unread contacts @if($_bellContacts > 0)
{{ $_bellContacts }}
@endif
{{ strtoupper(substr(auth()->user()->name,0,1)) }}
{{ auth()->user()->name }}
{{ auth()->user()->roles->first()?->name ?? 'User' }}
Profile
Sign out
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @yield('content')
@stack('scripts')