TapakMP
{{--
--}}
  • {{-- Menampilkan angka total notifikasi --}} @if (isset($globalUnreadCount) && $globalUnreadCount > 0) {{ $globalUnreadCount }} @elseif(isset($globalNotifications) && count($globalNotifications) > 0) {{ count($globalNotifications) }} @endif
    • @php $totalNotif = isset($globalUnreadCount) && $globalUnreadCount > 0 ? $globalUnreadCount : (isset($globalNotifications) ? count($globalNotifications) : 0); @endphp Anda memiliki {{ $totalNotif }} notifikasi baru Lihat Semua

    • {{-- Loop Notifikasi Dinamis --}} @if (isset($globalNotifications) && count($globalNotifications) > 0) @foreach ($globalNotifications as $notif)
    • {{ $notif['title'] }}

      {{-- Mendukung key 'msg' atau 'message' agar tidak error --}}

      {{ $notif['msg'] ?? ($notif['message'] ?? '') }}


    • @endforeach @else
    • Tidak ada notifikasi baru

    • @endif
    • Tampilkan semua notifikasi
  • @if (Auth::user()->anggota?->foto_profil) Profile @else Profile @endif {{ Auth::user()->anggota?->nama_lengkap ?? Auth::user()->email }}
    • {{ Auth::user()->anggota?->nama_lengkap ?? Auth::user()->email }}
      {{ Auth::user()->role?->nama_role ?? 'Pengguna' }}

    • My Profile

    • {{--
    • Account Settings

    • --}} {{--
    • Need Help?

    • --}}
    • Sign Out
      @csrf