@inject('plans', 'Elearn\Services\Plans')
{!! Form::text('title', null, ['class' => 'input-text', 'placeholder' => trans('backend.ph.title'), 'required' => true]) !!}
{!! Form::textarea('description', null, ['class' => 'textarea', 'placeholder' => trans('backend.ph.description')]) !!}
{!! Form::textarea('especifications', null, ['class' => 'textarea', 'placeholder' => trans('backend.ph.especification')]) !!}
{!! Form::textarea('license', null, ['class' => 'textarea', 'placeholder' => trans('backend.ph.license')]) !!}
{!! Form::textarea('thanks', null, ['class' => 'textarea', 'placeholder' => trans('backend.ph.thanks')]) !!}
{!! Form::textarea('recommendations', null, ['class' => 'textarea', 'placeholder' => trans('backend.ph.recommendations')]) !!}
{!! Form::number('duration', null, ['class' => 'input-text', 'placeholder' => trans('backend.ph.duration'), 'required' => true]) !!}
@lang('backend.ph.evaluation_type'):
{!! Form::radio('evaluation_type', '1', true, ['class' => 'radio', 'id' => 'radio-1']) !!}
{!! Form::label('radio-1', trans('backend.ph.quantitative'), ['class' => 'form_text']) !!}
{!! Form::file('img', ['class' => 'upload_file', 'id' => 'uploader']) !!}
{!! Form::label('uploader', trans('backend.ph.course_img')) !!}
{!! Form::file('certificate_logo', ['class' => 'upload_file', 'id' => 'uploader1']) !!}
{!! Form::label('uploader1', trans('backend.ph.logo')) !!}
{!! Form::file('certificate_bg', ['class' => 'upload_file', 'id' => 'uploader2']) !!}
{!! Form::label('uploader2', trans('backend.ph.backbg')) !!}
{!! Form::number('total_real_questions', null, ['class' => 'input-text', 'placeholder' => trans('backend.ph.total_real_q'), 'required' => true]) !!}
{!! Form::number('total_concept_questions', null, ['class' => 'input-text', 'placeholder' => trans('backend.ph.total_concept_q'), 'required' => true]) !!}
{!! Form::number('assessments_limit', null, ['class' => 'input-text', 'placeholder' => trans('backend.ph.assessments_limit'), 'required' => true]) !!}
{!! Form::select('type', ['1' => trans('backend.selectors.classic_course')], null, ['class' => 'dropdown-select']) !!}
{!! Form::text('start_date', null, ['class' => 'input-text empty datepicker-with-min', 'id' => 'datepicker', 'placeholder' => ' '.trans('backend.ph.start_date'), 'required' => true]) !!}
{!! Form::text('final_date', null, ['class' => 'input-text empty datepicker-with-min-2', 'id' => 'datepicker2', 'placeholder' => ' '.trans('backend.ph.final_date'), 'required' => true]) !!}
@if($plans->get()->count())
@lang('backend.ph.select_plan'):
{!! Form::checkbox('select_all_plans', 'all-plans', null, ['class' => 'checkbox all-plans', 'id' => 'all-plans']) !!}
{!! Form::label('all-plans', trans('backend.titles.select_all_plans')) !!}
@foreach($plans->get() as $plan)
@if(isset($course) AND $course->planExists($plan->id))
{!! Form::checkbox('plans[]', $plan->id, null, ['checked' => true, 'class' => 'checkbox plan', 'id' => $plan->id]) !!}
@else
{!! Form::checkbox('plans[]', $plan->id, null, ['class' => 'checkbox plan', 'id' => $plan->id]) !!}
@endif
{!! Form::label($plan->id, $plan->title) !!}
@endforeach
@lang('backend.ph.select_correlative'):
{!! Form::checkbox('select_all', 'all', null, ['class' => 'checkbox all', 'id' => 'all']) !!}
{!! Form::label('all', trans('backend.titles.select_all')) !!}
@foreach($plans->get() as $plan)
{!! Form::checkbox('select_all_options_tab', 'all_options_tab', null, ['class' => 'checkbox all-options-tab', 'id' => 'tab-'.$plan->id]) !!}
{!! Form::label('tab-'.$plan->id, trans('backend.titles.select_all_courses')) !!}
@foreach($plan->courses as $correlativeCourse)
@if(isset($course))
@if($course->id != $correlativeCourse->id)
@if($course->isCorrelative($correlativeCourse->id))
{!! Form::checkbox('c_courses[]', $correlativeCourse->id, null, ['checked' => true, 'class' => 'checkbox tab-'.$plan->id, 'id' => 'c'.$correlativeCourse->id]) !!}
@else
{!! Form::checkbox('c_courses[]', $correlativeCourse->id, null, ['class' => 'checkbox tab-'.$plan->id, 'id' => 'c'.$correlativeCourse->id]) !!}
@endif
{!! Form::label('c'.$correlativeCourse->id, $correlativeCourse->title) !!}
@endif
@else
{!! Form::checkbox('c_courses[]', $correlativeCourse->id, null, ['class' => 'checkbox tab-'.$plan->id, 'id' => 'c'.$correlativeCourse->id]) !!}
{!! Form::label('c'.$correlativeCourse->id, $correlativeCourse->title) !!}
@endif
@endforeach
@endforeach
@endif