@extends('layouts.admin')
@section('title', 'Notifications')
@push('styles')
@endpush
@section('content')
@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)
@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