@extends('components.dashboard.layouts.master') @section('title',__($titleKey)) @section('styles') @endsection @section('content')
{{ __($titleKey) }}
  • {{__('Title')}}: {{ $item->title }}
  • {{__('Number Of Questions')}}: {{ $item->number_of_questions }}
  • @if(isset($item->start_time))
  • {{__('Start Date')}}: {{ $item?->start_time ?? ''}}
  • @endif @if(isset($item->end_time))
  • {{__('End Date')}}: {{ $item?->end_time ?? ''}}
  • @endif
  • {{__('Duration')}}: {{ $item->duration }} دقيقة
  • @if(isset($item->creation_type))
  • {{__('Questions Order')}}: {{__($item->creation_type)}}
  • @endif @if(!empty($item->description))
  • {{__('Description')}} {{ $item->description }}
  • @endif @if(isset($item->success_percentage))
  • {{__('Success Percentage')}}: {{__($item->success_percentage)}} %
  • @endif @if(isset($item->is_question_shuffle))
  • {{ __('Shuffle Questions') }}: {{ $item->is_question_shuffle ? __('Yes') : __('No') }}
  • @endif @if(isset($item->see_result))
  • {{ __('See Result') }}: {{ $item->see_result ? __('Yes') : __('No') }}
  • @endif @if(isset($item->with_rules))
  • {{ __('With Rules') }}: {{ $item->with_rules ? __('Yes') : __('No') }}
  • @endif @if(isset($item->with_calculator))
  • {{ __('With Calculator') }}: {{ $item->with_calculator ? __('Yes') : __('No') }}
  • @endif
@php $type = $item instanceof \App\Models\Quiz ? 'quiz' : 'exam'; @endphp
{{ __('Success Statistics') }}
@php $hasBasicStats = isset($totalStudents) && isset($passedStudents) && isset($failedStudents); $colClass = $hasBasicStats ? 'col-md-4' : 'col-12'; @endphp
@if(isset($totalStudents))
{{ __('Total Students') }}

{{ $totalStudents }}

@endif @if(isset($passedStudents))
{{ __('Passed Students') }}

{{ $passedStudents }}

@endif @if(isset($failedStudents))
{{ __('Failed Students') }}

{{ $failedStudents }}

@endif {{-- بيانات أخرى مثل الدرجات --}} @php // هذه القيم لا تحتاج تغيير الكول، لأنها تظهر فقط لو البيانات موجودة $scoreColClass = 'col-md-4'; @endphp @if(isset($highestScore))
{{ __('Highest Score') }}

{{ number_format($highestScore, 2) }}%

@endif @if(isset($lowestScore))
{{ __('Lowest Score') }}

{{ number_format($lowestScore, 2) }}%

@endif @if(isset($averageScore))
{{ __('Average Score') }}

{{ number_format($averageScore, 2) }}%

@endif
{{--
--}} {{--
--}} {{-- {{ __('Questions') }}--}} {{--
--}} {{-- @php--}} {{-- $totalScore = $item->questions->sum('score');--}} {{-- @endphp--}} {{--
--}} {{--
--}} {{--
{{ __('Total Score') }}
--}} {{-- {{ $totalScore }}--}} {{--
--}} {{--
    --}} {{-- @foreach($item->questions as $question)--}} {{--
  1. --}} {{--
    --}} {{--
    --}} {{----}} {{-- {{ $loop->iteration }}--}} {{----}} {{--
    --}} {{-- @if($question->question_image)--}} {{-- --}} {{-- --}} {{-- @endif--}} {{--
    {{ $question->question_text }}
    --}} {{--
    --}} {{--
    --}} {{-- --}} {{-- {{ $question->score }} {{ __("Point") }}--}} {{----}} {{--
    --}} {{-- @if($question->question_type === \App\Enum\QuestionTypeEnum::MCQ)--}} {{--
      --}} {{-- @foreach($question->options as $option)--}} {{--
    • --}} {{-- --}} {{-- @if($option->photo)--}} {{-- Option Image--}} {{-- @else--}} {{-- {{ $option->answer }}--}} {{-- @endif--}} {{-- --}} {{-- @if($option->is_correct)--}} {{-- {{ __('Correct') }}--}} {{-- @endif--}} {{--
    • --}} {{-- @endforeach--}} {{--
    --}} {{-- @elseif($question->question_type === \App\Enum\QuestionTypeEnum::GridIn)--}} {{--
    --}} {{-- {{ __('Answer') }}: {{ $question->answer }}--}} {{--
    --}} {{-- @endif--}} {{--
  2. --}} {{-- @endforeach--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}
@endsection @section('script') @endsection