Assetdocs |
Asset Daily Inspection Report |
@if (!empty($group['daily_inspections.inspection_date'][0]))
Date Range : |
{{format_date($group['daily_inspections.inspection_date'][0])}}
|
@endif
@if (!empty($group['daily_inspections.inspection_date'][1]))
To : |
{{format_date($group['daily_inspections.inspection_date'][1])}}
|
@endif
@php
$count = 0;
@endphp
@foreach ($group as $key => $value)
@if(!empty($value))
@if ($count % 2 == 0)
@endif
@if (@$key == 'assets.company_id')
@php
$count++;
@endphp
Company : |
{{ @Company::find(@$group['assets.company_id'], 'company')->name }}
|
@endif
@if (@$key == 'assets.division_id')
@php
$count++;
@endphp
Division : |
{{ @Company::find(@$group['assets.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
@if (@$key == 'category_id')
@php
$count++;
@endphp
Category : |
{{ @Category::find(@$group['category_id'], 'category')->name }}
|
@endif
@if (@$key == 'daily_inspections.asset_id')
@php
$count++;
@endphp
Asset : |
{{ @Assets::find(@$group['daily_inspections.asset_id'], 'asset')->name }}
|
@endif
@if ($key == 'daily_inspections.user_id')
@php
$count++;
$user = App\User::find($group['daily_inspections.user_id']);
@endphp
User : |
{{ $user->name }}
|
@endif
@if (@$key == 'condition')
@php
$count++;
@endphp
Condition : |
{{ @$group['condition'] }}
|
@endif
@if (@$key == 'inspection_type')
@php
$count++;
@endphp
Inspection type : |
{{ @ScheduleMaster::find(@$group['inspection_type'], 'schedule_master')->name }}
|
@endif
|
@if ($count % 2 == 0)
@endif
@endif
@endforeach
@forelse(array_slice($daily_inspections['all'], 0, $pageLength) as $key=>$row)
Technician |
Insp No. |
Inspection Date |
Asset Name |
Division |
Category |
Condition |
Used By |
Custodian |
Scheduler |
Inpection Type |
Service Request |
Status |
Status Date |
@forelse($row as $key=>$daily_inspection)
{{$daily_inspection['user_id']}} |
{{$daily_inspection['ref']}} |
{{$daily_inspection['inspection_date']}} |
{{($daily_inspection['rfc'] ?? $daily_inspection['ref']) . ' - ' . $daily_inspection['name'] }} |
{{$daily_inspection['division']['name']}} |
{{$daily_inspection['catname']}} |
{{$daily_inspection['condition']}} |
{{$daily_inspection['used_by']}} |
{{$daily_inspection['custodian']['name']}} |
{{$daily_inspection['inspection_scheduling_code'] }} |
{{$daily_inspection['inspection_type'] }} |
{{$daily_inspection['service_request']['id'] ? 'SR-'. $daily_inspection['service_request']['id'] : '' }} |
{{$daily_inspection['service_request']['status'] }} |
{{$daily_inspection['service_request']['workorder_status_date'] ? $daily_inspection['service_request']['workorder_status_date'] : $daily_inspection['service_request']['created_at'] }} |
@empty
@endif
@empty
@endif
{{--
@forelse($daily_inspections['available'] as $keydaily$work_order)
{{$work_order->labels}}:{{$work_order->total}} ({{round(($work_order->total/$daily_inspections['labels'])*daily,0)}}%) |
|
@empty
@endif
|
{{$daily_inspections['daily']/4}} |
{{$daily_inspections['daily']/2}} |
{{$daily_inspections['labels']/2+$dailyspections['daily']/4}} |
{{$daily_inspections['labels']}} |
daily
|
@forelse(array_slice($daily_inspections['dailyll'], 0, 2) as $key=>$row)
@if($key == 00)
@endif
Asset Daily 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
--}}