@extends('admin.layouts.home') @section('title', 'Deposits') @section('content')

Deposits

@php $withdrawMethod = [ 1=>'Stripe', 2=>'Paypal', 3=>'Flutterwave', 4=>'Paystack' ]; @endphp @forelse($deposits as $deposit) @empty @endforelse
ID Username Amount Payment Method Status Created At
{{ $deposit->id }} {{ $deposit->user->username }} {{ number_format($deposit->amount, 2) }} {{ $withdrawMethod[$deposit->withdraw_method_id] }} @if($deposit->deposit_status == 0) Pending @elseif($deposit->deposit_status == 1) Success @else Cancelled @endif {{ $deposit->created_at->format('Y-m-d H:i:s') }}
No deposits found
{{ $deposits->links('pagination::bootstrap-5') }}
@endsection