@extends ('backend.layouts.app') @section ('title', 'Risk Profiler | Edit Question') @section('after-styles') @endsection @section('page-header')

Risk Profiler Management Edit Question

@endsection @section('content') {{ Form::model($question, ['route' => ['admin.risk_profiler.question.update', $question], 'enctype' => "multipart/form-data", 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'PATCH', 'id' => 'edit-partner']) }}

Edit Question

@include('backend.risk_profiler.question.partials.question-header-buttons')
{{ Form::label('Title', 'Title', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('title', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => 'Enter title']) }}
{{ Form::label('Overview', 'Overview', ['class' => 'col-lg-2 control-label']) }}
{{ Form::textarea('overview', null, ['class' => 'form-control', 'id' => 'overview', 'required' => 'required', 'placeholder' => 'Enter overview']) }}
{{ Form::label('Select type', 'Select type', ['class' => 'col-lg-2 control-label']) }}
{{ Form::label('Max select', 'Max select', ['class' => 'col-lg-2 control-label']) }}
{{ Form::text('max_select', null, ['class' => 'form-control', 'required' => $question->type == 2 ? true : false, 'placeholder' => 'Enter max select']) }}
@if (count($answers) > 0)
{{ Form::label('Select answers', 'Select answers', ['class' => 'col-lg-2 control-label']) }}
@else No answers avaliable @endif
{{ Form::label('Active', 'Active', ['class' => 'col-lg-2 control-label']) }}
{{ link_to_route('admin.risk_profiler.question.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-xs']) }}
{{ Form::submit(trans('buttons.general.crud.update'), ['class' => 'btn btn-success btn-xs']) }}
{{ Form::close() }} @endsection @section('after-scripts') @endsection