@auth
@php
$user = auth()->user();
// Mengambil avatar_url menggunakan null-safe operator agar tidak crash jika profile null
$avatarUrl = $user->profile?->avatar_url;
// Mengambil huruf pertama dari username dan ubah ke kapital
$initial = strtoupper(substr($user->username, 0, 1));
@endphp
@else
@endauth
@php
$cartCount = \App\Models\Order\Carts::where('user_id', auth()->id() ?? 1)->count();
@endphp
{{ $cartCount }}
notifications_active
Notifikasi
notifications_none
Belum ada notifikasi