@php $config = $settings->learning_path_config ?? []; $hasActiveEnrollments = $course->enrollments()->where('status', 'active')->exists(); @endphp

{{ $meta['title'] }}

{{ $meta['description'] }}

@csrf @method('PUT')

Enable learning path

Enforce sequential unlock rules for lessons and sections

@if($hasActiveEnrollments)

This course has active enrollments. Confirm before disabling the learning path.

@endif
@foreach([ 'sequential' => ['Sequential path', 'Learners must follow the defined order', true], 'lesson_lock' => ['Lesson lock', 'Lock lessons until prerequisites are met', true], 'section_lock' => ['Section lock', 'Lock sections until previous sections are complete', false], 'unlock_after_completion' => ['Unlock after completion', 'Unlock next item after completing current', true], 'unlock_after_quiz' => ['Unlock after quiz', 'Require quiz pass to unlock next', false], 'unlock_after_assignment' => ['Unlock after assignment', 'Require assignment submission to unlock next', false], 'allow_optional' => ['Allow optional items', 'Optional lessons can be skipped', true], ] as $field => [$title, $help, $default])

{{ $title }}

{{ $help }}

@endforeach
@error('min_section_progress')

{{ $message }}

@enderror
Cancel