@extends('admin.layout') @section('title', 'Pusat Notifikasi Admin') @section('content')
notifications_active

Pusat Notifikasi Admin

@if($unreadCount > 0) {{ $unreadCount }} Baru @endif

Kelola notifikasi pembatalan, perubahan jadwal (reschedule), eskalasi pesanan, dan update sistem.

@if($unreadCount > 0)
@csrf
@endif
Total Notifikasi all_inbox
{{ number_format($totalCount) }}

Semua riwayat

Belum Dibaca mark_email_unread
{{ number_format($unreadCount) }}

Perlu perhatian

Batal & Reschedule event_busy
{{ number_format($cancelCount + $rescheduleCount) }}

{{ $cancelCount }} batal, {{ $rescheduleCount }} reschedule

Eskalasi Order priority_high
{{ number_format($escalationCount) }}

Butuh intervensi operator

Mitra & Keuangan payments
{{ number_format($mitraCount + $withdrawalCount) }}

{{ $mitraCount }} KYC, {{ $withdrawalCount }} tarik dana

search
@if(request()->hasAny(['search', 'status', 'category'])) Reset Filter @endif
@forelse($notifications as $notif) @php $theme = $notif->color_theme; $isUnread = !$notif->is_read; $data = $notif->data ?? []; @endphp
{{ $notif->icon }}
{{ $notif->category_label }} @if($notif->reference_id) #{{ $notif->reference_id }} @endif @if($isUnread) Baru @endif • {{ $notif->created_at ? $notif->created_at->diffForHumans() : '-' }} ({{ $notif->created_at ? $notif->created_at->format('d M Y, H:i') : '' }} WIB)

{{ $notif->title }}

{{ $notif->message }}

@if(!empty($data))
@if(isset($data['customer_name']))
person Konsumen: {{ $data['customer_name'] }}
@endif @if(isset($data['therapist_name']))
spa Terapis: {{ $data['therapist_name'] }}
@endif @if(isset($data['cancelled_by']))
person_cancel Oleh: {{ $data['cancelled_by'] }}
@endif @if(isset($data['old_date']) && isset($data['new_date']))
schedule Perubahan Jadwal: {{ $data['old_date'] }} ({{ $data['old_time'] ?? '' }}) arrow_forward {{ $data['new_date'] }} ({{ $data['new_time'] ?? '' }})
@endif @if(isset($data['reason']))
info Alasan: {{ $data['reason'] }}
@endif
@endif
@if($notif->action_url) Lihat Detail arrow_forward @endif @if($isUnread) @endif
@empty
notifications_off

Tidak Ada Notifikasi

@if(request()->hasAny(['category', 'status', 'search'])) Tidak ada notifikasi yang cocok dengan filter atau pencarian Anda. @else Saat ini tidak ada notifikasi masuk untuk Admin. @endif

@if(request()->hasAny(['category', 'status', 'search'])) Lihat Semua Notifikasi @endif
@endforelse
@if($notifications->hasPages())
{{ $notifications->links() }}
@endif
@endsection @section('scripts') @endsection