@extends('layouts.app') @section('title', 'Geofence Monitoring') @section('no-page-header') @section('content')
Real-time Geofence Monitoring
{{ $stats['total_geofences'] }}

Total Geofences

{{ $stats['active_geofences'] }}

Active Geofences

{{ $stats['unresolved_violations'] }}

Unresolved Violations

{{ $stats['today_violations'] }}

Today's Violations

Live Geofence Map

Interactive map will be displayed here

Integration with Google Maps API
Recent Violations
@forelse($recentViolations as $violation)
{{ $violation->geofence->name }}
{{ $violation->employee->full_name }}
{{ $violation->violation_time->format('h:i A') }}
@empty

No recent violations

@endforelse
Active Employee Tracking
@forelse($activeEmployees as $employee) @empty @endforelse
Employee Last Location Coordinates Geofence Status Last Update Actions
{{ $employee->full_name }}
{{ $employee->profile->employee_id ?? '' }}
Location Tracked {{ $employee->latestLocation->latitude ?? 'N/A' }}, {{ $employee->latestLocation->longitude ?? 'N/A' }} {{ $employee->latestLocation->updated_at?->diffForHumans() ?? 'N/A' }}
No active employees with location data
@endsection @section('scripts') @endsection