@extends('layouts.admin.master') @section('title', !empty($faq) ? 'Edit FAQ' : 'Add FAQ') @section('content') @include('layouts.admin.flash.alert')

Manage FAQ Here you can {{ !empty($faq) ? 'edit' : 'add' }} FAQ

{{ !empty($faq) ? 'Edit FAQ' : 'Add FAQ' }}

Back
@if(isset($faq)) {{ Form::model($faq, ['route' => ['data.faq.update', $faq->id], 'method' => 'patch', 'enctype' => 'multipart/form-data']) }} @else {{ Form::open(['route' => 'data.faq.store', 'enctype' => 'multipart/form-data']) }} @endif
{{ Form::text('heading', old('heading'), ['class' => 'form-control','placeholder' => 'Enter Question']) }} @if($errors->has('heading')) {{ $errors->first('heading') }} @endif
{{ Form::textarea('description', old('description'), ['class' => 'form-control ckeditor','placeholder' => 'Provide Answer', 'rows' => 5]) }} @if($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::close() }}
@stop