@extends('layouts.user') @section('title', 'Active Guards Check-in') @section('content')

Active Guards Check-in

@if($activeGuards->isEmpty())

No Active Guards

There are no active shifts or patrols at the moment.

@else
@foreach($activeGuards as $index => $guard)
{{ substr($guard->employee->first_name, 0, 1) }}

{{ $guard->employee->first_name }} {{ $guard->employee->last_name }}

{{ ucfirst($guard->type) }}
@if($guard->phone) @endif
{{ $guard->site_name }}
{{ $guard->schedule_time }} ({{ $guard->total_hours }} hrs)
Guard Check-in: {{ $guard->checkin_time }}
Last Called
@if($guard->last_call !== 'Never') {{ $guard->last_call }} ({{ $guard->last_call_relative }}) @else Never @endif
Next Call By
{{ $guard->next_call }}
@csrf
@endforeach
@endif
@endsection @push('scripts') @endpush