@extends('layouts.app') @section('title', 'Escrow Dashboard') @push('styles') @endpush @section('content') {{-- Welcome Banner --}}

Welcome back, {{ auth()->user()->first_name ?? 'User' }}!

Here's what's happening with your escrow transactions.

{{-- Stats Grid --}}
{{ $currency ?? '₦' }}{{ number_format($walletBalance ?? 0, 2) }}
Wallet Balance
Fund Wallet
{{ $activeEscrows ?? 0 }}
Active Escrows
{{ $completedEscrows ?? 0 }}
Completed
{{ $currency ?? '₦' }}{{ number_format($totalVolume ?? 0, 2) }}
Total Volume
{{-- Quick Actions --}}

Quick Actions

Create Escrow
Fund Wallet
Withdraw
View Transactions
{{-- Recent Transactions --}}

Recent Transactions

View All
@if(isset($recentTransactions) && $recentTransactions->count()) @foreach($recentTransactions as $txn) @endforeach
ID Title Counterparty Amount Status Date Action
ESC-{{ str_pad($txn->id, 5, '0', STR_PAD_LEFT) }} {{ Str::limit($txn->title, 30) }} {{ $txn->getCounterparty(auth()->id())?->name ?? 'N/A' }} {{ $currency ?? '₦' }}{{ number_format($txn->amount, 2) }} {{ ucfirst($txn->status) }} {{ $txn->created_at->format('M d, Y') }} View
@else

No transactions yet. Create your first escrow!

Create Escrow
@endif
@endsection