@extends('front_end.layouts.home') @section('title', 'Transaction History') @section('content')

Transaction History

View all your wallet transactions

Transactions
Reset
@forelse($transactions as $transaction) @empty @endforelse
Date & Time Description Reference Type Amount
{{ $transaction->created_at->format('M d, Y H:i') }} {{ $transaction->description }} @if($transaction->reference_type) {{ ucfirst(str_replace('_', ' ', $transaction->reference_type)) }} @if($transaction->reference_id) #{{ $transaction->reference_id }} @endif @else - @endif @if($transaction->type == 'credit') Credit @elseif($transaction->type == 'debit') Debit @elseif($transaction->type == 'pending') Pending @else {{ ucfirst($transaction->type) }} @endif @if($transaction->type == 'credit' || $transaction->type == 'completed') +${{ number_format($transaction->amount, 2) }} @elseif($transaction->type == 'debit') -${{ number_format($transaction->amount, 2) }} @else ${{ number_format($transaction->amount, 2) }} @endif
No transactions found.
{{ $transactions->appends(request()->except('page'))->links('pagination::bootstrap-5') }}
@endsection