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

Notifications

Stay updated on your escrow activity

@if($unreadCount > 0) {{ $unreadCount }} unread @endif
@if($notifications->count() > 0)
@foreach($notifications as $notification) @php $notifUrl = \App\Support\NotificationLinker::for($notification); @endphp
@php $iconType = $notification->type ?? 'info'; $iconMap = [ 'support' => 'fa-headset', 'escrow' => 'fa-shield-halved', 'dispute' => 'fa-gavel', 'verification' => 'fa-id-card', 'wallet' => 'fa-wallet', 'marketplace_order' => 'fa-shopping-bag', 'review' => 'fa-star', 'message' => 'fa-envelope', 'success' => 'fa-check-circle', 'warning' => 'fa-exclamation-triangle', 'danger' => 'fa-times-circle', ]; $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 updates about your escrow transactions here.

@endif
@endsection