@php $content = getContent('transaction.content', true); $deposits = App\Models\Deposit::where('status', Status::PAYMENT_SUCCESS) ->with('user') ->orderBy('id', 'DESC') ->take(5) ->get(); $withdraws = App\Models\Withdrawal::whereIn('status', [Status::PAYMENT_SUCCESS, Status::PAYMENT_PENDING]) ->with('user', 'userCoinBalance.miner') ->orderBy('id', 'DESC') ->take(5) ->get(); @endphp

{{ __(@$content->data_values->heading) }}

{{ __(@$content->data_values->description) }}

@lang('Latest Payments')

@forelse ($deposits as $deposit) @empty @endforelse
@lang('User') @lang('Amount')
{{ $deposit->user->fullname }} {{ showAmount($deposit->amount) }}
{{ __($emptyMessage) }}

@lang('Latest Withdraws')

@forelse ($withdraws as $withdraw) @empty @endforelse
@lang('User') @lang('Amount')
{{ $withdraw->user->fullname }} {{ showAmount($withdraw->amount, 8, exceptZeros: true, currencyFormat:false) }} {{ strtoupper(@$withdraw->userCoinBalance->miner->coin_code) }}
{{ __($emptyMessage) }}