@extends('backend.layouts.app') @section('content') {!! displayAlert() !!}

{{translate('Hello,')}} {{auth()->user()->first_name . auth()->user()->last_name}}

{{translate("Here's what's happening with your Quiz today.")}}

{{--
--}}
{{--

{{translate('Total Earnings')}}

+16.24 %
--}}

{{translate('Total Users')}}

{{translate('Quiz Completed')}}

{{translate('Quiz Running')}}

{{translate('Quiz Upcoming')}}

{{translate('Left Easy Questions')}}

{{translate('Left Medium Questions')}}

{{translate('Left Hard Questions')}}

{{translate('Left Tournament Questions')}}

{{translate('Left Easy Tournament Questions')}}

{{translate('Left Medium Tournament Questions')}}

{{translate('Left Hard Tournament Questions')}}

@if(isset($users_list)) @foreach ($users_list as $user) @endforeach @endif
@if (empty($user->image)) @else Profile @endif
{{ $user->points }} {{translate('QP')}}

{{ $user->life }}

{{translate('Lifes')}}
${{ $user->wallet_amount }}
Showing {{ $users_list->perPage() > $users_list->total() ? $users_list->total() : $users_list->perPage() }} of {{ $users_list->total() }} {{translate('Results')}}
{{ $users_list->appends(request()->input())->links() }}

Users by Locations

{{--
--}}
@if (count($users) >0) @foreach ($users->unique('country') as $user) @php $usersFromCountry = $users->where('country', $user->country)->count(); $totalUsers = $users->count(); $percentageCountry = ($usersFromCountry / $totalUsers) * 100; @endphp

{{ $user->country }} {{$percentageCountry}}%

@endforeach @else

Canada 75%

@endif
@endsection @section('script') @endsection