@extends('pdf.layout', [ 'documentTitle' => 'Receipt', 'documentNo' => $receipt->receipt_no, 'documentStatus' => 'Received', 'documentStatusTone' => 'paid', ]) @section('body') @php $symbol = currency_symbol(); $invoice = $receipt->invoice; @endphp
Received from
{{ $receipt->customer_name ?: optional($receipt->customer)->name ?: 'Walk-in' }}
Date
{{ dateFormat($receipt->received_on) }}
Method
{{ $receipt->method }}

Payment

Against invoice Reference Amount
{{ $invoice?->invoice_no ?: '—' }} {{ $receipt->reference ?: '—' }} {{ $symbol }}{{ number_format((float) $receipt->amount, 2) }}
@if($invoice) @php $due = max(0, round((float) $invoice->amount - (float) $invoice->paid_amount, 2)); @endphp
Invoice total {{ $symbol }}{{ number_format((float) $invoice->amount, 2) }}
Paid to date {{ $symbol }}{{ number_format((float) $invoice->paid_amount, 2) }}
Balance due {{ $symbol }}{{ number_format($due, 2) }}
@endif
This receipt confirms the amount above was received. Keep it with your travel documents.
@endsection