@include('livewire.revision.partials.setup-header', [ 'title' => 'Quick Start', 'description' => 'Pick a direction, add a topic if needed, then start.', 'icon' => 'fa-language', 'iconClasses' => 'bg-emerald-50 text-emerald-700 ring-1 ring-emerald-100', ])
Topic: {{ $topic !== '' ? $topic : 'All topics' }} Subtopic: {{ $subtopic !== '' ? $subtopic : 'All subtopics' }} Direction: {{ $direction === 'en_to_es' ? 'English -> Spanish' : 'Spanish -> English' }}
Start Spanish Session Customize
@teleport('body')
Customize Spanish Only change these if you want a more specific round.
@foreach ($topics as $itemTopic) @endforeach
@foreach ($subtopics as $itemSubtopic) @endforeach
Done
@endteleport @if ($setupError) {{ $setupError }} @endif @if ($showModal) @teleport('body')
@include('livewire.revision.partials.session-stat-chip', ['icon' => 'fa-solid fa-layer-group', 'iconClasses' => 'text-emerald-500', 'label' => 'Card', 'value' => min($currentIndex + 1, max(count($queueIds), 1)).'/'.count($queueIds)]) @include('livewire.revision.partials.session-stat-chip', ['icon' => 'fa-solid fa-clock-rotate-left', 'iconClasses' => 'text-cyan-500', 'label' => 'Due', 'value' => $dueCount]) @include('livewire.revision.partials.session-stat-chip', ['icon' => 'fa-solid fa-bullseye', 'iconClasses' => 'text-teal-500', 'label' => 'Accuracy', 'value' => (($stats['answered'] ?? 0) > 0 ? (int) round((($stats['correct'] ?? 0) / max(1, ($stats['answered'] ?? 0))) * 100) : 0).'%']) @include('livewire.revision.partials.session-stat-chip', ['icon' => 'fa-solid fa-headphones', 'iconClasses' => 'text-emerald-500', 'label' => 'Mode', 'value' => $pronunciationMode ? 'Listen' : 'Standard'])
@include('livewire.revision.partials.session-progress-bar', [ 'current' => min($currentIndex, count($queueIds)), 'total' => count($queueIds), 'fillClass' => 'bg-gradient-to-r from-cyan-500 to-emerald-500 transition-all', ])
Spanish Challenge Quick rounds. Instant feedback. Keep the streak alive. {{ $direction === 'en_to_es' ? 'English -> Spanish' : 'Spanish -> English' }} @if ($topic !== '') · {{ $topic }} @endif @if ($subtopic !== '') · {{ $subtopic }} @endif
@if ($completed)
Great job Session Complete
Answered {{ $stats['answered'] ?? 0 }} Correct {{ $stats['correct'] ?? 0 }} Incorrect {{ $stats['incorrect'] ?? 0 }} Skipped {{ $stats['skipped'] ?? 0 }}
@elseif (! $card)
No vocab card available for this session.
@else

{{ $card->topic }}{{ $card->subtopic ? ' · '.$card->subtopic : '' }}

{{ $direction === 'en_to_es' ? 'Translate to Spanish' : 'Translate to English' }}
@if ($direction === 'en_to_es')

{{ $this->displayText($card->english) }}

@else

{{ $this->displayText(($card->article ? $card->article.' ' : '').$card->spanish) }}

@endif
@if ($pronunciationMode)
@if ($direction === 'en_to_es') Listen (Question) Listen (Spanish) @else Listen @endif
@endif @endif
@if ($completed)

Next step

Keep going with another vocab round, or close this session here.

@if (! $allowRepeats && ! $didRetryMissed && count($missedIds) > 0) Retry Missed ({{ count($missedIds) }}) @endif Close Session Another Round
@elseif ($result)

{{ $result['is_correct'] ? 'Correct' : 'Try again' }}

{{ $this->displayText($result['feedback']) }}

Your answer

{{ $this->displayText($result['submitted']) !== '' ? $this->displayText($result['submitted']) : 'No answer entered' }}

Expected

{{ $this->displayText($result['expected']) }}

Next Card
@elseif ($card)

Your answer

Type your translation or leave it blank and check when ready.

Check Answer
@else

Check an answer to see feedback here.

@endif
@if ($pronunciationMode) @endif
@endteleport @endif
@push('scripts') @endpush