@extends('layouts.app') @section('title', 'Patrol Assignments') @section('content')
@if(session('success'))

{{ session('success') }}

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

{{ session('error') }}

@endif

Patrol Assignments

Manage employee patrol assignments and schedules

Add Assignment
@forelse($assignments as $assignment) @empty @endforelse
Employee Client Sites Assignment Type Start Date Status Actions
{{ $assignment->employee?->full_name ?? 'N/A' }}
{{ $assignment->employee?->email ?? 'N/A' }}
{{ $assignment->client?->name ?? '-' }} {{ $assignment->service?->service_name ?? '-' }} {{ ucfirst($assignment->assignment_type) }} {{ $assignment->start_date ? $assignment->start_date->format('M d, Y') : '-' }} {{ $assignment->is_active ? 'Active' : 'Inactive' }}
@csrf @method('DELETE')
No assignments found.
Showing {{ $assignments->firstItem() }} to {{ $assignments->lastItem() }} of {{ $assignments->total() }} assignments
{{ $assignments->links() }}
@endsection