@extends('layouts.app') @section('title', 'Patrol Checkpoints') @section('no-page-header') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif

Patrol Checkpoints

Manage patrol checkpoints and monitoring points

Add Checkpoint

Total Checkpoints

{{ $checkpoints->count() }}

Completed

{{ $checkpoints->where('status', 'completed')->count() }}

Missed

{{ $checkpoints->where('status', 'missed')->count() }}

Active

{{ $checkpoints->where('status', 'active')->count() }}

@forelse($checkpoints ?? [] as $checkpoint) @empty @endforelse
Checkpoint Schedule Location Coordinates Order Status Actions
{{ $checkpoint->checkpoint_name }}
Order: {{ $checkpoint->order_sequence }}
{{ $checkpoint->schedule?->schedule_name ?? 'N/A' }} {{ $checkpoint->schedule?->location?->name ?? 'N/A' }} {{ $checkpoint->latitude }}, {{ $checkpoint->longitude }} {{ $checkpoint->order_sequence }} {{ $checkpoint->status }}
@csrf @method('DELETE')
No checkpoints found.
{{ $checkpoints->links() }}
@endsection @section('scripts') @endsection