AssetsAdm.com |
|||
Incident Report |
Created Date : | {{ format_date($group['created_at'][0]) }} | @endif @if (!empty($group['created_at'][1]))To : | {{ format_date($group['created_at'][1]) }} | |||||||||||||||
Incident Date : | {{ format_date($group['incident_date'][0]) }} | @endif @if (!empty($group['incident_date'][1]))To : | {{ format_date($group['incident_date'][1]) }} | |||||||||||||||
Company : | {{ @Company::find(@$group['company_id'], 'company')->name }} | @endif @if (@$key == 'division_id') @php $count++; @endphpDivision : | {{ @Company::find(@$group['division_id'], 'division')->name }} | @endif @if (@$key == 'asset_id') @php $count++; @endphpAsset : | {{ @Assets::find(@$group['asset_id'], 'asset')->name }} | @endif @if (@$key == 'departmentid') @php $count++; @endphpDepartment : | {{ @Department::find(@$group['departmentid'], 'department')->name }} | @endif @if (@$key == 'workdepartmentid') @php $count++; @endphpWok Departmen : | :{{ @WorkDepartment::find(@$group['workdepartmentid'], 'workdepartment')->name }} | @endif @if (@$key == 'assettype') @php $count++; @endphpAsset Type : | {{ $group['assettype'] }} | @endif @if (@$key == 'incidentby') @php $count++; @endphpIncident By : | {{ $group['incidentby'] }} | @endif @if (@$key == 'incident_type') @php $count++; @endphpIncident Type : | {{ $group['incident_type'] }} | @endif @if (@$key == 'incident_reports_status') @php $count++; @endphpIncident Status : | {{ $group['incident_reports_status'] }} | @endif@endif @endforeach |
Summary View |
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}} |
|
@forelse(array_slice($incident_reports['all'], 0, 2) as $key=>$row)
@if($key == 00)
Detail View |
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']))}} |