@extends('backend.partials.master') @section('title') {{ ___('label.my_wallet') }} @endsection @section('maincontent')
{{ ___('label.balance') }}

{{ currency_symbol() }}{{ number_format($balance) }}

{{ ___('label.earned') }}

{{ currency_symbol() }}{{ number_format($earned) }}

{{ ___('label.spent') }}

{{ currency_symbol() }}{{ number_format($spent) }}

@foreach($transactions as $t) @php $c = $t->type === 'credit' ? 'success' : 'danger'; $sign = $t->type === 'credit' ? '+' : '-'; @endphp {{ $t->reference }} {{ $t->txn_date?->translatedFormat('d M Y') }} {{ $t->description }} {{ admin_label(ucfirst($t->type)) }} {{ $sign }}{{ currency_symbol() }}{{ number_format($t->amount) }} {{ currency_symbol() }}{{ number_format($t->balance_after) }} @endforeach
@endsection