@extends('layouts.app') @section('title', 'Payment Details') @section('page-icon', 'receipt') @section('content')
Transaction review

Payment Details

Review the member payment, receipt and approval status.

@php $statusClass = match($history->status) { 'Approved' => 'is-approved', 'Rejected' => 'is-rejected', default => 'is-waiting' }; @endphp {{ $history->status }}

Member information

Account and membership details

Member name{{ $history->payment->user->name ?? 'N/A' }}
Email address{{ $history->payment->user->email ?? 'N/A' }}
Membership plan{{ $history->payment->membership->plan_name ?? 'N/A' }}
Payment date{{ $history->payment_date ? \Carbon\Carbon::parse($history->payment_date)->format('d M Y') : 'N/A' }}

Payment summary

Transaction amount breakdown

Submitted amount₹{{ number_format($history->paid_amount, 2) }}
Plan total₹{{ number_format($history->payment->amount, 2) }}
Current balance₹{{ number_format($history->payment->balance_amount, 2) }}

Payment receipt

Open the uploaded receipt in a new browser tab.

@if($history->receipt) View Receipt @else No receipt uploaded @endif
@if($history->status === 'Waiting')

Review payment

Approve the payment or reject it for correction.

@csrf
@csrf
@endif
@endsection @push('styles') @endpush