@if (cache('recent_transactions_enabled', false))

{{ __('Recent Transactions') }}

{{ __('View All') }}
@foreach ($recentTransactions as $transaction)

{{ $transaction->plan->name }}

{{ $transaction->created_at->diffForHumans() }}, {{ ucwords(str_replace('_', ' ', $transaction->payment_type)) }}

@php $status = $transaction->status == 'Success' ? 'Completed' : 'Pending'; @endphp
@endforeach
@endif