Asset Daily Inspection Report


@if (!empty($group['daily_inspections.inspection_date'][0])) @endif @if (!empty($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 @endif @if (@$key == 'assets.division_id') @php $count++; @endphp @endif @if (@$key == 'location_id') @php $count++; @endphp @endif @if (@$key == 'sublocation_id') @php $count++; @endphp @endif @if (@$key == 'block_id') @php $count++; @endphp @endif @if (@$key == 'section_id') @php $count++; @endphp @endif @if (@$key == 'category_id') @php $count++; @endphp @endif @if (@$key == 'daily_inspections.asset_id') @php $count++; @endphp @endif @if ($key == 'daily_inspections.user_id') @php $count++; $user = App\User::find($group['daily_inspections.user_id']); @endphp @endif @if (@$key == 'condition') @php $count++; @endphp @endif @if (@$key == 'inspection_type') @php $count++; @endphp @endif @if ($count % 2 == 0) @endif @endif @endforeach

Assetdocs

Asset Daily Inspection Report

Date Range : {{format_date($group['daily_inspections.inspection_date'][0])}} To : {{format_date($group['daily_inspections.inspection_date'][1])}}
Company : {{ @Company::find(@$group['assets.company_id'], 'company')->name }} Division : {{ @Company::find(@$group['assets.division_id'],'division')->name }} Location : {{ @Location::find(@$group['location_id'],'location')->name }} Sub Location : {{ @Location::find(@$group['sublocation_id'], 'sub_location')->name }} Block : {{ @Block::find(@$group['block_id'], 'block')->name }} Section : {{ @Block::find(@$group['section_id'], 'section')->name }} Category : {{ @Category::find(@$group['category_id'], 'category')->name }} Asset : {{ @Assets::find(@$group['daily_inspections.asset_id'], 'asset')->name }} User : {{ $user->name }} Condition : {{ @$group['condition'] }} Inspection type : {{ @ScheduleMaster::find(@$group['inspection_type'], 'schedule_master')->name }}

@forelse(array_slice($daily_inspections['all'], 0, $pageLength) as $key=>$row)

@forelse($row as $key=>$daily_inspection) @empty @endif
Technician Insp No. Inspection Date Asset Name Division Category Condition Used By Custodian Scheduler Inpection Type Service Request Status Status Date
{{$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

{{--


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

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

Detail View
@endif @forelse($row as $key=>$inner_row) @empty @endif
Asset Daily Inspection 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

--}}