{{-- resources/views/invoicing/payments/show.blade.php --}} @extends('layouts.app') @section('title', 'Payment ' . $payment->reference) @section('page_title', $payment->reference) @section('page_subtitle', 'Payment details') @section('content')
← Payments Receipt
Payment Details
Reference {{ $payment->reference }}
Amount {{ $payment->currency }} {{ number_format($payment->amount, 2) }}
Method {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
@if($payment->transaction_reference)
Transaction Ref {{ $payment->transaction_reference }}
@endif
Date Paid {{ $payment->paid_at?->format('d M Y H:i') }}
Status {{ ucfirst($payment->status) }}
@if($payment->receivedBy)
Received By {{ $payment->receivedBy->name }}
@endif
@if($payment->guest)
Guest
{{ $payment->guest->first_name }} {{ $payment->guest->last_name }}
@if($payment->guest->email)
{{ $payment->guest->email }}
@endif
@endif @if($payment->invoice)
Invoice
{{ $payment->invoice->invoice_number }}
Total: {{ $payment->invoice->currency }} {{ number_format($payment->invoice->total_amount, 2) }} · Balance: {{ number_format($payment->invoice->balance_due, 2) }}
@endif {{-- Refund --}} @if($payment->status === 'completed' && $payment->amount > 0)
Refund
@if($payment->refunds->count() > 0) @foreach($payment->refunds as $refund)
{{ $payment->currency }} {{ number_format($refund->amount, 2) }} — {{ $refund->reason }} · {{ $refund->refunded_at?->format('d M Y') }}
@endforeach @endif
@csrf
@endif
@endsection