

<!-- /.card-header -->
<div class="card-body">
    <form id="validation2" action="{{route('admin::update_faq_header',$faqshead['id'])}}" method="POST" enctype="multipart/form-data">
        @csrf

        <div class="row">
            <div class="col-sm-12">
                <div class="form-group">
                    <label>Title</label>
                    <input type="text" name="title" class="validate[required] form-control" placeholder="Enter ..." value="{{$faqshead['title']}}">
                </div>
                @if ($errors->has('title'))
                    <span class="alert alert-danger">{{ $errors->first('title') }}</span>
                @endif


            </div>
        </div>
        <br>

        <div class="row">
            <div class="col-sm-12">

                <div class="form-group">
                    <label>Description</label><span style="color:red;">*</span>
                    <textarea name="description" class="validate[required] form-control"  placeholder="Enter ...">{{$faqshead['description']}}</textarea>
                </div>
                @if ($errors->has('description'))
                    <span class="alert alert-danger">{{ $errors->first('description') }}</span>
                @endif
            </div>
        </div>

        <!-- input states -->

        <div class="row">

            <div class="col-md-12">
                <div class="form-group" style="text-align:center">
                    <input type="submit" value="Submit" class="btn btn-primary">
                </div>
            </div>
        </div>
    </form>
</div>

<!-- /.card-body -->

<script type="text/javascript">
    jQuery("#validation2").validationEngine({promptPosition: 'inline'});
    $('.select2').select2();
</script>

