Vehicle Accident


@if (!empty($group['accident_date'][0])) @endif @if (!empty($group['accident_date'][1])) @endif @php $count = 0; @endphp @foreach ($group as $key => $value) @if(!empty($value)) @if ($count % 2 == 0) @endif @if (@$key == 'company_id') @php $count++; @endphp @endif @if (@$key == 'division_id') @php $count++; @endphp @endif @if (@$key == 'asset_id') @php $count++; @endphp @endif @if (@$key == 'claim_type') @php $count++; @endphp @endif @if (@$key == 'accident_reports_status') @php $count++; @endphp @endif @if ($count % 2 == 0) @endif @endif @endforeach

AssetsAdm.com

Vehicle Accident

Date Range : {{format_date($group['accident_date'][0])}} To : {{format_date($group['accident_date'][1])}}
Company : {{ @Company::find(@$group['company_id'], 'company')->name }} Division : {{ @Company::find(@$group['division_id'], 'division')->name }} Vehicle : {{ @Assets::find(@$group['asset_id'], 'asset')->name }} Claim Type : {{ $group['claim_type']}} Status : {{ $group['accident_reports_status']}}


Summary View
@forelse($accident_reports['available'] as $key=>$accident_report) @empty @endif
Report No. Created Date Accident Date Accident Time Vehicle Claim Type Status Driver Damage Amount Area City Division
{{$accident_report->ref}} {{ @$accident_report->created_at!='0000-00-00'?@date('d M , Y',strtotime($accident_report->created_at)):'' }} {{ @$accident_report->accident_date!='0000-00-00'?@date('d M , Y',strtotime($accident_report->accident_date)):'' }} {{$accident_report->accident_time}} {{$accident_report->asset->name}} {{$accident_report->claim_type}} {{$accident_report->accident_reports_status}} {{$accident_report->usedby_id}} {{number_format($accident_report->damageamount,$accident_report->company->no_of_decimal_in_currency)}} {{$accident_report->area}} {{$accident_report->city}} {{$accident_report->division_id}}