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

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

@if(count($payment_voucher->paymentVoucherItems))
@foreach($payment_voucher->paymentVoucherItems as $i=>$payment_voucher_item) {{--*/ $cost_center=$payment_voucher_item->paymentVoucherItemable /*--}} {{--*/ $trip_expense_usd = 0 /*--}} {{--*/ $trip_expense_tsh = 0 /*--}}
{{----}} {{----}} {{----}}
NO {{++$i}} {{$cost_center->descriptions}}
Payment Details
Item Purchased
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @foreach($payment_voucher_item->paymentVoucherItemAccounts as $index=> $payment) {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @if($payment->paymentVoucherAccountItems) {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @endif @if($payment->currency == 'USD') {{--*/ $trip_expense_usd +=$payment->amount /*--}} @else {{--*/ $trip_expense_tsh +=$payment->amount /*--}} @endif @endforeach {{----}} {{--
SNODr AccountCurrencyAmount
{{++$index}}{{$payment->dr}}{{$payment->currency}}{{number_format($payment->amount,2)}}
Item Purchased
--}} @foreach($payment->paymentVoucherAccountItems as $i=> $item) @endforeach
SNO Item Name Quantity Price Amount
{{++$i}} {{$item->item->name}} {{$item->quantity}} {{$item->item->unitOfMeasurement->name}} {{number_format($item->rate)}} {{number_format($item->rate*$item->quantity)}}
{{--
--}}
TSH {{number_format($trip_expense_tsh,2)}}
USD {{number_format($trip_expense_usd,2)}}
@endforeach
@endif