Current File : //home/tradevaly/demo.tradevaly.com.bd/resources/views/backend/faqs/edit.blade.php
@extends('layouts.backend')

    @section('content')  
<!-- Container Fluid-->
            <div class="row">
                <div class="col-lg-12">
                  <!-- Form Basic -->
                  <div class="card mb-4">
                    <div class="card-header card-header-modify py-3 d-flex flex-row align-items-center justify-content-between">
                      <h6 class="m-0 font-weight-bold text-heading-bar">Edit FAQ</h6>
                        <a href="{{route('client-reviews.index')}}" class="btn btn-default-index  btn-sm text-right "><i class="fas fa-arrow-alt-circle-left"></i> Back</a>
                    </div>
                    <div class="card-body">
                        
                        {!! Form::model($faq, ['method' => 'PATCH','route' => ['faqs.update', $faq->id]]) !!}

                            
                            <div class="row">

                                
                              
                                <div class="form-group col-sm-12">
                                  <label for="exampleInputEmail1">Question</label>
                                    <div>
                                        {!! Form::text('question', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('question')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('question') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>


                                <div class="form-group col-sm-12">
                                  <label for="exampleInputEmail1">Answer</label>
                                    <div>
                                        {!! Form::textarea('answer', null, array('placeholder' => '','class' => 'form-control')) !!}
                                        @error('answer')
                                            <span class="invalid-feedback" role="alert">
                                                <strong>{{ $errors->first('answer') }}</strong>
                                            </span>
                                        @enderror
                                    </div>
                                </div>
                                

                                                                                   
                            </div>                            
                          
                        <button type="submit" class="btn btn-success">Update</button>
                        {!! Form::close() !!}
                    </div>
                  </div>
                </div>
            </div>
          <!--Row-->


    @endsection