@extends('customer.layouts.app') @section('title', 'Payment ' . $payment->payment_number) @section('page-title', 'Payment Details') @section('breadcrumbs') Payments chevron_right {{ $payment->payment_number }} @endsection @section('content')

{{ $payment->payment_number }}

Payment Date: {{ $payment->payment_date->format('M d, Y') }}
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'completed' => 'bg-green-100 text-green-800', 'failed' => 'bg-red-100 text-red-800', 'refunded' => 'bg-gray-100 text-gray-800', ]; @endphp {{ ucfirst($payment->status) }}

Payment Details

Amount: {{ $payment->currency }} {{ number_format($payment->amount, 2) }}
Payment Method: {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
@if($payment->transaction_id)
Transaction ID: {{ $payment->transaction_id }}
@endif @if($payment->reference)
Reference: {{ $payment->reference }}
@endif

Related Invoice

{{ $payment->invoice->invoice_number }}

Invoice Date: {{ $payment->invoice->issue_date->format('M d, Y') }}

Invoice Total: {{ $payment->invoice->currency }} {{ number_format($payment->invoice->total, 2) }}

@if($payment->notes)

Notes

{{ $payment->notes }}

@endif
@endsection