@php $topInvestor = \App\Models\Invest::with('user') ->selectRaw('SUM(amount) as totalAmount, user_id') ->orderBy('totalAmount', 'desc') ->groupBy('user_id') ->limit(8) ->get(); $top_investorContent = getContent('top_investor.content', true); @endphp

{{ __(@$top_investorContent->data_values->heading_w) }} {{ __(@$top_investorContent->data_values->heading_c) }}

{{ __(@$top_investorContent->data_values->sub_heading) }}

@foreach ($topInvestor as $k => $data)
{{ ordinal($loop->iteration) }}
{{ $data->user->fullname }}
{{ @json_decode(json_encode($data->user->username)) }}
@lang('Investment') - {{ $general->cur_sym }}{{ showAmount($data->totalAmount) }}
@endforeach