@extends('layouts.portal') @section('title', 'Notifications - Staff Portal') @section('page_title', 'Notifications') @section('page_subtitle', 'Manage your notifications') @section('sidebar') @include('staff.partials.sidebar', ['active' => 'notifications']) @endsection @section('content')

Notifications

{{ $unreadNotifications }} Unread
@if($notifications->count() > 0)
Recent 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 }}
{{ $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 clients submit corrections requests or other important actions are required.

@endif
@endsection