@extends('layouts.student') @section('title', 'Performances - MentoraMind') @section('content')
{{ __('student.performance.period') }}: @if($startDate && $endDate) {{ $startDate->locale(app()->getLocale())->translatedFormat('d F Y') }} - {{ $endDate->locale(app()->getLocale())->translatedFormat('d F Y') }} @else {{ __('student.performance.all_time') }} @endif
@if($startDate || $endDate || $subjectId) {{ __('student.performance.reset') }} @endif
{{ $performanceData->quizzesCompleted }}
{{ __('student.performance.stats.quizzes_completed') }}
{{ number_format($performanceData->successRate, 1) }}%
{{ __('student.performance.stats.success_rate') }}
{{ $performanceData->subjectsStudied }}
{{ __('student.performance.stats.subjects_studied') }}
{{ __('student.performance.performance_by_subject') }}
@forelse($performanceData->subjectPerformances as $index => $subjectPerformance) @php $progressBarClasses = ['', 'bg-warning', 'bg-info', 'bg-success', 'bg-danger', 'bg-secondary']; $progressBarClass = $progressBarClasses[$loop->index % count($progressBarClasses)]; @endphp
@if($subjectPerformance->subjectIcon) @else @endif {{ $subjectPerformance->subjectName }} ({{ $subjectPerformance->quizCount }} {{ $subjectPerformance->quizCount > 1 ? __('student.performance.quizzes') : __('student.performance.quiz') }}) {{ number_format($subjectPerformance->averageScore, 1) }}%
@empty

{{ __('student.performance.no_data') }}

{{ __('student.performance.no_data_description') }}

@endforelse
@endsection @push('scripts') @endpush