Incident Report


AssetsAdm.com

Incident Report

@if (!empty($group['created_at'][0])) @endif @if (!empty($group['created_at'][1])) @endif @if (!empty($group['incident_date'][0])) @endif @if (!empty($group['incident_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 == 'departmentid') @php $count++; @endphp @endif @if (@$key == 'workdepartmentid') @php $count++; @endphp @endif @if (@$key == 'assettype') @php $count++; @endphp @endif @if (@$key == 'incidentby') @php $count++; @endphp @endif @if (@$key == 'incident_type') @php $count++; @endphp @endif @if (@$key == 'incident_reports_status') @php $count++; @endphp @endif @endif @endforeach
Created Date : {{ format_date($group['created_at'][0]) }} To : {{ format_date($group['created_at'][1]) }}
Incident Date : {{ format_date($group['incident_date'][0]) }} To : {{ format_date($group['incident_date'][1]) }}
Company : {{ @Company::find(@$group['company_id'], 'company')->name }} Division : {{ @Company::find(@$group['division_id'], 'division')->name }} Asset : {{ @Assets::find(@$group['asset_id'], 'asset')->name }} Department : {{ @Department::find(@$group['departmentid'], 'department')->name }} Wok Departmen : :{{ @WorkDepartment::find(@$group['workdepartmentid'], 'workdepartment')->name }} Asset Type : {{ $group['assettype'] }} Incident By : {{ $group['incidentby'] }} Incident Type : {{ $group['incident_type'] }} Incident Status : {{ $group['incident_reports_status'] }}


Summary View
@forelse($incident_reports['available'] as $key=>$incident_report) @empty @endif
Report No. Created Date Incident Date Asset Id Asset Name Asset Type Incident Type Damage Amount Status Incident By Employee Used By Custodian Division
{{$incident_report->ref}} {!! format_date_time(@$incident_report->created_at) !!} {{ $incident_report->incident_date == '-0001-11-30 00:00:00' ? '' : format_date($incident_report->incident_date) }} {{@$incident_report->asset->rfc?:@$incident_report->asset->ref}} {{@$incident_report->asset->name}} {{@$incident_report->asset->asset_type}} {{$incident_report->incident_type}} {{number_format($incident_report->damageamount,@$incident_report->company->no_of_decimal_in_currency)}} {{$incident_report->incident_reports_status}} {{$incident_report->incidentby}} {{@$incident_report->employee->name}} {{@$incident_report->usedby->name}} {{@$incident_report->custodian->name}} {{$incident_report->division_id}}

{{--


Work Details Graph
@forelse($incident_reports['available'] as $key=>$work_order) @empty @endif
{{$work_order->labels}}:{{$work_order->total}} ({{round(($work_order->total/$incident_reports['labels'])*100,0)}}%)
{{$incident_reports['labels']/4}} {{$incident_reports['labels']/2}} {{$incident_reports['labels']/2+$incident_reports['labels']/4}} {{$incident_reports['labels']}}

@forelse(array_slice($incident_reports['all'], 0, 2) as $key=>$row) @if($key == 00)

Detail View
@endif @forelse($row as $key=>$inner_row) @empty @endif
Incident Work Due Assets Company Work Priority Status Status Date Created At
{{@$inner_row['ref']}} {{@$inner_row['work_due']}} {{@$inner_row['asset']['name']}} {{@$inner_row['company']['name']}} {{@$inner_row['work_priority']}} {{@$inner_row['work_status']}} {{@$inner_row['status_date']}} {{date('d M, Y', strtotime(@$inner_row['created_at']))}}
@empty @endif

--}}