@extends('layouts.base') @section('body')
{{-- ── Sidebar ─────────────────────────────────────────────────────── --}} {{-- ── Main ─────────────────────────────────────────────────────────── --}}

@yield('page-title', 'Dashboard')

@hasSection('page-subtitle')

@yield('page-subtitle')

@endif
@php $unread = auth()->user()->unreadNotificationsCount(); @endphp @if($unread > 0) {{ $unread > 9 ? '9+' : $unread }} @endif
{{ auth()->user()->name }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
@yield('content')
@endsection