@extends('layouts.admin') @section('title', 'Wallet Status') @section('content')

Merchant Wallet Status

Monitor merchant wallet balances and transactions

@php $merchants = \App\Models\User::where('role', 'seller')->get(); $totalBalance = $merchants->sum('wallet_balance'); @endphp

Total Balance

PKR {{ number_format($totalBalance ?? 0) }}

Active Wallets

{{ $merchants->where('wallet_balance', '>', 0)->count() }}

Low Balance

{{ $merchants->where('wallet_balance', '<', 1000)->count() }}

Total Merchants

{{ $merchants->count() }}

@forelse ($merchants as $merchant) @empty @endforelse
Merchant Wallet Balance Status Last Transaction Actions
{{ strtoupper(substr($merchant->name, 0, 2)) }}
{{ $merchant->name }}
{{ $merchant->email }}
PKR {{ number_format($merchant->wallet_balance ?? 0) }}
@php $balance = $merchant->wallet_balance ?? 0; @endphp @if($balance > 5000) Healthy @elseif($balance > 1000) Low @else Critical @endif
{{ $merchant->updated_at->diffForHumans() }}
View

No merchant wallets found.

@endsection