@extends('layouts.portal') @section('title', 'Notifications - Client Portal') @section('page_title', 'Notifications') @section('page_subtitle', 'Your updates and alerts') @section('sidebar') @include('client.partials.sidebar', ['active' => 'notifications']) @endsection @section('content')

My Notifications

{{ $unreadNotifications }} Unread
@if($notifications->count() > 0)
Your Notifications
@foreach($notifications as $notification)
@if($notification->type == 'error') @elseif($notification->type == 'warning') @elseif($notification->type == 'info') @else @endif {{ $notification->title }}
@if(!$notification->read_at) New @endif
{{ $notification->message }}
@if(isset($notification->data['will_id'])) @endif
{{ $notification->created_at->format('M j, Y H:i A') }}
@endforeach
@if($notifications->hasPages()) @endif
@else
No Notifications

You're all caught up! No new notifications.

New notifications will appear here when your will status changes or when our team sends you updates.

@endif
@endsection