@php $trxContent = getContent('trx_win.content', true); $latestWinners = \App\Models\GameLog::where('win_status', '!=', 0) ->where('win_amo', '>', '0') ->take(6) ->with(['user', 'game']) ->latest('id') ->get(); $transactions = \App\Models\Transaction::with('user')->latest()->limit(7)->get(); @endphp

{{ __($trxContent?->data_values?->heading ?? '') }}

{{ __($trxContent?->data_values?->subheading ?? '') }}

@lang('Latest Winner')

@foreach ($latestWinners as $winner)
{{ __($winner->user->fullname) }}

{{ __($winner?->game?->name ?? '') }}

{{ showAmount($winner->win_amo) }}
@endforeach
@forelse ($transactions as $transaction) @empty @endforelse
@lang('Transaction ID') @lang('Username') @lang('Data') @lang('Amount')
#{{ $transaction->trx }} {{ $transaction->user->username }} {{ showDateTime($transaction->created_at) }} {{ showAmount($transaction->amount) }}
{{ __($emptyMessage) }}