@extends('layouts.admin') @section('title', 'Payment Receipt') @section('content')

Payment Receipt

Receipt for transaction #{{ $payment->transaction_id ?? 'TXN000001' }}

Back to Payment

Phoenix Taekwondo

Martial Arts Academy

RECEIPT

#{{ $payment->transaction_id ?? 'TXN000001' }}

From:
Phoenix Taekwondo Academy
123 Martial Arts Street
Phoenix, AZ 85001
Phone: (555) 123-4567
Email: info@phoenixtaekwondo.com
To:
{{ $payment->user->name ?? 'Customer Name' }}
{{ $payment->billing_address ?? 'Customer Address' }}
Email: {{ $payment->user->email ?? 'customer@email.com' }}
Phone: {{ $payment->user->phone ?? '(555) 000-0000' }}
Payment Date: {{ $payment->created_at ? $payment->created_at->format('M d, Y') : 'N/A' }}
Payment Method: {{ $payment->payment_method ?? 'Credit Card' }}
Status: @if($payment->status == 'completed') Completed @elseif($payment->status == 'pending') Pending @else Failed @endif
Reference ID: {{ $payment->reference_id ?? 'REF' . str_pad($payment->id ?? 1, 6, '0', STR_PAD_LEFT) }}
Payment For: {{ $payment->description ?? 'Monthly Membership' }}
Due Date: {{ $payment->due_date ? $payment->due_date->format('M d, Y') : 'N/A' }}
@if(isset($payment->line_items) && $payment->line_items) @foreach($payment->line_items as $item) @endforeach @else @endif
Description Qty Rate Amount
{{ $item['description'] ?? 'Service' }} {{ $item['quantity'] ?? '1' }} ${{ number_format($item['rate'] ?? 0, 2) }} ${{ number_format($item['amount'] ?? 0, 2) }}
{{ $payment->description ?? 'Monthly Membership Fee' }} 1 ${{ number_format($payment->amount ?? 0, 2) }} ${{ number_format($payment->amount ?? 0, 2) }}
@if(isset($payment->tax_amount) && $payment->tax_amount > 0) @endif @if(isset($payment->discount_amount) && $payment->discount_amount > 0) @endif
Subtotal: ${{ number_format($payment->subtotal ?? $payment->amount ?? 0, 2) }}
Tax ({{ $payment->tax_rate ?? '8.25' }}%): ${{ number_format($payment->tax_amount ?? 0, 2) }}
Discount: -${{ number_format($payment->discount_amount ?? 0, 2) }}
Total: ${{ number_format($payment->amount ?? 0, 2) }}
Amount Paid: ${{ number_format($payment->amount ?? 0, 2) }}
Balance Due: $0.00
@if($payment->payment_method && $payment->payment_method != 'cash')
Payment Method Details
Card Type: {{ $payment->card_type ?? 'Visa' }}
Card Number: **** **** **** {{ $payment->last_four ?? '1234' }}
Authorization Code: {{ $payment->auth_code ?? 'AUTH123456' }}
Gateway: {{ $payment->gateway ?? 'Stripe' }}
@endif @if($payment->notes)
Notes

{{ $payment->notes }}

@endif

Thank you for your payment!

This receipt was generated on {{ now()->format('M d, Y \a\t g:i A') }}

@if($payment->status == 'completed')
PAYMENT CONFIRMED
@endif
@if($payment->requires_signature ?? false)
Digital Signature
@if($payment->customer_signature) Customer Signature @else Customer Signature @endif

Customer

@if($payment->admin_signature) Admin Signature @else Administrative Signature @endif

Phoenix Taekwondo

@endif
@endsection @section('styles') @endsection @section('scripts') @endsection