@extends('backend.layouts.app') @section('content')

{{ translate('User Leaderboard') }}

@if ($users->count() > 0) @foreach ($users as $index => $value) @php $user = \App\Models\User::where('id', $value->user_id)->first(); @endphp @endforeach @else @endif
{{ translate('#') }} {{ translate('Name') }} {{ translate('Email') }} {{ translate('Total Wins') }} {{ translate('Points') }} {{ translate('Life Use') }} {{ translate('Total Points') }} {{ translate('Wallet') }}
{{ $index + 1 }} {{ $value->name }} {{ $value->email_id }} {{ totalWonQuiz($value->user_id) }} {{ $value->total_points }} {{ $value->total_life_use }} {{ $user->points }} {{ $user->wallet_amount }}
{{ translate('No users found') }}
@endsection @section('script') @endsection