@extends('layouts.print') @section('title', 'BWSI') @section('body')

{{ strtoupper(session('branch_name')) }}

{{ strtoupper(session('branch_address')) }}

JOB ORDER

CATEGORY / REASON
@if($jo->jo_reason) {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->jo_reason) }}) @elseif($jo->jo_reason_other) {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->jo_reason_other) }}) @else @if($jo->jo_code == 'NC') {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->ctype) }}) @else {{ strtoupper($jo->jo_category) }} @endif @endif
DATE CREATED
{{ strtoupper(date('M d, Y h:i A', strtotime($jo->created_at))) }}
JOBORDER NO.
{{ $jo->jo_number }}
JOB ORDER STATUS
( ) ACCOMPLISHED    ( ) CANCELLED
DATE DISPATCHED
{{ strtoupper(date('M d, Y h:i A', strtotime($jo->dispatched_at))) }}
ACCOUNT NO.
{{ $jo->acct_number ? $jo->acct_number : '-' }}
CUSTOMER'S NAME
{{ $jo->cust_name ? strtoupper($jo->cust_name) : '-' }}
BOOK - SEQUENCE
{{ $jo->book_code }} - {{ $jo->sequence }}
ACCT. CLASS
@if($jo->jo_code == 'NC') {{ $jo->appl_acct_class }} - {{ $jo->appl_acct_subclass }} @else {{ $jo->acct_class }} - {{ $jo->acct_subclass }} @endif
CUSTOMER'S CONTACT NO.
{{ $jo->mobile_number ? strtoupper($jo->mobile_number) : '-' }} / {{ $jo->landline_number ? strtoupper($jo->landline_number) : '-' }}
METER NO.
{{ $jo->meter_brand ? strtoupper($jo->meter_brand) .' - '. $jo->meter_no : '-' }}
ADDRESS
{{ strtoupper($jo->complete_address) }}
DISPATCHED TO
@foreach($jo->dispatched_to AS $key => $d) @if($key == 0) {{ strtoupper($d->name) }} @else {{ ', '.strtoupper($d->name) }} @endif @endforeach
NOTES / INSTRUCTIONS TO FIELDSMEN
{{ strtoupper($jo->notes) }}
REPORTED BY / AT
{{ $jo->reported_by ? strtoupper($jo->reported_by) : 'N/A' }} @if ($jo->reported_at) - {{ $jo->reported_at ? strtoupper(date('M d, Y h:i A', strtotime($jo->reported_at))) : 'N/A' }} @endif
@if($jo->jo_code == 'SAS') @include('reports.job-order.sub_sas') @endif @if($jo->jo_code == 'NC') @include('reports.job-order.sub_nc') @endif @if($jo->jo_code == 'CAC') @include('reports.job-order.sub_cac') @endif @if($jo->jo_code == 'CCT') @include('reports.job-order.sub_cct') @endif @if($jo->jo_code == 'DC-DA') @include('reports.job-order.sub_dcda') @endif @if($jo->jo_code == 'DC-CR') @include('reports.job-order.sub_dccr') @endif @if($jo->jo_code == 'RC') @include('reports.job-order.sub_rc') @endif @if($jo->jo_code == 'IC') @include('reports.job-order.sub_ic') @endif @if($jo->jo_code == 'MC') @include('reports.job-order.sub_mc') @endif @if($jo->jo_code == 'CM') @include('reports.job-order.sub_cm') @endif @if($jo->jo_code == 'RM') @include('reports.job-order.sub_rm') @endif @if($jo->jo_code == 'SL') @include('reports.job-order.sub_sl') @endif @if($jo->jo_code == 'SV') @include('reports.job-order.sub_sv') @endif @if($jo->jo_code == 'OT') @include('reports.job-order.sub_ot') @endif
ACCOMPLISHED BY
 
ACTION TAKEN
 
DATETIME STARTED
 
DATETIME FINISHED
 
DATETIME RETURNED
 
EST. WATER LOST(CuM)
 
REMARKS
CHECKED BY
{{ strtoupper($jo->checked_by) }}
APPROVED BY
{{ strtoupper($jo->approved_by) }}
CUSTOMER'S NAME & SIGNATURE
 
PREPARED BY
{{ strtoupper($jo->prepared_by) }}

{{ strtoupper(session('branch_name')) }}

{{ strtoupper(session('branch_address')) }}

JOB ORDER

CATEGORY / REASON
@if($jo->jo_reason) {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->jo_reason) }}) @elseif($jo->jo_reason_other) {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->jo_reason_other) }}) @else @if($jo->jo_code == 'NC') {{ strtoupper($jo->jo_category) }}  ({{ strtoupper($jo->ctype) }}) @else {{ strtoupper($jo->jo_category) }} @endif @endif
DATE CREATED
{{ strtoupper(date('M d, Y h:i A', strtotime($jo->created_at))) }}
JOBORDER NO.
{{ $jo->jo_number }}
JOB ORDER STATUS
( ) ACCOMPLISHED    ( ) CANCELLED
DATE DISPATCHED
{{ strtoupper(date('M d, Y h:i A', strtotime($jo->dispatched_at))) }}
ACCOUNT NO.
{{ $jo->acct_number ? $jo->acct_number : '-' }}
CUSTOMER'S NAME
{{ $jo->cust_name ? strtoupper($jo->cust_name) : '-' }}
BOOK - SEQUENCE
{{ $jo->book_code }} - {{ $jo->sequence }}
ACCT. CLASS
@if($jo->jo_code == 'NC') {{ $jo->appl_acct_class }} - {{ $jo->appl_acct_subclass }} @else {{ $jo->acct_class }} - {{ $jo->acct_subclass }} @endif
CUSTOMER'S CONTACT NO.
{{ $jo->mobile_number ? strtoupper($jo->mobile_number) : '-' }} / {{ $jo->landline_number ? strtoupper($jo->landline_number) : '-' }}
METER NO.
{{ $jo->meter_brand ? strtoupper($jo->meter_brand) .' - '. $jo->meter_no : '-' }}
ADDRESS
{{ strtoupper($jo->complete_address) }}
DISPATCHED TO
@foreach($jo->dispatched_to AS $key => $d) @if($key == 0) {{ strtoupper($d->name) }} @else {{ ', '.strtoupper($d->name) }} @endif @endforeach
NOTES / INSTRUCTIONS TO FIELDSMEN
{{ strtoupper($jo->notes) }}
REPORTED BY / AT
{{ $jo->reported_by ? strtoupper($jo->reported_by) : 'N/A' }} @if ($jo->reported_at) - {{ $jo->reported_at ? strtoupper(date('M d, Y h:i A', strtotime($jo->reported_at))) : 'N/A' }} @endif
@if($jo->jo_code == 'SAS') @include('reports.job-order.sub_sas') @endif @if($jo->jo_code == 'NC') @include('reports.job-order.sub_nc') @endif @if($jo->jo_code == 'CAC') @include('reports.job-order.sub_cac') @endif @if($jo->jo_code == 'CCT') @include('reports.job-order.sub_cct') @endif @if($jo->jo_code == 'DC-DA') @include('reports.job-order.sub_dcda') @endif @if($jo->jo_code == 'DC-CR') @include('reports.job-order.sub_dccr') @endif @if($jo->jo_code == 'RC') @include('reports.job-order.sub_rc') @endif @if($jo->jo_code == 'IC') @include('reports.job-order.sub_ic') @endif @if($jo->jo_code == 'MC') @include('reports.job-order.sub_mc') @endif @if($jo->jo_code == 'CM') @include('reports.job-order.sub_cm') @endif @if($jo->jo_code == 'RM') @include('reports.job-order.sub_rm') @endif @if($jo->jo_code == 'SL') @include('reports.job-order.sub_sl') @endif @if($jo->jo_code == 'SV') @include('reports.job-order.sub_sv') @endif @if($jo->jo_code == 'OT') @include('reports.job-order.sub_ot') @endif
ACCOMPLISHED BY
 
ACTION TAKEN
 
DATETIME STARTED
 
DATETIME FINISHED
 
DATETIME RETURNED
 
EST. WATER LOST(CuM)
 
REMARKS
CHECKED BY
{{ strtoupper($jo->checked_by) }}
APPROVED BY
{{ strtoupper($jo->approved_by) }}
CUSTOMER'S NAME & SIGNATURE
 
PREPARED BY
{{ strtoupper($jo->prepared_by) }}
@endsection