@extends('layouts.admin') @php $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '?'); @endphp @section('title', 'Wallet Transactions') @section('header', 'Driver Wallet Transactions') @section('content')
Manage wallet transactions for this driver
Displaying {{ $transactions->count() }} of {{ $transactions->total() }} transactions| Date | Type | Description | Amount | Balance After | Reference |
|---|---|---|---|---|---|
| {{ $transaction->created_at->format('d M Y H:i') }} | @php $typeClasses = [ 'topup' => 'success', 'credit' => 'success', 'refund' => 'warning', 'debit' => 'danger', ]; @endphp {{ $transaction->type }} | {{ $transaction->description ?? '—' }} | {{ in_array($transaction->type, ['credit', 'refund', 'topup']) ? '+' : '-' }}{{ $currencySymbol }}{{ number_format(abs($transaction->amount), App\Models\AppSetting::currencyDecimals()) }} | {{ $currencySymbol }}{{ number_format($transaction->balance_after ?? 0, App\Models\AppSetting::currencyDecimals()) }} | {{ $transaction->reference_type ?? '—' }} {{ $transaction->reference_id ? '#'.$transaction->reference_id : '' }} |
| No transactions found | |||||