@extends('layouts.app') @section('title', __('Wallet Management - Admin')) @php /* * All wallet values displayed by this administrative view follow the * administrator-selected currency in Payment Settings. */ $displayCurrency = default_currency(); /* * Build the wallet ID sorting URL locally. The general sortable_url() * helper in this project currently targets the admin users route. */ $currentSort = (string) request('sort', 'id'); $currentDirection = strtolower( (string) request('direction', 'desc') ); $idSortDirection = $currentSort === 'id' && $currentDirection === 'asc' ? 'desc' : 'asc'; $idSortUrl = route( 'admin.wallet.index', array_merge( request()->except(['sort', 'direction', 'page']), [ 'sort' => 'id', 'direction' => $idSortDirection, ] ) ); @endphp @section('content')
Monitor and manage all wallet transactions across the platform
| ID | User | Type | Source | Reference | Amount | Balance After | Currency | Date | Actions |
|---|---|---|---|---|---|---|---|---|---|
| #{{ $entry->id }} |
{{ $entry->user?->username ?? 'Unknown' }}
{{ $entry->user?->email ?? '' }}
|
{{ \Illuminate\Support\Str::headline($entryType) }} | {{ \Illuminate\Support\Str::headline($entry->source_type ?? 'unknown') }} |
{{ \Illuminate\Support\Str::limit($entry->source_reference ?? 'N/A', 25) }}
|
{{ $isCredit ? '+' : '-' }}{{ money($entryAmount, $displayCurrency) }} | {{ money($entry->balance_after ?? 0, $displayCurrency) }} | {{ $displayCurrency }} |
@if($entryCreatedAt)
{{ $entryCreatedAt->format('M d, Y') }}
{{ $entryCreatedAt->diffForHumans() }}
@else
{{ __('N/A') }}
@endif
|
@if($entry->user) @endif @if(filled($adjustmentReason)) @endif |
No wallet entries foundTry adjusting your search or filter criteria |
|||||||||