@csrf
@if ($errors->has('title')) {{ $errors->first('title') }} @endif

Teachers attending this course

    @if($teachers) @foreach($teachers as $teacher) @if ($teachers_attach && in_array($teacher->id, $teachers_attach))
  • @endif @endforeach @endif

Students attending this course

    @if($students) @foreach($students as $student) @if ($students_attach && in_array($student->id, $students_attach))
  • @endif @endforeach @endif
@if($levels && count($levels) > 0)
    @foreach ($levels as $i => $level)
  • x
  • @endforeach
@else @endif
@push('scripts') @endpush