@if($payment_voucher->loadingOrderItemPaymentVoucher) {{--*/ $loading_order_item = $payment_voucher->loadingOrderItemPaymentVoucher->loadingOrderItem /*--}}
{{\App\Logistics\Facades\Logistics::generateInquiryNumber($loading_order_item)}}
@endif
{{$company->company_name}}
{{$company->company_address}}, {{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}
PAYMENT VOUCHER
  NUMBER. {{str_pad($payment_voucher->id, 5, '0', STR_PAD_LEFT)}}
  DATE: {{\Carbon\Carbon::parse($payment_voucher->date_created)->toFormattedDateString()}}
{{--*/ $total_amount_TSH = 0 /*--}} {{--*/ $total_amount_USD = 0 /*--}} @foreach($payment_voucher->paymentVoucherAccounts as $payment_voucher_account) @if($payment_voucher_account->currency == 'TSH') {{--*/ $total_amount_TSH +=$payment_voucher_account->amount/*--}} @elseif($payment_voucher_account->currency == 'USD') {{--*/ $total_amount_USD+=$payment_voucher_account->amount/*--}} @endif @endforeach
DESCRIPTION OF ITEM/SERVICE PURCHASED CURRENCY: AMOUNT
{{$payment_voucher_account->dr}} {{$payment_voucher_account->currency}}{{number_format($payment_voucher_account->amount,2)}}
@if($payment_voucher->loadingOrderItemPaymentVoucher) {{--*/ $loading_order_item = $payment_voucher->loadingOrderItemPaymentVoucher->loadingOrderItem /*--}} Allocation : {{$loading_order_item->clientLoadingOrder->client->name}}
Vehicles : {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} -{{$loading_order_item->loadingOrderVehicle->trailer->registration_number}}
Driver : {{$loading_order_item->loadingOrderVehicle->driver->full_name}} @endif
EXCHANGE RATE {{number_format($payment_voucher->exchange_rate)}}
TOTAL TSH {{number_format($total_amount_TSH,2)}}
TOTAL USD {{number_format($total_amount_USD,2)}}
TRUCK : {{$goods_issued_note_item->truck}};
DRIVER : {{$goods_issued_note_item->driver}}
FUEL {{number_format($goods_issued_note_item->quantity)}}
In Words: {{\App\Logistics\Facades\Logistics::numberToWord($total_amount_TSH)}} @if($total_amount_USD>0) ,AND {{\App\Logistics\Facades\Logistics::numberToWord($total_amount_USD,'USD')}} @endif
@if($payment_voucher->remarks)
Narrations: {{$payment_voucher->remarks }}
@endif
PAID BY: {{$payment_voucher->paid_by}} RECEIVED BY : @if($payment_voucher->loadingOrderItemPaymentVoucher){{$loading_order_item->loadingOrderVehicle->driver->full_name}} @else   @endif


APPROVED BY: JASHOBANTA DAS AUTHORISED BY: