@extends('admin.layouts.app') @section('content')

Payment Details

Payment Information

{{ $payment->id }}

{{ $payment->transaction_id ?? 'N/A' }}

@php $statusColors = [ 'pending' => 'warning', 'paid' => 'success', 'failed' => 'danger', 'refunded' => 'secondary' ]; $statusColor = $statusColors[$payment->payment_status] ?? 'secondary'; @endphp {{ ucfirst($payment->payment_status) }}

{{ $payment->created_at->format('M d, Y h:i A') }}

Amount Information

₹{{ number_format($payment->amount_total, 2) }}

₹{{ number_format($payment->amount_paid, 2) }}

@if($payment->amount_total != $payment->amount_paid)

₹{{ number_format($payment->amount_total - $payment->amount_paid, 2) }}

@endif
@if($payment->remarks)

Remarks

{{ $payment->remarks }}

@endif

User Information

{{ $payment->user->name ?? 'N/A' }}

{{ $payment->user->email ?? 'N/A' }}

@if($payment->user->phone)

{{ $payment->user->phone }}

@endif

Order Information

{{ $payment->order->order_number ?? 'N/A' }}

@if($payment->order) @php $orderStatusColors = [ 'pending' => 'warning', 'partially_paid' => 'info', 'paid' => 'success', 'cancelled' => 'danger', 'refunded' => 'secondary' ]; $orderStatusColor = $orderStatusColors[$payment->order->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $payment->order->status)) }} @else N/A @endif

Package Information

{{ $payment->package->title ?? 'N/A' }}

@if($payment->package)

₹{{ number_format($payment->package->price, 2) }}

@if($payment->package->offer_price)

₹{{ number_format($payment->package->offer_price, 2) }}

@endif @endif
@endsection