@extends('layouts.admin') @section('title', 'Payment Receipt') @section('content')
Receipt for transaction #{{ $payment->transaction_id ?? 'TXN000001' }}
Martial Arts Academy
#{{ $payment->transaction_id ?? 'TXN000001' }}
| 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' }} |
| 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) }} |
| 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 |
| Card Type: | {{ $payment->card_type ?? 'Visa' }} |
| Card Number: | **** **** **** {{ $payment->last_four ?? '1234' }} |
| Authorization Code: | {{ $payment->auth_code ?? 'AUTH123456' }} |
| Gateway: | {{ $payment->gateway ?? 'Stripe' }} |
{{ $payment->notes }}
Thank you for your payment!
This receipt was generated on {{ now()->format('M d, Y \a\t g:i A') }}
@if($payment->status == 'completed')Customer
Phoenix Taekwondo