@extends('admin.layout.app') @section('more-head') @endsection @section('main-content')

CMC OPERATIONS MANAGEMENT SYSTEM

Bush & Internal Waybill Info

Transaction details


@if ($bush_delivery->type == 'bush delivery') @else @endif @if ($bush_delivery->type == 'bush delivery') @endif
LBC {{ strtoupper($bush_delivery->lbc->name) }}
Truck no. {{ strtoupper($bush_delivery->truck_no) }}
Driver's Name: {{ strtoupper($bush_delivery->driver_name) }}
Driver's License: {{ strtoupper($bush_delivery->driver_license) }}
Expected No. of Bags (On Bush Waybill) {{ strtoupper($bush_delivery->bush_waybills->sum('bush_no_of_bags')) }}
Expected No. of Bags(On Internal Waybill) {{ strtoupper($bush_delivery->internal_waybills->sum('internal_no_of_bags')) }}
Transaction Code: {{ $bush_delivery->transaction_code }}
Delivery Type {{ strtoupper($bush_delivery->type) }}
Sum of Bags {{ $sab = $bush_delivery->internal_waybills->sum('internal_no_of_bags') }}
Expected Quantity of Bags (Registration) {{ $seb = $bush_delivery->no_bags }}
Difference {{ $seb - $sab }}
District(s) @if (!$bush_delivery->districts->isEmpty()) @foreach ($bush_delivery->districts as $district) @if (!$loop->last) {{ strtoupper($district->district_name) }}, @elseif($loop->last) {{ strtoupper($district->district_name) }} @endif @endforeach @endif
@if ($bush_delivery->type != 'bush delivery') @can('ss_supervisor', Auth::user()) @endcan @foreach ($bush_delivery->internal_waybills as $waybill) @if (!$bush_delivery->internal_waybills->isEmpty()) @can('ss_supervisor', Auth::user()) @endcan @endif @endforeach
CODE Waybill No. No. of Bags Date Cocoa Type Specialty Client CAT. GRADE. EDITDELETE
{{ $waybill->bush_delivery->transaction_code }} {{ $waybill->internal_waybill_no }} {{ $waybill->internal_no_of_bags }} {{ $waybill->internal_waybill_date }} {{ optional($waybill->cocoa_type)->type_name }} {{ $waybill->specialty_type }} {{ $waybill->client_name }} {{ optional($waybill->category)->name }} {{ $waybill->internal_waybill_grade }} EDIT WAYBILL
@endif
@include('includes.messages')
@endsection @section('more-scripts') @endsection