@if($payment_voucher->loadingOrderItemPaymentVoucher) {{--*/ $loading_order_item = $payment_voucher->loadingOrderItemPaymentVoucher->loadingOrderItem /*--}}
{{\App\Logistics\Facades\Logistics::generateInquiryNumber($loading_order_item)}}
@endif
@if($payment_voucher->control_number) @endif @if($payment_voucher->reference_number) @endif
{{$company->company_name}}
{{$company->company_address}}, {{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}
PAYMENT VOUCHER
 
SUPPLIER: {{ $payment_voucher->payee }} VOUCHER NUMBER: {{str_pad($payment_voucher->id, 5, '0', STR_PAD_LEFT)}}
  CONTEROL NUMBER: {{$payment_voucher->control_number}}
  REFERENCE NUMBER: {{$payment_voucher->reference_number}}
  DATE: {{\Carbon\Carbon::parse($payment_voucher->date)->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->descriptions}} {{$payment_voucher_account->currency}}{{number_format($payment_voucher_account->amount,2)}}
@if($payment_voucher->loadingOrderItemPaymentVoucher) {{--*/ $loading_order_item = $payment_voucher->loadingOrderItemPaymentVoucher->loadingOrderItem /*--}} Allocation : {{(isset($loading_order_item->clientLoadingOrder)) ? $loading_order_item->clientLoadingOrder->client->name : "NO ALLOCATION ( PIPELINE )"}}
Vehicles : {{$loading_order_item->loadingOrderVehicle->vehicle->registration_number}} -{{$loading_order_item->loadingOrderVehicle->trailer->registration_number}}
Driver : {{$loading_order_item->loadingOrderVehicle->driver->driver}} @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)}}
@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: AUTHORISED BY: