@extends('layouts.dashboard') @section('title', __('Edit Learning Path')) @section('page_title', __('Edit Learning Path')) @section('content')
{{ __('Edit Learning Path') }}
{{ __('Back') }}
{{-- Path details --}}
{{ __('Details') }}
@csrf @method('PUT')
@error('title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@if($path->thumbnail)
@endif @error('thumbnail')
{{ $message }}
@enderror
{{ __('A private path is hidden from the public catalogue; the company assigns it through seat licences.') }}
status) ? 'checked' : '' }}>
{{-- Courses management --}}
{{ __('Courses') }}
{{-- Add course --}}
@csrf
@error('course_id')
{{ $message }}
@enderror @if($courses->isEmpty())
{{ __('All available courses are already in this path.') }}
@endif
{{-- Ordered list --}} @if($path->pathCourses->count())
    @foreach($path->pathCourses as $pathCourse)
  1. {{ $pathCourse->course->title ?? __('[Deleted course]') }}
    @csrf @method('DELETE')
  2. @endforeach
@else
{{ __('No courses added yet.') }}
@endif
@endsection