@php $page = 'deposits' @endphp @php function getBadgeClass($status) { switch ($status) { case 'processed': return 'success'; case 'declined': return 'danger'; case 'processing': return 'warning'; default: return 'info'; } } @endphp @extends('includes.layout') @section('content')

Wallet Balance

Balance

${{ number_format($user->balance, 2) }}

@forelse ($deposits as $item)
User:

{{ $item->user->name }}


Amount:

${{ number_format($item->amount) }}


Payment Method :

{{ optional($item->system_wallet)->name }}


Status:

{{ Str::ucfirst($item->status) }}


Payment Date:

{{ $item->created_at->diffForHumans() }}


Action:

View

@empty

No Data Available at this Moment

@endforelse
{{ $deposits->render("pagination::bootstrap-4") }}
@endsection @push('scripts') @endpush