@extends('layouts.app') @section('title', 'Payment Receipt - ' . $payment->payment_number) @push('styles') @section('content')
PAID

Karen One Development Limited

C/- HassConsult

Langata Road, Karen
+254 20 4446914
management@hassconsult.co.ke
@if($company->CompanyLogo) @else
@endif

Bill To

@if($payment->customer)

{{ $payment->customer->CustomerName ?? 'N/A' }}

@if($payment->customer->TelNo)

{{ $payment->customer->TelNo }}

@endif @if($payment->customer->Email)

{{ $payment->customer->Email }}

@endif @else

Customer information not available

@endif
@if($payment->customer->unit)

Property Information

{{ $payment->customer->unit->UnitIdentity ?? 'N/A' }}

@if($payment->customer->unit->property)

{{ $payment->customer->unit->property->PropName ?? '' }}

@endif
@endif

Payment Details

Payment Method:
@php $method = strtolower($payment->PaymentMode); $methodIcons = [ 'mpesa' => 'mobile-alt', 'bank_transfer' => 'university', 'cash' => 'money-bill-wave', 'cheque' => 'file-invoice-dollar', 'other' => 'ellipsis-h' ]; $icon = $methodIcons[$method] ?? 'credit-card'; @endphp {{ ucfirst(str_replace('_', ' ', $method)) }}
Payment Date:
{{ \Carbon\Carbon::parse($payment->PaymentDate)->format('M j, Y') }}
@if($payment->ReceiptNo)
Reference #:
{{ $payment->ReceiptNo }}
@endif
Processed By:
{{ $payment->receivedBy ? $payment->receivedBy->name : ($payment->LastUpdateUser ?: 'System') }}

Payment Summary

Description Amount (KES)

Payment Received

@if($payment->invoice_id) {{ $payment->invoice_type === 'rent' ? 'Rent Invoice' : 'Utility Invoice' }} Payment @else General Payment @endif

@if($payment->notes)

{{ $payment->notes }}

@endif
{{ number_format($payment->TotalPayment, 2) }}
Total Paid KES {{ number_format($payment->TotalPayment, 2) }}
@if($payment->notes && !str_contains($payment->notes, $payment->TotalPayment))
Additional Notes

{{ $payment->notes }}

@endif
@endsection @push('scripts') @endpush