Study @php $modes = [ 'practice' => [ 'label' => 'Practice Questions', 'icon' => 'fa-file-pen', 'description' => 'Exam-style questions with self-check review.', 'gradient' => 'from-brand-600 to-brand-700', 'tile' => 'bg-brand-50 text-brand-700', 'active' => 'border-brand-300 bg-brand-50/90 ring-2 ring-brand-500 shadow-md', 'inactive' => 'border-neutral-200 bg-white hover:border-brand-200 hover:bg-brand-50/40', ], 'flashcards' => [ 'label' => 'Flashcards', 'icon' => 'fa-layer-group', 'description' => 'Fast recall rounds for key knowledge.', 'gradient' => 'from-amber-500 to-orange-500', 'tile' => 'bg-amber-50 text-amber-700', 'active' => 'border-amber-300 bg-amber-50/90 ring-2 ring-amber-500 shadow-md', 'inactive' => 'border-neutral-200 bg-white hover:border-amber-200 hover:bg-amber-50/40', ], 'spanish' => [ 'label' => 'Spanish Vocab', 'icon' => 'fa-language', 'description' => 'Translate, listen, and revisit weak words.', 'gradient' => 'from-emerald-500 to-teal-600', 'tile' => 'bg-emerald-50 text-emerald-700', 'active' => 'border-emerald-300 bg-emerald-50/90 ring-2 ring-emerald-500 shadow-md', 'inactive' => 'border-neutral-200 bg-white hover:border-emerald-200 hover:bg-emerald-50/40', ], ]; $modeCards = collect($modes)->only($availableModes)->all(); $activeMode = $modes[$mode]; @endphp @php $tones = [ 'practice' => 'bg-[linear-gradient(135deg,_rgba(255,255,255,0.98),_rgba(239,246,255,0.92)_48%,_rgba(236,253,245,0.88))]', 'flashcards' => 'bg-[linear-gradient(135deg,_rgba(255,255,255,0.98),_rgba(255,247,237,0.92)_45%,_rgba(254,249,195,0.78))]', 'spanish' => 'bg-[linear-gradient(135deg,_rgba(255,255,255,0.98),_rgba(236,253,245,0.92)_45%,_rgba(209,250,229,0.8))]', ]; @endphp

Study

{{ $activeMode['label'] }} {{ $activeMode['description'] }}
@if ($mode === 'spanish') Vocab Bank @endif
@foreach ($modeCards as $modeKey => $modeMeta) @php $modeRoute = route('revision.study.index', array_filter([ 'mode' => $modeKey, 'subject_id' => $modeKey === 'spanish' ? null : ($filters['subject_id'] ?? null), 'topic_id' => $modeKey === 'spanish' ? null : ($filters['topic_id'] ?? null), 'difficulty' => $modeKey === 'practice' ? ($filters['difficulty'] ?? null) : null, 'question_type' => $modeKey === 'practice' ? ($filters['question_type'] ?? null) : null, ])); @endphp $mode === $modeKey, $modeMeta['inactive'] => $mode !== $modeKey, ]) >
$mode !== $modeKey, 'bg-neutral-900 text-white shadow-sm' => $mode === $modeKey, ])>

{{ $modeMeta['label'] }}

@if ($mode === $modeKey) Selected @endif

{{ $modeMeta['description'] }}

@endforeach
@if ($mode === 'practice') @elseif ($mode === 'flashcards') @else @endif
@push('scripts') @endpush