@extends('layouts.app') @section('content')

Wallet Overview

Current Balance

@csrf
@csrf

Recent Transactions

@foreach($transactions as $transaction) @endforeach
Date Type Amount Status Description
{{ $transaction->created_at->format('d M Y') }} {{ ucfirst($transaction->type) }} Tsh {{ number_format($transaction->amount, 2) }} {{ ucfirst($transaction->status) }} {{ $transaction->type === 'loan' ? ($transaction->description ?? 'Approved Loan') : $transaction->description }}
{{ $transactions->links() }}
@endsection