@extends('layouts.app') @section('title', 'Wallet') @push('styles') @endpush @section('content') {{-- Wallet Hero Card --}}
Available Balance
{{ $currency ?? '₦' }}{{ number_format($availableBalance ?? 0, 2) }}
{{ $currency ?? '₦' }}{{ number_format($inEscrow ?? 0, 2) }} locked in escrow
{{-- Balance Summary Cards --}}
{{ $currency ?? '₦' }}{{ number_format($availableBalance ?? 0, 2) }}
Available Balance
{{ $currency ?? '₦' }}{{ number_format($inEscrow ?? 0, 2) }}
In Escrow (Locked)
{{ $currency ?? '₦' }}{{ number_format($totalBalance ?? 0, 2) }}
Total Balance
{{-- Transaction History --}}

Transaction History

@if(isset($walletHistory) && $walletHistory->count()) @foreach($walletHistory as $entry) @endforeach
Date Type Amount Balance After Description
{{ $entry->created_at->format('M d, Y h:i A') }} {{ ucfirst($entry->type) }} {{ in_array($entry->type, ['deposit', 'release']) ? '+' : '-' }}{{ $currency ?? '₦' }}{{ number_format(abs($entry->amount), 2) }} {{ $currency ?? '₦' }}{{ number_format($entry->balance_after, 2) }} {{ Str::limit($entry->description, 40) }}
@include('partials.table-pagination', ['paginator' => $walletHistory, 'label' => 'transactions']) @else

No transaction history yet.

@endif
{{-- ===== FUND WALLET MODAL ===== --}} {{-- ===== WITHDRAW MODAL ===== --}} {{-- ===== SEND MONEY MODAL ===== --}} @endsection @push('scripts') @endpush