DATE:{{ date('d/m/Y') }}

@foreach($incidents as $incident){{ $incident->type }} Report @endforeach

@foreach ($incidents as $incident)
Vehicle Details
Truck : {{ $incident->vehicle->registration_number }}
Make : {{ $incident->vehicle->make }}
Chassis Number : {{ $incident->vehicle->chassis_number }}
Model : {{ $incident->vehicle->model }}
Trailer: {{ $incident->trailer->registration_number }}
Loading Details : DON:- {{$incident->loadingOrderItemIncident->lodingOrderDetail->d_o_number}}; Product:- {{$incident->loadingOrderItemIncident->lodingOrderDetail->product}}; Loading Quantity:- {{$incident->loadingOrderItemIncident->lodingOrderDetail->loading_quantity}}
 
Driver Details
Driver : {{ $driver->driver}}
Date Of Birth : {{ $driver->birth_date }}
Licence NO : {{ $driver->licence_number }}
Phone Number : {{ $driver->phone_number }}
Driving Experience :
 
Location Of The Incident : {{ $incident->location.' '.$incident->date }}
@if($incident->type == 'Incident/Accident') @if($incident->has('circumstances')) @foreach($incident->circumstances as $key => $circumstance) @endforeach
DETAILS AND CIRCUMSTANCE OF THE INCIDENT
{{ ++$key }} {{ $circumstance->description }}
@endif @if($incident->has('actionTakens')) @foreach($incident->actionTakens as $key => $action_taken) @endforeach
DETAILS OF THE ACTIONS TAKEN
{{ ++$key }} {{ $action_taken->description }}
@endif @if($incident->has('observations')) @foreach($incident->observations as $key => $observe) @endforeach
OBSERVATIONS
{{ ++$key }} {{ $observe->description }}
@endif @if($incident->has('routeCauseAnalysis')) @foreach($incident->routeCauseAnalysis as $key => $analysis) @endforeach
ROUTE CAUSE ANALYSIS
{{ ++$key }} {{ $analysis->description }}
@endif @if($incident->has('effects')) @foreach($incident->effects as $key => $effect) @endforeach
EFFECTS/UNDISIREABLE OUTCOME
{{ ++$key }} {{ $effect->description }}
@endif @if($incident->has('correctiveActions')) @foreach($incident->correctiveActions as $key => $corrective) @endforeach
CORRECTIVE ACTIONS
{{ ++$key }} {{ $corrective->description }}
@endif @if($incident->has('lessons')) @foreach($incident->lessons as $key => $lesson) @endforeach
LESSONS LEARNT
{{ ++$key }} {{ $lesson->description }}
@endif @if($incident->has('conclusion')) @foreach($incident->conclusion as $key => $conclusion) @endforeach
CONCLUSION
{{ ++$key }} {{ $conclusion->description }}
@endif @if($incident->has('incidentAttachments')) @for($i=0; $i <= sizeof($incident->incidentAttachments); $i+=2) @endfor

@if($incident->incidentAttachments[$i] != '')

@endif
@if($incident->incidentAttachments[$i] != '')

@endif
@endif {{----}} {{----}} {{----}} {{----}} {{--
POLICE DETAILS (if applicable) : {{ '' }}
--}}
PREPARED BY :
Name: {{ $incident->createdBy->employee }}
Email: {{ $incident->createdBy->employees->email }}
Mobile: {{ $incident->createdBy->employees->phone_no }}
 
 
Signature : {{ '........................................' }}
@endif @endforeach