<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>{{ $payment->payment_number }}</title>
    <style>
        body { font-family: DejaVu Sans, sans-serif; font-size: 12px; color: #222; }
        h1 { font-size: 18px; }
    </style>
</head>
<body>
    <h1>Payment Receipt {{ $payment->payment_number }}</h1>
    <p><strong>{{ $settings['property_name'] ?? 'Venue Events Manager' }}</strong></p>
    <p>Date: {{ $payment->payment_date?->format('d/m/Y') }}</p>
    <p>Customer: {{ $payment->customer?->name }}</p>
    <p>Invoice: {{ $payment->invoice?->invoice_number }}</p>
    <p>Amount: <strong>{{ number_format((float) $payment->amount, 2) }}</strong></p>
    <p>Method: {{ $payment->payment_method?->label() }}</p>
    @if ($payment->transaction_reference)
        <p>Reference: {{ $payment->transaction_reference }}</p>
    @endif
    <p>{{ $settings['receipt_footer'] ?? 'Thank you for your business.' }}</p>
</body>
</html>
