@extends('layouts.app') @section('title', 'Admin — Hisab') @section('content') @php function bdt($n) { return '৳ ' . number_format($n, 2); } @endphp

Admin

Shob user ar platform er hisab

Users
{{ $stats['totalUsers'] }}
Deals
{{ $stats['totalDeals'] }}
Transactions
{{ $stats['totalTxns'] }}
Total in
{{ bdt($stats['totalIn']) }}
Total out
{{ bdt($stats['totalOut']) }}
Fee
{{ bdt($stats['totalFee']) }}

All users

{{ $users->count() }} total · click korle detail dekha jabe

@foreach ($users as $u) @endforeach
Email Joined Deals Txns In Out Action
{{ $u->email ?? '—' }} @if ($u->is_admin) admin @endif
ID: {{ $u->id }}
{{ $u->created_at->format('M d, Y') }} {{ $u->deals_count }} {{ $u->transactions_count }} {{ bdt($u->total_in ?? 0) }} {{ bdt($u->total_out ?? 0) }} @if (!$u->is_admin)
@csrf @method('DELETE')
@endif
@endsection