@include('revision.partials.page-intro', [
'eyebrow' => 'Browse',
'title' => 'Choose Your Next Study Area',
'description' => 'Pick a subject that is ready for the kind of study you want to do today.',
'tone' => 'brand',
])
@include('revision.partials.stat-card', ['label' => 'Subjects', 'value' => $overview['subjects'], 'icon' => 'fa-solid fa-book-open'])
@include('revision.partials.stat-card', ['label' => 'Questions', 'value' => number_format($overview['questions']), 'icon' => 'fa-solid fa-list-check'])
@include('revision.partials.stat-card', ['label' => 'Flashcards', 'value' => number_format($overview['flashcards']), 'icon' => 'fa-solid fa-layer-group'])
@include('revision.partials.stat-card', ['label' => 'Attempted', 'value' => number_format($overview['attempted']), 'icon' => 'fa-solid fa-pen'])
@include('revision.partials.stat-card', ['label' => 'Accuracy', 'value' => $overview['accuracy'] . '%', 'icon' => 'fa-solid fa-bullseye', 'valueClass' => $overview['accuracy'] >= 70 ? 'text-green-600' : ($overview['accuracy'] >= 50 ? 'text-amber-600' : 'text-red-600')])
@if ($weakTopics->isNotEmpty())
@include('revision.partials.section-heading', [
'title' => 'Topics To Revisit',
'subtitle' => 'Lower-accuracy areas worth another pass.',
])
@foreach ($weakTopics as $row)
@php
$topicAccuracy = $row->questions_attempted > 0 ? (int) round(($row->questions_correct / $row->questions_attempted) * 100) : 0;
@endphp
@include('revision.partials.progress-meter', [
'name' => $row->topic?->name ?: 'Topic',
'value' => $topicAccuracy,
])
@endforeach
@endif
@include('revision.partials.section-heading', [
'title' => 'Browse Subjects',
'subtitle' => 'Search by name to get to the right subject quickly.',
])
@forelse ($subjects as $subject)
{{ $subject->icon ?: '📘' }}
{{ $subject->topics_count }} topics
{{ $subject->name }}
{{ $subject->description ?: 'Master key concepts and exam skills.' }}
{{ $subject->study_label }}
{{ $subject->study_summary }}
Open subject →
@empty
@include('revision.partials.empty-state', [
'title' => 'No subjects found',
'message' => 'Try a different search for "' . $search . '".',
'icon' => 'fa-solid fa-book-open',
])
@endforelse