@extends('layouts.app') @section('content')

@lang('global.faq-questions.title')

{!! Form::open(['method' => 'POST', 'route' => ['admin.faq_questions.store']]) !!}
@lang('global.app_create')
{!! Form::label('category_id', trans('global.faq-questions.fields.category').'*', ['class' => 'control-label']) !!} {!! Form::select('category_id', $categories, old('category_id'), ['class' => 'form-control select2', 'required' => '']) !!}

@if($errors->has('category_id'))

{{ $errors->first('category_id') }}

@endif
{!! Form::label('question_text', trans('global.faq-questions.fields.question-text').'*', ['class' => 'control-label']) !!} {!! Form::textarea('question_text', old('question_text'), ['class' => 'form-control ', 'placeholder' => '', 'required' => '']) !!}

@if($errors->has('question_text'))

{{ $errors->first('question_text') }}

@endif
{!! Form::label('answer_text', trans('global.faq-questions.fields.answer-text').'*', ['class' => 'control-label']) !!} {!! Form::textarea('answer_text', old('answer_text'), ['class' => 'form-control ', 'placeholder' => '', 'required' => '']) !!}

@if($errors->has('answer_text'))

{{ $errors->first('answer_text') }}

@endif
{!! Form::submit(trans('global.app_save'), ['class' => 'btn btn-danger']) !!} {!! Form::close() !!} @stop