@extends('admin.layout.master') @section('dashboard','active') @section('contant') @php use Carbon\Carbon; @endphp

Accuracy Score (All Users)

@csrf
@php if(!empty($all_problems) && $all_problems->where('status','!=','pending')->where('is_training','=',0)->count()>0) { $Accuracy = number_format($all_problems->where('status','correct')->count() * 100/$all_problems->where('status','!=','pending')->where('is_training','=',0)->count(),2); }else{ $Accuracy=0; } @endphp {{$Accuracy.'%'}}

Average Scores

{{$mcqsAvg}}

Total Scores

{{$mcqsSum}}
{{--

Answers

{{ $all_problems->count() }}
--}}
{{-- User --}}

Users

{{$users->count()}}
@if(!empty($users)) @foreach($users as $user_val) {{-- --}} @endforeach @endif
Tittle #Votes Accuracy Level Edit
{{$user_val->name}} {{$user_val->problemResult->where('status','!=','pending')->where('is_training','=',0)->count()}} @if($user_val->problemResult->where('status','!=','pending')->where('is_training','=',0)->count() > 0) @php $accuracy= number_format($user_val->problemResult->where('status','correct')->where('is_training','=',0)->count() * 100/$user_val->problemResult->where('status','!=','pending')->where('is_training','=',0)->count(),2) @endphp {{$accuracy.'%'}} @else @php $accuracy=0; @endphp 0% @endif {{-- {{$accuracy}} --}} @php $level=$handicapLevel->where('bottom_range','<=',$accuracy)->where('top_range','>',$accuracy)->first(); @endphp @if($level) {{$level->title}} @else Not Available @endif
Tittle #Votes Accuracy Level Edit
{{-- User --}} {{-- Open Problems --}}

Open Problems

{{$open_problems->count()}}
{{-- --}} @if(!empty($open_problems)) @foreach($open_problems as $open) {{-- --}} {{-- --}} @endforeach @endif {{-- --}}
Created Date Tittle #Votes A#1 A#2A#3 A#4 A#5 A#6 A#7 A#8Correct Answer Status %Complete Score Edit
{{$open->created_at}} {{$open->title}} {{$open->problemResult->where('is_training',0)->count()}} {{$open->problemResult->where('answer_number',1)->where('is_training','=',0)->count()}} {{$open->problemResult->where('answer_number',2)->where('is_training','=',0)->count()}} {{number_format($open->problemResult->where('answer_number',1)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',2)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',3)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',4)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',5)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',6)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',7)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{number_format($open->problemResult->where('answer_number',8)->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{$open->correct_answer}} {{-- @if($open->problemResult->where('is_training','=',0)->count() >= $open->max_total || $open->end_date <= Carbon::now() || $open->is_active=='0') Closed @else Opened @endif --}} @if($open->is_active=='0' || $open->end_date <= Carbon::now()) Closed @else Opened @endif {{number_format($open->problemResult->where('is_training','=',0)->count() * 100/$open->max_total).'%'}} {{$open->score}}
Tittle #Votes A#1 A#2A#3 A#4 A#5 A#6 A#7 A#8Correct Answer Status %Complete Score Edit
{{-- Open Problems --}} {{-- handicap level --}}

Handicap levels

{{$handicapLevel->count()}}
@if(!empty($handicapLevel)) @foreach($handicapLevel as $key => $handicapLevel_value) @php $rangeStart = $handicapLevel_value->bottom_range; $rangeEnd = $handicapLevel_value->top_range; $filtered_events = array_filter($per_arr, function($var) use ($rangeStart, $rangeEnd) { $evtime = $var['percentage']; return $evtime <= $rangeEnd && $evtime >= $rangeStart; }); // dd($filtered_events); @endphp @endforeach @endif
Score %Range Weight (handicap) Users Edit
{{$handicapLevel_value->title}} {{$handicapLevel_value->bottom_range."% - ".$handicapLevel_value->top_range."%"}} {{$handicapLevel_value->weight}} {{count($filtered_events)}}
Score %Range Weight (handicap) Users Edit

Simple Pie Chart

    {{--
  • --}} {{--
  • --}}
  • {{--
  • --}}
{{-- handicap level --}} {{-- Donation History --}} {{--

Gift History

{{$gift->count()}}
@if(!empty($gift)) @foreach($gift as $key => $gift_value) @endforeach @endif
Date Organization Amount Status
{{$gift_value->date}} {{$gift_value->organization_name}} {{$gift_value->amount}} {{$gift_value->status}}
Date Organization Amount Status
--}} {{-- Donation History --}}
@endsection @push('script') {{-- --}} @endpush