@php $amount = round((float) $amount, 2); $dh = (int) floor($amount); $fl = str_pad((string) round(($amount - $dh) * 100), 2, '0', STR_PAD_LEFT); $dateC = \Illuminate\Support\Carbon::parse($date); $methodText = ['cash' => 'Cash', 'card' => 'Card', 'bank' => 'Bank Transfer'][$method] ?? ucfirst((string) $method); $being = 'Payment against ' . $sale->invoice_no . ($note ? ' — ' . $note : ''); @endphp Receipt {{ $voucherNo }}
@if ($company->telephone)
Tel.: {{ $company->telephone }}
@endif @foreach (($company->mobiles ?? []) as $m)
Mob.: {{ $m }}
@endforeach @if ($company->address)
{{ $company->address }}
@endif
{{ $voucherNo }}
{{ $company->name_ar }}
{{ $company->name }}
@if ($company->logo_url)@endif @if ($company->tagline)
{!! nl2br(e($company->tagline)) !!}
@endif
@if ($company->telephone)
تليفون: {{ $company->telephone }}
@endif @foreach (($company->mobiles ?? []) as $m)
متحرك: {{ $m }}
@endforeach @if ($company->address_ar)
{{ $company->address_ar }}
@endif
Dhs.   درهمFils   فلس
{{ number_format($dh) }}{{ $fl }}
سند القبض
RECEIPT VOUCHER
Date: {{ $dateC->format('d / m / Y') }}
Received from Mr./M/s.{{ $sale->customer_name }}استلمنا من السيد / السادة
The Sum of Dirhams.{{ \App\Support\AmountInWords::dirhams($amount) }}مبلغ وقدره درهم
By Cash/Cheque No.{{ $methodText }} Date{{ $dateC->format('d / m / Y') }} نقداً / شيك رقم ... التاريخ
Being{{ $being }}وذلك عن
توقيع المستلم
Receiver's Sign
توقيع المدير
Manager Sign
@if ($company->footer_url)
@endif