@extends('layouts.app') @section('content')
Job ID | Company | Inspection Engineer | Equipment | Qty | Start Date | End Date | Stage | Result | Report | Action |
---|---|---|---|---|---|---|---|---|---|---|
{{$insjob->id}} | {{$insjob->instask->workorder->insservice->inqservice->branch->company->name}} | {{$insjob->user->name}} | {{$insjob->equipment->name}} | {{$insjob->qty}} | {{$insjob->start_date}} | {{$insjob->end_date}} |
{{$insjob->insjobstage->name}} |
@php if($insjob->get_chklistfield_byId(12)){ echo $insjob->get_chklistfield_byId(12); }else{ echo "NA"; } @endphp | @php $company_name = $insjob->instask->workorder->insservice->inqservice->branch->company->name; $user_id = $insjob->user->id; if($insjob->client_approved == 1 ){ $timesheet_preview_btn = "inline-block"; }else{ $timesheet_preview_btn = "none"; } $report_output=''; $report_name = '/storage/docs/companies/' . $company_name . '/inspections/' . $user_id .'/'.$insjob->id. '/docs/Report.pdf'; $chklist_name = '/storage/docs/companies/' . $company_name . '/inspections/' . $user_id.'/'.$insjob->id. '/docs/chklist.pdf'; if($insjob->insjobstage->id ==1){ $report_output ='Certificate CheckList Timesheet '; }elseif($insjob->client_approved ==0){ $report_output="Waiting Client Approval"; } else{ $report_output="NA"; } echo $report_output; @endphp | @if($insjob->get_chklistfield_byId(12) == "Unsafe" && $insjob->original == 1 && $insjob->reinspection_completed == 0 && $insjob->reinspection_in_progress == 0) Reinspection @endif |