@extends('layouts.app') @section('content')
{{-- ── TOOLBAR ── --}}

Agency Profile

{{-- ── CONTENT ── --}}
{{-- Agency Header --}}
@include('admin.agency.agency_header')
{{-- ── SUCCESS ALERT ── --}} @if(session()->has('success'))
{{ session()->get('success') }}
@endif {{-- ── WALLET BALANCE CARD ── --}}
Wallet Balance
💵
Current Balance
{{ optional($agency->wallet)->balance ?? 0 }} {{ $agency->currency->c_shortname }}
{{-- ── TRANSACTION HISTORY ── --}}
Wallet Transaction History ( Last 10 Transactions )
@foreach($wallet_transactions as $txn) @endforeach
Date Type Remarks Amount Balance After
{{ $txn->created_at->format('d M Y H:i') }} {{ ucfirst($txn->type) }} {{ ucfirst($txn->reference_id) }} {{ $txn->type === 'deposit' ? '+' : '-' }}{{ number_format($txn->amount, 3) }} {{ number_format($txn->balance_after, 3) }}
{{-- ── WALLET MODAL ── --}} @endsection @section('scripts') @endsection