@extends('layouts.admin', [ 'page_header' => 'Quiz', 'dash' => '', 'quiz' => 'active', 'users' => '', 'questions' => '', 'top_re' => '', 'all_re' => '', 'sett' => '' ]) @section('content')

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') }}
show_ans ==1 ? "checked" : "" }} type="checkbox" class="toggle-input" name="show_ans" id="toggle{{ $topic->id }}"> amount !=NULL ? "checked" : ""}} type="checkbox" class="toggle-input " name="pricechk" id="toggle2{{ $topic->id }}">
{{ $errors->first('amount') }}
{!! 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() !!}
@endsection @section('scripts') @endsection