@extends('admin.layout') @section('content')

{{ trans('Add Question') }}

@php $getUserRoleData = userRoleData(); $knowledgeBase = explode(",",$getUserRoleData->knowledgeBase); @endphp
@if(session()->has('error'))

{{ trans('labels.WarningLabel') }}

{{ session()->get('error') }}
@endif @if(in_array("Add",$knowledgeBase )) {!! Form::open(array('url' =>'admin/add-new-knowledge', 'method'=>'post', 'class' => 'form-horizontal', 'id'=>'addnewuser', 'enctype'=>'multipart/form-data')) !!}
{!! Form::text('question', '', array('class'=>'form-control', 'id'=>'question', 'required'=>'required')) !!}
{!! Form::textarea('answer', '', array('class'=>'form-control answer', 'id'=>'answer', 'required'=>'required', 'rows'=>'4')) !!}
{!! Form::file('newImage', array('id'=>'newImage')) !!}
{!! Form::file('file', array('id'=>'file')) !!}
{!! Form::file('video', array('id'=>'video')) !!}
{!! Form::text('youtubelink', '', array('class'=>'form-control', 'id'=>'youtubelink')) !!} i.e A4GgHIojooo
{{ trans('labels.back') }}
{!! Form::close() !!} @else

Please contact with SuperAdmin

@endif
@endsection