{{-- Mobile toggle --}}
@yield('topbar-title', $title)
{{ \Carbon\Carbon::now()->locale('id')->isoFormat('dddd, D MMMM Y') }}
{{-- Notification bell --}}
@php
$notifCount = \App\Models\Payment::where('status','unpaid')
->whereNotNull('proof_image')->count();
@endphp
@if($notifCount > 0)
{{ $notifCount > 9 ? '9+' : $notifCount }}
@endif
{{-- Refund alert --}}
@php $refundCount = \App\Models\Refund::where('status','pending')->count(); @endphp
@if($refundCount > 0)
{{ $refundCount }}
@endif
{{-- User menu --}}
{{ strtoupper(substr(auth()->user()->name, 0, 1)) }}
{{ Str::words(auth()->user()->name, 2, '') }}
Administrator
-
{{ auth()->user()->name }}{{ auth()->user()->email }}
- Pengaturan