@extends('layouts.dashboard') @section('title', 'Tracking Alerts') @section('content')
Critical Alerts
Overdue Visits
No Location Updates
Resolved Today
| Alert | Employee & Client | Details | Severity | Time | Actions |
|---|---|---|---|---|---|
|
@if($type == 'overdue') Overdue Visit
@elseif($type == 'no_location') No Location Update
@else Route Deviation
@endif
{{ $message }}
|
{{ $visit->employee->name }}
{{ $visit->client->name }}
|
@if($visit->current_address)
{{ Str::limit($visit->current_address, 25) }}
@else
Location unknown
@endif
Scheduled: {{ $visit->scheduled_date->format('H:i') }}
@if($visit->scheduled_end)
- {{ $visit->scheduled_end->format('H:i') }}
@endif
|
@if($severity == 'critical') Critical @elseif($severity == 'warning') Warning @else Info @endif | @if($type == 'overdue') {{ $visit->scheduled_end->diffForHumans() }} @elseif($type == 'no_location') {{ $visit->last_location_update->diffForHumans() }} @else {{ $visit->updated_at->diffForHumans() }} @endif | |
|
No active alerts at the moment Great! Everything is running smoothly. |
|||||
No resolved alerts in the past 24 hours
Resolved alerts will appear here for 24 hours