Assetdocs |
Facility Inspection Report |
@if (!empty($group['inspection_date'][0]))
Date Range |
{{format_date($group['inspection_date'][0])}}
|
@endif
@if (!empty($group['inspection_date'][1]))
To : |
{{format_date($group['inspection_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
Company : |
Company :{{ @Company::find(@$group['company_id'], 'company')->name }}
|
@endif
@if (@$key == 'division_id')
@php
$count++;
@endphp
Division : |
{{ @Company::find(@$group['division_id'],'division')->name }}
|
@endif
@if (@$key == 'location_id')
@php
$count++;
@endphp
Location : |
{{ @Location::find(@$group['location_id'],'location')->name }}
|
@endif
@if (@$key == 'sublocation_id')
@php
$count++;
@endphp
Sub Location : |
{{ @Location::find(@$group['sublocation_id'], 'sub_location')->name }}
|
@endif
@if (@$key == 'block_id')
@php
$count++;
@endphp
Block : |
{{ @Block::find(@$group['block_id'], 'block')->name }}
|
@endif
@if (@$key == 'section_id')
@php
$count++;
@endphp
Section : |
{{ @Block::find(@$group['section_id'], 'section')->name }}
|
@endif
@endif
@endforeach
Facility Insp No. |
Inspection Date |
Company |
Division |
Location |
Sub Location |
Observation |
Action Taken |
Remarks |
Service Request Number |
Work Department |
Service Request Status |
Service Request Status Date |
@forelse($facility_inspections['available'] as $key=>$facility_inspection)
{{ 'FI-' . $facility_inspection->id}} |
{{$facility_inspection->inspection_date}} |
{{$facility_inspection->company_id}} |
{{$facility_inspection->division_id}} |
{{$facility_inspection->location_id}} |
{{$facility_inspection->sublocation_id}} |
{{$facility_inspection->observation}} |
{{$facility_inspection->action_taken}} |
{{$facility_inspection->remarks}} |
{{$facility_inspection->service_request ? 'SR-' . $facility_inspection->service_request->id : ''}} |
{{$facility_inspection->work_department_id}} |
{{$facility_inspection->service_request->workorder_status}} |
{{$facility_inspection->service_request->workorder_status_date}} |
@empty
@endif
{{--
@forelse($facility_inspections['available'] as $key=>$work_order)
{{$work_order->labels}}:{{$work_order->total}} ({{round(($work_order->total/$facility_inspections['labels'])*100,0)}}%) |
|
@empty
@endif
|
{{$facility_inspections['labels']/4}} |
{{$facility_inspections['labels']/2}} |
{{$facility_inspections['labels']/2+$facility_inspections['labels']/4}} |
{{$facility_inspections['labels']}} |
|
@forelse(array_slice($facility_inspections['all'], 0, 2) as $key=>$row)
@if($key == 00)
@endif
Facility Inspection |
Work Due |
Assets |
Company |
Work Priority |
Status |
Status Date |
Created At |
@forelse($row as $key=>$inner_row)
{{@$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
@empty
@endif
--}}