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

Wallets

bKash, Nagad, Rocket, Bank — jotogulo dorkar add korun

@if (count($typeTotals) > 0)
@foreach ($typeTotals as $type => $total)
{{ $type }} total
{{ bdt($total) }}
@endforeach
@endif @if ($wallets->isEmpty())

Ekhono kono wallet add koreni.

@else
@foreach ($wallets as $w)
{{ strtoupper($w->name[0] ?? 'W') }}
{{ $w->name }}
{{ $w->type }}
@csrf @method('DELETE')
@if ($w->account_number)
{{ $w->account_number }}
@endif
Current balance
{{ bdt($w->currentBalance()) }}
Opening: {{ bdt($w->opening_balance) }}
@endforeach
@endif

Notun wallet

@csrf
@endsection