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

View JO Details

ACCOMPLISHMENT DETAILS

@if($jo->jo_code == 'SAS') @include('csr.job-order.view.sub_sas') @endif @if($jo->jo_code == 'NC') @include('csr.job-order.view.sub_nc') @endif @if($jo->jo_code == 'DC-DA') @include('csr.job-order.view.sub_dcda') @endif @if($jo->jo_code == 'DC-CR') @include('csr.job-order.view.sub_dccr') @endif @if($jo->jo_code == 'RC') @include('csr.job-order.view.sub_rc') @endif @if($jo->jo_code == 'IC') @include('csr.job-order.view.sub_ic') @endif @if($jo->jo_code == 'CM') @include('csr.job-order.view.sub_cm') @endif @if($jo->jo_code == 'MC') @include('csr.job-order.view.sub_mc') @endif @if($jo->jo_code == 'CAC') @include('csr.job-order.view.sub_cac') @endif @if($jo->jo_code == 'CCT') @include('csr.job-order.view.sub_cct') @endif @if($jo->jo_code == 'SL') @include('csr.job-order.view.sub_sl') @endif @if($jo->jo_code == 'RM') @include('csr.job-order.view.sub_rm') @endif @if($jo->jo_code == 'OT' || $jo->jo_code == 'SV') @include('csr.job-order.view.sub_ot') @endif
DISPATCHED TO
@foreach($jo->dispatched_to AS $k => $d) @if($k == 0) {{ strtoupper($d->name) }} @else {{ ', '.strtoupper($d->name) }} @endif @endforeach
{{ date("M d, Y h:i:s A", strtotime($jo->dispatched_at)) }}

DATE TIME STARTED
{{ date("M d, Y h:i:s A", strtotime($jo->date_started)) }}
ACCOMPLISHED BY
@foreach($jo->accomplished_by AS $k => $d) @if($k == 0) {{ strtoupper($d->name) }} @else {{ ', '.strtoupper($d->name) }} @endif @endforeach
{{ date("M d, Y h:i:s A", strtotime($jo->date_finished)) }}

DATE TIME FINISHED
{{ date("M d, Y h:i:s A", strtotime($jo->date_finished)) }}

REMARKS
{{ $jo->remarks ? strtoupper($jo->remarks) : '-' }}
WATER LOST
{{ $jo->water_lost }} CuM

JOB ORDER DETAILS

{{ strtoupper($jo->cust_name) }}
{{ $jo->acct_number ? $jo->acct_number : '-' }}
{{ $jo->acct_class }} - {{ $jo->acct_subclass }}
{{ $jo->meter_no ? $jo->meter_brand .' - '. $jo->meter_no : '-' }}
{{ $jo->book_code ? $jo->book_code : '-' }}

{{ strtoupper($jo->jo_number) }}
CRITICAL JO: {{ $jo->is_critical == true ? 'YES' : 'NO' }}
{{ strtoupper($jo->jo_category) }}
{{ $jo->jo_reason ? strtoupper($jo->jo_reason) : '-' }}
{{ strtoupper(substr($jo->complete_address, 0, 64)) }}...

MATERIALS
@if($jo->materials->count() > 0) @foreach($jo->materials AS $m) {{-- --}} @endforeach
PHP {{ number_format($m->amt_net,2,".",",") }}  @if($m->payment_method == 'full') @if($m->status == 'p') @else @endif @elseif($m->payment_method == 'atb') @endif
P{{ number_format($m->amt_net,2,".",",") }}  VIEW DETAILS
@else @endif
SERVICES
@if($jo->services->count() > 0) @foreach($jo->services AS $s) {{-- --}} @endforeach
PHP {{ number_format($s->amt_basic,2,".",",") }}  @if($s->payment_method == 'full') @if($s->status == 'p') @else @endif @elseif($s->payment_method == 'atb') @endif
P{{ number_format($s->amt_net,2,".",",") }}  VIEW DETAILS
@else @endif

NOTE TO FIELDSMEN
{{ $jo->notes ? 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:s A', strtotime($jo->reported_at))) : 'N/A' }} @endif

DATE CREATED
{{ strtoupper($jo->prepared_by) }}
{{ date("M d, Y h:i:s A", strtotime($jo->created_at)) }}
DATE UPDATED
{{ strtoupper($jo->updated_by) }}
{{ date("M d, Y h:i:s A", strtotime($jo->updated_at)) }}
@endsection @section('scripts') {{-- --}} @endsection