@extends('layouts.app') @section('content')

Task Jobs for

Task Equipment
@foreach($job_equipments as $job_eq) @php $disable_create_job_btn = $job_eq['task_eq_remain_job_qty']==0 ? "disabled": ""; @endphp @endforeach
Equipment Task Qty Remain Job Qty Selected Job Qty Action
{{$job_eq['task_eq_name']}} {{$job_eq['task_eq_qty']}} {{$job_eq['task_eq_remain_job_qty']}}
Upload job images
{{ csrf_field() }}
Jobs List
@foreach ($jobs as $job) @php $company_name = $job['insjob']->instask->workorder->insservice->inqservice->branch->company->name; $user_id = $job['insjob']->user->id; $insjob = $job["insjob"]; @endphp @endforeach
Job ID Equipment / Qty Start Date / End Date CheckList Status Stage Result Approved By Action
{{$job["job_id"]}} {{$job["job_equipment"]}} ({{$job["job_qty"]}}) {{$job["job_start_date"]}}
{{$job["job_end_date"]}}
    @php foreach ($job["job_status"] as $job_status) { echo("
  • " .$job_status->name."

    at ".$job_status->pivot->created_at."

  • "); } @endphp
  • {{$job["insjob"]->insjobstage->name}}

  • @php if($insjob->get_chklistfield_byId(12)){ echo $insjob->get_chklistfield_byId(12); }else{ echo "NA"; } @endphp @php if($job["insjob"]->insjobstage->id == 1 ){ echo('Eng. '.$insjob->approving_user->name.''); }else{ echo('NA'); } @endphp @php if($job["insjob"]->client_approved == 0 and $job["insjob"]->insjobstage->id == 4){ $disable_client_apporval_btn = 'block'; }else{ $disable_client_apporval_btn = 'none'; } if(($job["insjob"]->client_approved == 1 and $job["insjob"]->insjobstage->id == 4 ) or ($job["insjob"]->insjobstage->id == 2)){ $disable_require_approval_btn = "block"; }else{ $disable_require_approval_btn = "none"; } if($job["insjob"]->insjobstage->id == 1 and $job["insjob"]->client_approved != 0){ $disable_report_btn = "block"; }else{ $disable_report_btn = "none"; } if($job["insjob"]->insjobstage->id == 2 ){ $disable_review_btn = "block"; }else{ $disable_review_btn = "none"; } if($job["insjob"]->insjobstage->id == 3) { echo ('

    Waiting Approval

    '); } if($job["insjob"]->insjobstage->id == 1 and $job["insjob"]->client_approved == 0 and $job["insjob"]->chklist_edited ==1) { echo ('

    Waiting Client Approval

    '); } if($job["insjob"]->insjobstage->id == 4 and $job["insjob"]->client_approved == 0 and $job["insjob"]->instask->original == 1){ $disable_update_qty_btn = "block"; }else{ $disable_update_qty_btn = "none"; } if($job["insjob"]->client_approved == 1 ){ $timesheet_preview_btn = "block"; }else{ $timesheet_preview_btn = "none"; } @endphp @php $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'; @endphp {{-- report --}} View Report ChkList Cert Timesheet
    @foreach ($jobs as $job) @endforeach @endsection