LPO NO. {{$purchase_order->id}}

LOCAL PURCHASE ORDER

Vendor
 
Name {{$purchase_order->vendor->name }}
Address {{$purchase_order->vendor->address }}
City {{$purchase_order->vendor->district }}
Phone {{$purchase_order->vendor->phone }}
TIN {{$purchase_order->vendor->tin }}
VRN {{$purchase_order->vendor->vrn }}
@if(!empty($purchase_order->purchaseOrderRequisition->requisition->loading_orders)) @foreach($purchase_order->purchaseOrderRequisition->requisition->loading_orders as $i => $order) @endforeach @endif
LPO : {{str_pad($purchase_order->id,$add,0,STR_PAD_LEFT)}}
LPO DATE: {{ date('d F Y',strtotime($purchase_order->date ))}}
REQ : {{ $purchase_order->purchaseOrderRequisition->requisition_id}}
REQ DATE: {{ date('d F Y',strtotime($purchase_order->purchaseOrderRequisition->requisition->created_at ))}}
LOADING ORDER: {{ $order->loading_order_id}}

Please Supply the following items:
{{--*/ $i=1 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($purchase_order->purchaseOrderItems as $index=>$purchase_order_item) @endforeach {{--*/ $i++ /*--}} {{--*/ $total_amount += $purchase_order_item->quantity*$purchase_order_item->price /*--}} @for($j=30;$j>=sizeof($purchase_order->purchaseOrderItems);$j--) @endfor {{----}} {{-- --}}
ITEM DESC UoM QUANTITY RATE AMOUNT
Request for Diesel for {{$total_truck}} truck(s) as attached. {{-- Request for Diesel for {{sizeof($item_rate)}} truck(s) as attached. --}} {{--@if($purchase_order_item->purchaseOrderItemLoadingOrderItem)( {{$purchase_order_item->purchaseOrderItemLoadingOrderItem->getConsumerDescriptions()}} )@endif--}} {{--@if($fuel_order_requisition_items)--}} {{--for truck ({{$fuel_order_requisition_items[$index]->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->vehicle->registration_number}}) - {{$fuel_order_requisition_items[$index]->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->employee_name}} {{$fuel_order_requisition_items[$index]->loadingOrderItemRequisitionItem->loadingOrderItem->loadingOrderVehicle->driver->last_name}}--}} {{--@endif--}} LITRES {{number_format($total_quantity)}} {{number_format($total_rate)}} {{number_format($total_amount_sumary)}}
TOTAL{{number_format($total_amount_sumary)}}{{number_format($purchase_order->lpo_vat->subtotal_amount, 2)}}
ADD 18% VAT {{number_format($purchase_order->lpo_vat->vat, 2)}}
GRAND TOTAL{{number_format($total_amount_sumary)}}{{number_format($purchase_order->lpo_vat->total_vated_amount, 2)}}
{{--
--}}
({{\App\Logistics\Facades\Logistics::numberToWord((round(($total_amount_sumary)*100)/100), $purchase_order->currency ? $purchase_order->currency : 'TSH')}} only.)
{{--
--}} @if($purchase_order->purchaseOrderShipmentDetail)
LOADING DETAILS:  
@if($purchase_order->purchaseOrderShipmentDetail) LOADING @else DELIVERY @endif DATE : {{ date('d F Y',strtotime($purchase_order->delivery_date) )}} ; Truck / Trailer: {{ $purchase_order->purchaseOrderShipmentDetail->truck }} / {{ $purchase_order->purchaseOrderShipmentDetail->trailer }} ; Driver: {{ $purchase_order->purchaseOrderShipmentDetail->driver }};
@endif @if($purchase_order->payment_method == 'CASH' || $purchase_order->payment_method == 'CREDIT') @endif @if($purchase_order->payment_method == 'CHEQUE') @endif

TERMS OF PAYMENT (CASH/CREDIT):

 
{{$purchase_order->payment_method}}

TERMS OF PAYMENT (CASH/CREDIT):

BANK ACCOUNT:

CHEQUE
Cheque #:{{$purchase_order->cheque_number}}
{{----}}
Bank:{{$purchase_order->bankAccount()->bank_name}}
Account:{{$purchase_order->bankAccount()->name}}
Account #:{{$purchase_order->bankAccount()->account_number}}
SWIFT-CODE:{{$purchase_order->bankAccount()->swift_code}}