@php $content = content('transaction.content'); $recentTransactions = App\Models\Payment::with('user', 'gateway') ->latest() ->where('payment_status',1) ->limit(10) ->get(); $recentwithdraw = App\Models\Withdraw::with('user', 'withdrawMethod') ->latest() ->where('status',1) ->limit(10) ->get(); @endphp
@forelse ($recentTransactions as $item) @empty @endforelse
{{ __('Username') }} {{ __('Date') }} {{ __('Amount') }} {{ __('Gateway') }}
{{ @$item->user->username }} {{ $item->created_at->format('Y-m-d') }} {{ number_format($item->amount, 2) . ' ' . @$general->site_currency }} {{ @$item->gateway->gateway_name ?? 'Deposit' }}
{{ __('No Data Found') }}
@forelse ($recentwithdraw as $item) @empty @endforelse
{{ __('Name') }} {{ __('Date') }} {{ __('Amount') }} {{ __('Gateway') }}
{{ @$item->user->username }} {{ $item->created_at->format('Y-m-d') }} {{ number_format($item->withdraw_amount, 2) . ' ' . @$general->site_currency }} {{ $item->withdrawMethod->name }}
{{ __('No Data Found') }}