Edit Topic: {{ $topic->title }}
{{ __('Back')}}
{!! Form::model($topic, ['method' => 'PATCH', 'action' => ['TopicController@update', $topic->id]]) !!}
{!! Form::label('title', 'Topic Title') !!}
*
{!! Form::text('title', null, ['class' => 'form-control', 'placeholder' => 'Please Enter Quiz Title', 'required' => 'required']) !!}
{{ $errors->first('title') }}
{!! Form::label('per_q_mark', 'Per Question Mark') !!}
*
{!! Form::number('per_q_mark', null, ['class' => 'form-control', 'placeholder' => 'Please Enter Per Question Mark', 'required' => 'required']) !!}
{{ $errors->first('per_q_mark') }}
{!! Form::label('timer', 'Quiz Time (in minutes)') !!}
{!! Form::number('timer', null, ['class' => 'form-control', 'placeholder' => 'Please Enter Quiz Total Time (In Minutes)']) !!}
{{ $errors->first('timer') }}
Enable Show Answer:
show_ans ==1 ? "checked" : "" }} type="checkbox" class="toggle-input" name="show_ans" id="toggle{{ $topic->id }}">
Quiz Price:
amount !=NULL ? "checked" : ""}} type="checkbox" class="toggle-input " name="pricechk" id="toggle2{{ $topic->id }}">
{!! Form::label('description', 'Description') !!}
{!! Form::textarea('description', null, ['class' => 'form-control', 'placeholder' => 'Please Enter Quiz Description']) !!}
{{ $errors->first('description') }}
{!! Form::submit("Update", ['class' => 'btn btn-wave']) !!}
{!! Form::close() !!}