JOB CARD REPORT

GENERAL DETAILS
RECEIVED FROM: {{ $view_job_card->reported_as =='INCIDENT' ? 'INCIDENT NO : '.$view_job_card->reference : 'INSPECTION NO: '.$view_job_card->reference }} RECEIVED : {{$view_job_card->date}}
JOB NO: {{$job_card_number}} PRIORITY : {{$view_job_card->priority }}
ASSIGNED TO : {{$view_job_card->assignee }} KMS : {{$view_job_card->odometer }}
TRUCK : {{$view_job_card->truck}} MAKE/MODEL : {{$view_job_card->make.' / '.$view_job_card->model }}
DRIVER : {{ $view_job_card->driver }} PHONE # : {{ $view_job_card->phone_number }}
LOCATION : {{ $view_job_card->location }} CLOSED ON : {{ $view_job_card->ClosedJobCard->close_date }}

@if($view_job_card->has('viewJobsCardDefects'))
DEFECTS/MATATIZO YA GARI
@foreach($view_job_card->viewJobsCardDefects as $key => $view_jobs_card_defect) @endforeach
S/N Defects
{{ ++$key}} {{ strtoupper($view_jobs_card_defect->defect) }}
@endif @if($view_job_card->has('labours'))
LABOUR(s)/MAFUNDI
@foreach ($view_job_card->labours as $sn => $labour) @endforeach
S/N Labour Description Hours
{{ ++$sn }} {{ strtoupper($labour->employee->employee_name.' '.$labour->employee->last_name) }} {{ strtoupper($labour->description) }}
@endif @if(sizeof($view_job_card->viewJobCardItems()->whereItemType('SPARES')->get()))
Spare Part(s)/Vipuri
@foreach ($view_job_card->viewJobCardItems()->whereItemType('SPARES')->get() as $sn => $view_job_card_item) @endforeach
S/N ITEM DESCRIPTION QUANTITY
S/N Name Serial # UoM Requested Approved Used Cond.
{{ ++$sn }} {{ strtoupper($view_job_card_item->item->name) }} {{ $view_job_card_item->serial_number }} {{ strtoupper($view_job_card_item->unit_of_measurement) }} {{ strtoupper($requested) }} {{ strtoupper($approved) }} {{ strtoupper($issued) }} {{ $view_job_card_item->item_condition }}
@endif @if(sizeof($view_job_card->viewJobCardItems()->whereItemType('MATERIALS')->get()))
Raw Material(s)/Mali Ghafi
@foreach ($view_job_card->viewJobCardItems()->whereItemType('MATERIALS')->get() as $sn => $view_job_card_item) @endforeach
S/N ITEM DESCRIPTION QUANTITY
S/N Name UoM Requested Approved Used
{{ ++$sn }} {{ strtoupper($view_job_card_item->item->name) }} {{ strtoupper($view_job_card_item->unit_of_measurement) }} {{ strtoupper($view_job_card_item->requested) }} {{ strtoupper($view_job_card_item->approved) }} {{ strtoupper($view_job_card_item->issued) }}
@endif
Work(s) Carried Out/Kazi zilizofanyika
@foreach ($view_job_card->jobCardCompleteServices as $sn => $job_card_complete_service) @endforeach
S/N Work Description
{{ ++$sn }} {{ strtoupper($job_card_complete_service->service->name) }} {{ ucfirst($job_card_complete_service->description) }}
@if(sizeof($view_job_card->jobCardPendingTasks()))
Pending Task(s)/ Kazi Haijaisha
@foreach ($view_job_card->jobCardPendingTasks() as $sn => $job_card_complete_service) @endforeach
S/N Work Description
{{ ++$sn }} {{ strtoupper($job_card_complete_service->service->name) }} {{ ucfirst($job_card_complete_service->description) }}
@endif
Remarks

{{ ucwords($view_job_card->ClosedJobCard->description) }}