Patrolling Report

@if ($no_order != 1) @endif
Route Detail
Site : {{$site}}
Route Name : {{$route}}
Date of Patrol : {{showDate($transaction_date)}}
Patrolling Mode : {{$mode}}
Patrolling Status : {{$status}}
Time Spent : {{$time_spent}}
Patrolling Officer : {{$officer}}
Officer Remarks : {{$remark}}
@if($has_checklist) @else @endif @if($has_checklist) @endif @foreach ($checkpoints as $checkpoint) @if($has_checklist) @endif {{-- Attachments v1 --}} @if (isset($checkpoint->attachments)) @foreach (array_chunk($checkpoint->attachments,2) as $attachment_uuids) @endforeach @endif {{-- Attachements v2 --}} @if (!empty($checkpoint_attachments) && isset($checkpoint_attachments[$checkpoint->id])) @foreach (array_chunk($checkpoint_attachments[$checkpoint->id],2) as $attachment_uuids) @endforeach @endif @endforeach
Checkpoint StatusCheckpoint Status
CheckpointChecklistScan Order Scanned Timestamp Remark
{{ $checkpoint->name }}
    @if(isset($checkpoint->checklist_json)) @foreach($checkpoint->checklist_json as $checklist)
  • {!! $checklist->label !!}
  • @if(isset($checklist->multiple) && $checklist->multiple)
      @if (!empty($checklist->value)) @foreach($checklist->value as $value)
    • {!! $value !!}
    • @endforeach @endif
    @else @if (!empty($checklist->value)) @if($checklist->type == 'date_time')
    • {!! Carbon::parse($checklist->value)->toDateTimeString() !!}
    @else
    • {!! $checklist->value !!}
    @endif @endif @endif @endforeach @endif
{{ (isset($checkpoint->scanOrder)) ? $checkpoint->scanOrder + 1 : '-' }} @if ($checkpoint->completed) Yes @else No @endif @if (isset($checkpoint->time_completed)) {{ showDateTime($checkpoint->time_completed) }} @endif @if (isset($checkpoint->remarks)) {{ $checkpoint->remarks }} @endif
@foreach ($attachment_uuids as $attachment_uuid) @endforeach
@foreach ($attachment_uuids as $attachment_uuid) @endforeach