@extends('layouts.app') @section('content')
@csrf @method('DELETE')
Payment Receipt

{{ $vendorPayment->payment_number }}

Amount Paid

{{ formatCurrency($vendorPayment->amount) }}

Paid To
{{ $vendorPayment->vendor->name }}
@if($vendorPayment->vendor->company_name)
{{ $vendorPayment->vendor->company_name }}
@endif
{{ $vendorPayment->vendor->email }}
{{ $vendorPayment->vendor->phone }}
Payment Details
Date: {{ \Carbon\Carbon::parse($vendorPayment->payment_date)->format('d M Y') }}
Mode: {{ $vendorPayment->payment_mode }}
Reference: {{ $vendorPayment->reference_number ?? 'N/A' }}
Status: @if($vendorPayment->status == 'recorded') Recorded @else Voided @endif
Allocated Against Bills
@foreach($vendorPayment->allocations as $allocation) @endforeach
Bill Number Bill Date Bill Amount Amount Allocated
{{ $allocation->bill->bill_number }} {{ \Carbon\Carbon::parse($allocation->bill->bill_date)->format('d M Y') }} {{ formatCurrency($allocation->bill->total_amount) }} {{ formatCurrency($allocation->amount) }}
Total Amount Paid {{ formatCurrency($vendorPayment->amount) }}
@if($vendorPayment->notes)
Notes

{{ $vendorPayment->notes }}

@endif
Thank you for your business!
@endsection