{{-- ═══════════════════ MODAL FORM ═══════════════════ --}} @if($this->showForm)

{{ $this->editingId ? 'Edit Learning Path' : 'Add Learning Path' }}

{{-- Title --}}
@error('formTitle')

{{ $message }}

@enderror
{{-- Description --}}
@error('formDescription')

{{ $message }}

@enderror
{{-- Icon & Color --}}
{{-- Courses Count & Hours --}}
{{-- Badge Label & Link --}}
{{-- Sort Order + Active --}}
{{-- Buttons --}}
@endif {{-- ═══════════════ DELETE CONFIRMATION ═══════════════ --}} @if($this->confirmingDeleteId)

Delete Learning Path?

This action cannot be undone.

@endif {{-- ═══════════════ PATHS LIST ═══════════════ --}} @php $paths = $this->paths; @endphp

Learning Paths ({{ $paths->count() }} path{{ $paths->count() !== 1 ? 's' : '' }})

These cards appear on the homepage Learning Paths section.

@if($paths->isEmpty())

No learning paths yet. The homepage will use defaults.

@else
@foreach($paths as $index => $path)
{{-- Color Bar --}}
@php $iconEmojis = [ 'Rocket' => '🚀', 'Brain' => '🧠', 'Target' => '🎯', 'BookOpen' => '📖', 'Code' => '💻', 'BarChart3' => '📊', 'Briefcase' => '💼', 'Globe' => '🌍', 'Lightbulb' => '💡', 'Shield' => '🛡️', 'Zap' => '⚡', 'Award' => '🏆', 'Users' => '👥', 'Mic' => '🎙️', 'Star' => '⭐', 'Heart' => '❤️', 'GraduationCap' => '🎓', ]; @endphp {{ $iconEmojis[$path->icon] ?? '📖' }}

{{ $path->title }}

@if($path->badge_label) {{ $path->badge_label }} @endif
{{ $path->is_active ? 'Active' : 'Paused' }}
@if($path->description)

{{ $path->description }}

@endif
@if($path->courses_count) 📚 {{ $path->courses_count }} courses @endif @if($path->hours) ⏱ {{ $path->hours }}h @endif @if($path->link) 🔗 {{ $path->link }} @endif
{{-- Actions --}}
@endforeach
@endif