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

{{ $user->name ?? $user->email }}

Joined {{ $user->created_at->format('M d, Y') }}

Wallets

@forelse ($user->wallets as $w)
{{ $w->name }}
{{ $w->type }}
{{ bdt($w->currentBalance()) }}
@empty

Kono wallet nei.

@endforelse

Recent transactions

@forelse ($user->transactions as $t) @empty @endforelse
Date Wallet Type Direction Amount
{{ $t->occurred_at->format('M d, Y') }} {{ $t->wallet->name }} {{ $t->type }} {{ $t->direction }} {{ $t->direction === 'in' ? '+' : '−' }} {{ bdt($t->amount) }}
Kono transaction nei.

Deals

@forelse ($user->deals as $d)
{{ $d->title }}
{{ $d->status }} · Net {{ bdt($d->net()) }}
@empty

Kono deal nei.

@endforelse
@endsection