@extends('layouts.admin') @section('title', 'Notifications') @push('styles') @endpush @section('content')

Notifications

Admin alerts for support tickets, disputes, and system events

@if($unreadCount > 0) {{ $unreadCount }} unread
@csrf
@endif
@if($notifications->count() > 0)
@foreach($notifications as $notification) @php $notifUrl = \App\Support\NotificationLinker::for($notification); $iconType = $notification->type ?? 'info'; $iconMap = [ 'support' => 'fa-headset', 'escrow' => 'fa-shield-halved', 'dispute' => 'fa-gavel', 'verification' => 'fa-id-card', 'user' => 'fa-user', 'system' => 'fa-cog', ]; $icon = $iconMap[$iconType] ?? 'fa-bell'; @endphp
{{ $notification->title }}
{{ $notification->message }}
{{ $notification->created_at->diffForHumans() }}
@if(!$notification->read_at)
@csrf @method('PUT')
@endif
@endforeach
@include('partials.table-pagination', ['paginator' => $notifications, 'label' => 'notifications']) @else

No notifications yet. You'll see alerts for new support tickets, disputes, and system events here.

@endif
@endsection