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

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

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

@foreach ($topInvestor as $invest)
{{ $invest->user->username }}

{{ ordinal($loop->iteration) }}

{{ $invest->user->fullname }}
@lang('Investment'): {{ $general->cur_sym }}{{ showAmount($invest->totalAmount) }}
@endforeach