@extends('layouts.app') @section('title', 'Client Services') @section('content')
{{ session('success') }}
{{ session('error') }}
Manage client services and patrol assignments
| Service | Client | Type | Assigned Employees | Checkpoints | Status | Actions |
|---|---|---|---|---|---|---|
|
{{ $service->service_name }}
{{ $service->description }}
|
{{ $service->client?->name ?? '-' }} | {{ $service->service_type }} |
@if($service->employeeAssignments->count() > 0)
@foreach($service->employeeAssignments->take(3) as $assignment)
@if($assignment->employee && $assignment->is_active)
{{ $assignment->employee->full_name }}
@if($assignment->assignment_type !== 'primary')
({{ ucfirst($assignment->assignment_type) }})
@endif
@endif
@endforeach
@if($service->employeeAssignments->count() > 3)
+{{ $service->employeeAssignments->count() - 3 }} more
@endif
@else
No employees assigned
@endif
|
{{ $service->checkpoints->count() }} | {{ $service->is_active ? 'Active' : 'Inactive' }} | |
| No services found. | ||||||