@extends('layouts.admin') @section('title', 'Payment ' . $payment->payment_number) @section('page-title', 'Payment Details') @section('content')

{{ $payment->payment_number }}

Payment Date: {{ $payment->payment_date->format('M d, Y') }}

{{ ucfirst($payment->status) }}

Invoice

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

Customer

{{ $payment->customer->name }}

Payment Method

{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}

Amount

{{ $payment->currency }} {{ number_format($payment->amount, 2) }}

@if($payment->transaction_id)

Transaction ID

{{ $payment->transaction_id }}

@endif @if($payment->notes)

Notes

{{ $payment->notes }}

@endif
@if($payment->status === 'completed')
@csrf
@endif
@endsection