@extends('admin.layout') @section('title', 'Notifications') @section('header', 'Notifications') @section('content')

Notifications

View and manage all pending tickets and updates

{{ method_exists($notifications, 'total') ? $notifications->total() : $notifications->count() }} pending notification{{ (method_exists($notifications, 'total') ? $notifications->total() : $notifications->count()) != 1 ? 's' : '' }}
View All Tickets
@if($notifications->count() > 0)
@foreach($notifications as $notification)
@if($notification->status == 'open')
@else
@endif

Ticket #{{ $notification->ticket_id }}

@if($notification->priority == 'high') High Priority @elseif($notification->priority == 'medium') Medium Priority @else Low Priority @endif @if($notification->status == 'open') Open @else Assigned @endif

{{ $notification->issue_description }}

{{ $notification->apartment->name ?? 'Unknown Apartment' }}
@if($notification->technician)
{{ $notification->technician->name }}
@endif
{{ $notification->created_at->format('M d, Y - h:i A') }}
{{ $notification->created_at->diffForHumans() }}
View Details @if($notification->status == 'open') Assign Technician @endif
Ticket ID: {{ $notification->id }}
@endforeach
@if(method_exists($notifications, 'links')) {{ $notifications->links() }} @endif
@else

No Notifications

All caught up! There are no pending notifications at the moment.

View All Tickets
@endif
@endsection