@if(file_exists(public_path('images/spiritre.png'))) @endif
RECEIPT
@if($company_address)
{{ $company_address }}
@endif @if($company_email)
{{ $company_email }}
@endif @if($company_phone)
{{ $company_phone }}
@endif
Receipt Details
Receipt #: {{ $receipt_number }}
Date: {{ $transaction_date->format('F j, Y') }}
Status: {{ ucfirst($transaction_status) }}
Invoice ID: {{ $invoice->id }}
@if($subscription)
Subscription: {{ $subscription->stripe_id }}
@endif
Customer Information
Name: {{ $customer->name ?? 'N/A' }}
Email: {{ $customer->email ?? 'N/A' }}
Customer ID: {{ $customer->id ?? 'N/A' }}
Stripe ID: {{ $customer->stripe_id ?? 'N/A' }}
@forelse($line_items as $item) @empty @endforelse
Description Subscription Quantity Period Amount
{{ $item->description }} @if(isset($item->subscription_name)) {{ $item->subscription_name }} @else N/A @endif {{ $item->quantity ?? 1 }} @if($item->period) {{ date('M j, Y', $item->period->start) }} - {{ date('M j, Y', $item->period->end) }} @else N/A @endif ${{ number_format($item->amount / 100, 2) }}
No items found
@if(strtolower($payment_method['type']) === 'card' && (!isset($customer) || !isset($customer->user_role) || $customer->user_role != 2)) @php $total = $amount / 100; $original = $total / 1.035; $fee = $total - $original; @endphp
Subtotal (before 3.5% fee): ${{ number_format($original, 2) }}
Card Processing Fee (3.5%): ${{ number_format($fee, 2) }}
@if($tax > 0)
Tax: ${{ number_format($tax / 100, 2) }}
@endif
Total Charged: ${{ number_format($total, 2) }}
@else
Subtotal: ${{ number_format($subtotal / 100, 2) }}
@if($tax > 0)
Tax: ${{ number_format($tax / 100, 2) }}
@endif
Total: ${{ number_format($amount / 100, 2) }}
@endif
Payment Method
Type: {{ ucfirst($payment_method['type']) }}
{{ $payment_method['brand'] }}: @if($payment_method['last4']) ****{{ $payment_method['last4'] }} @else N/A @endif
@if($metadata_note)
Additional Information
{{ $metadata_note }}
@endif