@extends('layouts.master') @section('title', 'My Transactions') @section('content')
| Date | Transaction ID | Type | Amount | Payment Method | Status | Details |
|---|---|---|---|---|---|---|
|
{{ $transaction->created_at->format('M d, Y') }}
{{ $transaction->created_at->format('h:i A') }}
|
@if($transaction->payment_gateway === 'manual') {{ $transaction->payment_id ?? 'N/A' }} Ref @else {{ $transaction->payment_id ?? 'N/A' }} @endif |
@if($transaction->transaction_type === 'subscription')
Subscription
{{ $transaction->metadata['plan_name'] ?? 'Plan' }}
@elseif($transaction->transaction_type === 'promotion')
Promotion
{{ $transaction->metadata['package_name'] ?? 'Package' }}
@else
{{ ucfirst($transaction->transaction_type) }}
@endif
|
₹{{ number_format($transaction->total_amount, 2) }} |
{{ str_replace('_', ' ', $transaction->payment_method ?? 'N/A') }}
{{ ucfirst($transaction->payment_gateway) }}
|
{{ ucfirst(str_replace('_', ' ', $transaction->status)) }} @if($transaction->status === 'failed' && $transaction->failure_reason) @endif | @if($transaction->status === 'pending_approval') Waiting Approval @elseif($transaction->status === 'success') Completed @endif |
|
No transactions found.
|
||||||