@extends('layouts/layout') @section('title', 'Round Activities') @push('style') @endpush @section('content') @if ($message = Session::get('success')) @include('sweetalert::alert') @endif

Round.Id : {{$round_patrolling[0]->id}}

Round Date : {{date('d-m-Y', strtotime($round_patrolling[0]->created_at))}}

Patroller Name : {{$round_patrolling[0]->name}}

Round Status : @if($round_patrolling[0]->completed_at) Completed @else Inprocess @endif

Start Time : {{date('h:i:s a', strtotime($round_patrolling[0]->created_at))}}

End Time : @if($round_patrolling[0]->completed_at) {{date('h:i:s a', strtotime($round_patrolling[0]->completed_at))}} @else @endif

Completed Checkpoints

@php $previousCheckpoint = null; @endphp @foreach ($patrolling_data 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
Sr.No Checkpoint Name Question Observation Submitted At
{{$key +1}}{{$patrolling->qr_for_post}}{{$patrolling->task_name}} {{$patrolling->task_answer}} {{date('h:i:s a', strtotime($patrolling->created_at))}}

Skipped Checkpoints

@foreach ($skipped_checkpoints as $skipped)

Skipped Time : {{date('h:i:s a', strtotime($skipped->created_at))}}

Checkpoint Name : {{$skipped->qr_for_post}}
Skipped Reason : {{$skipped->checkpoint_status}}
@endforeach

Ongoing Checkpoints

@foreach ($ongoing_patrollings as $ongoing)

Started Time : {{date('h:i:s a', strtotime($ongoing->created_at))}}

Checkpoint Name : {{$ongoing->qr_for_post}}
@endforeach

Pending Checkpoints

@if($pending_patrollings) @foreach ($pending_patrollings as $pending)
Checkpoint Name : {{$pending->qr_for_post}}
@endforeach @endif
Back
@endsection @push('scripts') @endpush