{{$company->company_address}},
{{$company->city}}, Tanzania
Mob: {{$company->compny_phone}}
Email: {{$company->company_email}}

PAYEMENT DETAILS FOR VOUCHER NO {{str_pad($payment_voucher->id, 5, '0', STR_PAD_LEFT)}}

@if(count($payment_voucher->prePaymentVoucherItems))
@foreach($payment_voucher->prePaymentVoucherItems as $i=>$pre_payment_voucher_item) {{--*/ $cost_center=$pre_payment_voucher_item->prePaymentVoucherItemable /*--}} {{--*/ $trip_expense_usd = 0 /*--}} {{--*/ $trip_expense_tsh = 0 /*--}}
NO {{++$i}} Driver: {{$cost_center->driver_names}}, Truck :{{$cost_center->getVehicle()->registration_number}} ( For Route NO:{{$cost_center->id}}, {{$cost_center->route}})
Payment Details
@foreach($pre_payment_voucher_item->prePaymentVoucherItemAccounts as $index=> $payment) @if($payment->currency == 'USD') {{--*/ $trip_expense_usd +=$payment->amount /*--}} @else {{--*/ $trip_expense_tsh +=$payment->amount /*--}} @endif @endforeach
SNO Dr Account Currency Amount
{{++$index}} {{$payment->dr}} {{$payment->currency}} {{number_format($payment->amount,2)}}
TSH {{number_format($trip_expense_tsh,2)}}
USD {{number_format($trip_expense_usd,2)}}
@endforeach
@endif