@php /** * Convert a numeric amount into words (English) with "Jordanian Dinars" and "Fils". * Requires the 'intl' PHP extension. */ function numberToWords($amount) { // Create a NumberFormatter for English $formatter = new \NumberFormatter('en', \NumberFormatter::SPELLOUT); // Separate integer and decimal parts $intPart = floor($amount); $decimalPart = round(($amount - $intPart) * 100); // up to 2 decimals => fils // Convert integer part to words $words = ucfirst($formatter->format($intPart)) . ' Jordanian Dinars Only'; // If there's a decimal (fils) part, convert that too if ($decimalPart > 0) { $words .= ' and ' . $formatter->format($decimalPart) . ' Fils'; } return $words; } @endphp
DAMAC Owners Association
Jordan - Amman - Abdali
Tel: 065102179
Email: board@damac-owners.com
Logo جمعية مالكي الطوابق و الشقق داماك
الأردن - عمان - العبدلي
تلفون : 065102179
board@damac-owners.com :إيميل

سند قبض

Receipt Voucher

دينار أردني
#{{ $payment->amount }}#
Receipt No: 0{{ $payment->id }} Date: {{ \Carbon\Carbon::parse($payment->payment_date)->format('d/m/Y') }}

Received from: {{ $invoice->user->name ?? '' }}

The sum of: {{ numberToWords($payment->amount) }}

For: {{ $invoice->billing_for }}

Tower: {{ $invoice->unit->property->name ?? 'N/A' }}

Unit: {{ $invoice->unit->name ?? 'N/A' }}

Payment Method: {{ $payment->payment_type }}

Notes: {{ $payment->notes ?? 'N/A'}}

Issued by: DAMAC Owners Association





Recipient Name: ..................................................................................

Signature: .......................................................................................

Logo