{{-- --}}
@if($business->logo_image) logo @endif

{{ $business->business_name }}

{{ $business->address }}
{{ $business->email_id }}    {{ $business->web_link }}   {{ $business->contact_no }}

PAYMENT VOUCHER


Voucher No : {{ $payment_voucher->voucher_no}} Account Name : {{$payment_voucher->accountLedger->account_name}}
Date : {{date('d-m-Y', strtotime($payment_voucher->payment_date))}} Cheque No : {{$payment_voucher->cheque_no}}
Payment Type : {{$payment_voucher->payment_type}} Cheque Date : {{$payment_voucher->cheque_date ? date('d-m-Y', strtotime($payment_voucher->cheque_date)): ''}}
Paid To : {{$payment_voucher->voucher_type == 'supplier_payment' ? $payment_voucher->paidTo->name : $payment_voucher->paidTo->account_name}} Remarks : {{$payment_voucher->remarks}}
@foreach($payment_voucher->paymentVoucherDetails as $payment_voucher_detail) @endforeach
Invoice No. Amount
{{$payment_voucher_detail->invoice_no}} {{ number_format($payment_voucher_detail->amount,2)}}
Total Amount AED : {{ number_format($payment_voucher->paid_amount, 2)}}
@php $t_amount = new NumberFormatter("en", NumberFormatter::SPELLOUT); $num = explode('.', $payment_voucher->paid_amount); // Format Dirhams part (whole number part) $dirhams = ucwords($t_amount->format($num[0])) . ' Dirhams'; @endphp Amount in Words AED : {{ $dirhams }} {{ isset($num[1]) ? 'And ' . ucwords($t_amount->format($num[1])) . ' Fils Only' : 'Only' }}