@extends('admin.layouts.master') @section('headerFiles') Tabcfast | Edit Course @endsection @section('content')
@include("admin/includes/front_alerts")
Edit Course
{!!Form::open([ 'url' => 'admin/courses/'. $record['course_id'], 'files'=>true,'method' => 'PUT']) !!}
@foreach(config('app.lang_options')??['en'] as $index=>$lang)
{!! Form::label('name','Name of Course: ') !!} @if($lang!='en') {{ Form::text('lang['.$lang.'][content][name]', old('lang['.$lang.'][content][name]',$record->lang_translations->where('lang',$lang)->first()->content['name']??'') ,['class' => 'form-control','id'=>'name']) }} @else {!! Form::text('name', old('name',$record['name']),['class' => 'form-control','placeholder' => 'Enter Name']) !!} @endif
{!! Form::label('name','Course Description(Slide 1): ') !!} @if($lang!='en') {{ Form::textarea('lang['.$lang.'][content][description]', old('lang['.$lang.'][content][description]',$record->lang_translations->where('lang',$lang)->first()->content['description']??'') ,['class' => 'form-control ck_description','id'=>'description']) }} @else {{ Form::textarea('description', $record['description'], ['class' => 'form-control ck_description','id'=>'description','placeholder' => 'Enter Description', 'rows' => '10','cols' => '18']) }} @endif
{!! Form::label('name','Course Description(Slide 2): ') !!} @if($lang!='en') {{ Form::textarea('lang['.$lang.'][content][description1]', old('lang['.$lang.'][content][description1]',$record->lang_translations->where('lang',$lang)->first()->content['description1']??'') ,['class' => 'form-control ck_description','id'=>'description1']) }} @else {{ Form::textarea('description1', $record['description1'], ['class' => 'form-control ck_description','id'=>'description1','placeholder' => 'Enter Description', 'rows' => '10','cols' => '18']) }} @endif
 
Select file Change @if(!empty($video['video_id'])) Remove @endif
{!! Form::number('price', number_format(old('price',$record['price']),2),['class' => 'form-control','placeholder' => 'Enter Course Price','type'=>'number','min'=>'0.01','step'=>'0.01']) !!}
{!! Form::radio('status' ,'1' ,(old('status',$record['status']) == '1' ? true : null),['class' => 'md-radiobtn','id' => 'active']) !!}
{!! Form::radio('status','0',(old('status',$record['status']) == '0' ? true : null), ['class' => 'md-radiobtn','id'=>'deactive']) !!}
{{ Form::radio('timer' ,'1' ,(old('timer',$record['timer']) == '1' ? true : null),['class' => 'md-radiobtn','id' => 'on']) }}
{{ Form::radio('timer','0',(old('timer',$record['timer']) == '0' ? true : null), ['class' => 'md-radiobtn','id'=>'off']) }}
@endforeach
{{ Form::submit('Update' ,['class' => 'btn btn-primary pull-right']) }} {{ Form::button('Cancel' ,['class' => 'btn btn-danger pull-right','onclick' => 'location.href ="'.url("admin/courses").'"']) }}
{!! Form::close() !!}
Chapters
{!! Form::open([ 'url' => 'admin/chapters', 'id' => 'frm_chapters' ]) !!}
  Name Created At Added By Modified By Status Actions
{{ Form::close() }}
Slides
{!! Form::open([ 'url' => 'admin/chapters', 'id' => 'frm_chapters' ]) !!}
  Slide Order Slide ID Chapter Name Slide Title Actions
{{ Form::close() }}
Assessment
{!! Form::open([ 'url' => 'admin/chapters/assessment', 'id' => 'ass_chapters' ]) !!}
Course Name Chapter Name Question Type Created At Added By Modified By Status Actions
{{ Form::close() }}