Summary Report From {{date('d-m-Y a', strtotime($start_date))}} To {{date('d-m-Y a', strtotime($end_date))}}

Back
@php $previousCheckpoint = null; @endphp @foreach ($completed_patrolling as $key => $patrolling) @if ($previousCheckpoint === $patrolling->qr_for_post) @else @endif @php $previousCheckpoint = $patrolling->qr_for_post; $patrolling->rowspan = $patrolling->count(); // Assuming count() function exists for the collection @endphp @endforeach
Patrolling.No Checkpoint Name Task Name Task Answer Guard Name Shift Start Time End Time Duration In Seconds
{{$patrolling->id}}{{$patrolling->qr_for_post}}{{$patrolling->task_name}} {{$patrolling->task_answer}} {{$patrolling->name}} {{$patrolling->shift}} {{date('h:i:s a', strtotime($patrolling->created_at))}} {{date('h:i:s a', strtotime($patrolling->End_Time))}} {{$patrolling->time_duration}}