LPO NO. {{\App\Logistics\Facades\Logistics::add_leading_zeros($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 / VRN {{$purchase_order->vendor->tin }} / {{$purchase_order->vendor->vrn }}
{{--*/ $add = 5 - strlen($purchase_order->id) /*--}} @foreach($companies as $company) @endforeach
LPO# MAC-G/{{ date('Y',strtotime($purchase_order->date ))}}
LPO : {{str_pad($purchase_order->id,$add,0,STR_PAD_LEFT)}}
TIN : {{$company->tin}}
VIN : {{$company->vin}}
DATE: {{ date('d F Y',strtotime($purchase_order->date ))}}

Please Supply the following Services:

CURRENCY: {{$purchase_order->currency}}

{{--*/ $i=1 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($purchase_order->purchaseOrderItems as $index=>$purchase_order_item) {{--*/ $i++ /*--}} {{--*/ $total_amount += $purchase_order_item->quantity*$purchase_order_item->price /*--}} @endforeach @for($j=20;$j>=sizeof($purchase_order->purchaseOrderItems);$j--) @endfor {{----}} {{----}}
No. ITEM DESC ALLOCATION REFF AMOUNT
{{++$item_no}} {{$purchase_order_item->service->name}} {{$purchase_order_item->service_cost_center->name}} EXT-JOB-CARD/{{$purchase_order_item->service_external_job_card_id}} {{number_format($purchase_order_item->quantity*$purchase_order_item->price)}}
TOTAL{{number_format($total_amount_sumary)}}{{number_format($purchase_order->lpo_vat->subtotal_amount, 2)}}
@if($purchase_order->remarks != '')

Note:

{{$purchase_order->remarks}} @endif
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(($purchase_order->lpo_vat->total_vated_amount)*100)/100),strtoupper($purchase_order->currency))}} 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

PAYMENT MODE:

 
{{$purchase_order->payment_method}} PAYMENT

PAYMENT MODE:

BANK ACCOUNT:

CHEQUE PAYMENT
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}}