@php $party = $party ?? ($payment->isReceived() ? $payment->customer : $payment->vendor); $docOpts = $docSettings['options'] ?? []; $docLbl = $docSettings['labels'] ?? []; $kindMeta = $kindMeta ?? $payment->kindMeta(); $paymentTitle = $paymentTitle ?? $kindMeta['title'] ?? 'PAYMENT'; $amountLabel = $amountLabel ?? $kindMeta['amount_label'] ?? 'Amount'; $forPdf = $forPdf ?? false; if ($forPdf) { $logoImage = $logoPath ?? \App\Helpers\CompanyMedia::pdfImagePath($company->logo_path ?? null); $signatureImage = $signaturePath ?? \App\Helpers\CompanyMedia::pdfImagePath($company->signature_image_path ?? null); } else { $logoImage = $logoPath ?? $logoSrc ?? \App\Helpers\CompanyMedia::imageSource($company->logo_path ?? null); $signatureImage = $signaturePath ?? $signatureSrc ?? \App\Helpers\CompanyMedia::imageSource($company->signature_image_path ?? null); } @endphp
@if($logoImage)
{{ $company->name ?? 'Company' }}@foreach($company->fullAddressLines() as $line) @endforeach @if($company->phone)@endif @if($company->email)@endif @if($company->gstin)@endif |
{{ $paymentTitle }}#{{ $payment->payment_number }} {{ $documentCopyLabel ?? 'Original Copy' }}
{{ $amountLabel }}: ₹ {{ number_format((float) $payment->amount, 2) }}
|
|
{{ $docLbl['receipt_to'] ?? 'Receipt To' }} @if($party){{ $party->name }} @foreach($party->billingAddressLines() as $line) @endforeach @if($party->gstin ?? null) @endif @endif |
|
| S.No | {{ $docLbl['col_document_number'] ?? 'Document Number' }} | {{ $docLbl['col_document_date'] ?? 'Document Date' }} | {{ $docLbl['col_document_amount'] ?? 'Document Amount (₹)' }} | {{ $docLbl['col_payment_amount'] ?? 'Payment Amount (₹)' }} |
|---|---|---|---|---|
| {{ $idx + 1 }} | {{ $alloc->document_number }} | {{ $alloc->document_date?->format('d - M - Y') ?? '—' }} | {{ number_format((float) $alloc->document_amount, 2) }} | {{ number_format((float) $alloc->allocated_amount, 2) }} |
|
@if(($docOpts['show_primary_signature'] ?? true) && $signatureImage)
{{ $settings['primary_signature_label'] ?? 'Provider Signature' }} |
{{ $settings['secondary_signature_label'] ?? 'Receiver Signature' }} @endif |