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

{{ $business->business_name }}

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

RECEIPT VOUCHER


Voucher No : {{ $receipt_voucher->voucher_no }} Account Name : {{ $receipt_voucher->accountLedger->account_name }}
Date : {{ date('d-m-Y', strtotime($receipt_voucher->receipt_date)) }} Cheque No : {{ $receipt_voucher->cheque_no }}
Receipt Type : {{ $receipt_voucher->receipt_type }} Cheque Date : {{ $receipt_voucher->cheque_date ? date('d-m-Y', strtotime($receipt_voucher->cheque_date)) : '' }}
Receipt To : {{ $receipt_voucher->voucher_type == 'sales receipt' ? $receipt_voucher->receiptTo->name : $receipt_voucher->receiptTo->account_name }} Remarks : {{ $receipt_voucher->remarks }}
@foreach ($receipt_voucher->receiptVoucherDetails as $receipt_voucher_detail) @endforeach
Invoice No. Amount
{{ $receipt_voucher_detail->bill_no }} {{ number_format($receipt_voucher_detail->received_amount, 2) }}
Total Amount AED : {{ number_format($receipt_voucher->total_amount, 2) }}
@php $t_amount = new NumberFormatter('en', NumberFormatter::SPELLOUT); $num = explode('.', $receipt_voucher->total_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' }}