@extends('admin.layouts.app') @section('content')
{{ $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') }}
₹{{ number_format($payment->amount_total, 2) }}
₹{{ number_format($payment->amount_paid, 2) }}
₹{{ number_format($payment->amount_total - $payment->amount_paid, 2) }}
{{ $payment->remarks }}
{{ $payment->user->name ?? 'N/A' }}
{{ $payment->user->email ?? 'N/A' }}
{{ $payment->user->phone }}
{{ $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
{{ $payment->package->title ?? 'N/A' }}
₹{{ number_format($payment->package->price, 2) }}
₹{{ number_format($payment->package->offer_price, 2) }}