PETTY CASH VOUCHER
{{$company->company_name}}
Address: {{$company->company_address}}, {{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}
NUMBER. {{str_pad($payment_voucher->id, 5, '0', STR_PAD_LEFT)}}
  DATE: {{\Carbon\Carbon::parse($payment_voucher->date_created)->toFormattedDateString()}}
@if((sizeof($payment_voucher->paymentVoucherAccounts) == 1)) @foreach($payment_voucher->paymentVoucherItems as $payment_voucher_item) @endforeach
DESCRIPTION OF ITEM/SERVICE PURCHASED CURRENCY: AMOUNT:
{{$payment_voucher_item->dr}} {{$payment_voucher_item->currency}} {{number_format($payment_voucher_item->amount,2)}}
@else {{----}} {{--*/ $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: AMOUNTAMOUNT(USD)
{{$payment_voucher_account->dr}} @if($payment_voucher_account->paymentVoucherItem)
{{--*/ $cost_center=$payment_voucher_account->paymentVoucherItem->paymentVoucherItemable /*--}} {{$cost_center->getVehicle()->registration_number}} ( ROUTE:{{$cost_center->route}}, NO:{{$cost_center->id}} ,DRIVER:{{$cost_center->driver_names}} ) @endif
{{$payment_voucher_account->currency}}{{number_format($payment_voucher_account->amount,2)}}
EXCHANGE RATE {{number_format($payment_voucher->exchange_rate)}}
TOTAL TSH {{number_format($total_amount_TSH,2)}}
TOTAL USD {{number_format($total_amount_USD,2)}}
Amount 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
@endif
Authorized By: {{$payment_voucher->paid_by}} RECEIVED BY :@if($payment_voucher->received_by){{$payment_voucher->received_by}} @else                                  @endif