@extends('layouts.app', ['header' => true, 'header_image' => false, 'close_button' => false]) @section('back_button') @endsection @section('content') {{-- show header --}} {{-- @include('include.leaderboard.event-header', ['collection' => getLiveChallenge(), 'score' => false]) --}} @php $totalScore = 0; @endphp @php $scores = \App\Models\UserScore::all(); $userRank = 0; $overAllRank = 0; // foreach ($user->joinedChallenges->whereNotNull('challenge_id')->where('status', '1') as $completedChallenge) { // $userRank += $scores // ->whereNotNull('total_score') // ->where('user_id', $user->id) // ->where('challenge_id', $completedChallenge->challenge_id) // ->first() // ? $scores // ->whereNotNull('total_score') // ->where('user_id', $user->id) // ->where('challenge_id', $completedChallenge->challenge_id) // ->first()->rank // : 0; // $overAllRank += $scores // ->whereNotNull('total_score') // ->where('challenge_id', $completedChallenge->challenge_id) // ->count(); // } $week = 1; @endphp
{{ strtoupper(getAddress($user->user_details)) }}
{{ $user->user_details->userCountry->iso_code ?? '' }}
--}} @endifOverall current ranking
out of
Click on the Challenge No. to view that weeks performance
Week {{ $week++ }}
Challenge No.
@if($completedChallenge !== null)Ranking
out of