@extends('layouts.admin') @section('breadcrumb') @endsection @section('content') @php $totalDeposits = 0; $totalPayouts = 0; $totalBalance = 0; @endphp @foreach($merchantBalances as $data) @php $totalDeposits += $data['deposits'] ?? 0; $totalPayouts += $data['payouts'] ?? 0; $totalBalance += $data['balance'] ?? 0; @endphp @endforeach {{-- SUMMARY --}}
Total Deposits

{{ formatted_amount($totalDeposits) }}

Total Payouts

{{ formatted_amount($totalPayouts) }}

Current Balance

{{ formatted_amount($totalBalance) }}

@forelse($merchantBalances as $data) @php $merchant = $data['merchant']; $user = $merchant->user ?? null; @endphp @empty @endforelse
Merchant Deposits Payouts Current Balance
{{ $merchant->name ?? '-' }} {{ formatted_amount($data['deposits'] ?? 0) }} {{ formatted_amount($data['payouts'] ?? 0) }} {{ formatted_amount($data['balance'] ?? 0) }}
No data found
@endsection