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

Simple Line Chart

{{-- column chart --}}
{{--

Column Chart

--}}
{{-- column chart --}}

Handicap Score

@php if (!empty($all_problems) && $all_problems->where('status','!=','pending')->count() > 0) { $Accuracy = number_format(($all_problems->where('status', 'correct')->count() * 100) / $all_problems->where('status','!=','pending')->count(),2); } else { $Accuracy = 0; } @endphp @php $level = $all_handicap ->where('bottom_range', '<=', $Accuracy) ->where('top_range', '>', $Accuracy) ->first(); @endphp @if ($level) {{ $level->title }} @else Not Available @endif

Accuracy

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

Answers

{{ $all_problems->count() }}
{{-- handicap level --}}

Handicap levels

{{--
--}}
{{-- --}} @foreach ($all_handicap as $item) @php $rangeStart = $item->bottom_range; $rangeEnd = $item->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
Level Accuracy User# 30d$ 30d
{{ $item->title }} {{ $item->bottom_range . '%' }} - {{ $item->top_range . '%' }} {{ count($filtered_events) }} {{ $item->monthly_income }}${{$item->monthly_income / 100 * 10}}
Level Accuracy User $ 30d
{{-- handicap level --}}

All Question Answer Count

{{--
--}}
{{-- --}} {{-- --}} @foreach ($mcq_anwser_count as $mcq_anwser_item) {{-- @foreach ($item->problemResult as $date) --}} {{-- --}} @endforeach {{-- @endforeach --}} {{-- --}} {{-- --}}
Creaded Date Title #Votes A#1 A#2A#3 A#4 A#5 A#6 A#7 A#8Status %Complete
{{$mcq_anwser_item->created_at}} {{ $mcq_anwser_item->title }}
{{ $mcq_anwser_item->problemResult->count() }} {{$mcq_anwser_item->problemResult->where('answer_number',1)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',2)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',3)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',4)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',5)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',6)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',7)->count()}} {{$mcq_anwser_item->problemResult->where('answer_number',8)->count()}} {{-- @if($mcq_anwser_item->problemResult->count() >= $mcq_anwser_item->max_total || $mcq_anwser_item->end_date <= Carbon::now() || $mcq_anwser_item->is_active=='0') Closed @else Opened @endif --}} @if($mcq_anwser_item->is_active=='0' || $mcq_anwser_item->end_date <= Carbon::now()) Closed @else Opened @endif {{number_format($mcq_anwser_item->problemResult->count() * 100/$mcq_anwser_item->max_total).'%'}}
Creaded Date Title #Votes A#1 A#2A#3 A#4 A#5 A#6 A#7 A#8Status %Complete
{{-- Donation History --}}

History

{{--
--}}
@foreach ($all_problems as $item) {{-- @foreach ($item->problemResult as $date) --}} @if ($item->status == 'correct') @else @endif @endforeach {{-- @endforeach --}}
Date Title Status
{{ $item->created_at->format('Y-m-d') }}
@if (!empty($item->mcqs)) {{ $item->mcqs->title }} @endif {{ $item->status }}{{ $item->status }}Details
Date Title Status
{{-- Donation History --}}
@endsection @push('script') @endpush