@extends('layouts.main') @section('content') @php //fetch users with pagination if (!empty($_GET['search'])) { $neenoe = request()->query('search'); //where('title','like','%'.$search.'%') $deposits = DB::table('deposits')->orWhere('amount','like','%'.$neenoe.'%')->orWhere('username','like','%'.$neenoe.'%')->paginate(10); }else { $deposits = DB::table('deposits')->paginate(10); } @endphp
Approved Deposit History
@csrf
@if ($deposits->count() > 0) @foreach ($deposits as $d) @endforeach @else @endif
Date Method Transaction # Username Amount Status
{{ \Carbon\Carbon::parse($d->created_at)->diffForHumans() }} {{ $d->method }} {{ $d->transaction }} @php $thisguy = DB::table('users')->where('username', $d->username)->first(); $iduser = $thisguy->id ?? 1; @endphp {{ $thisguy->username ?? $d->username }} KSH {{ $d->amount }} {{ $d->status }}
No Data Found
@endsection