@extends('admin/layouts.master')
@section('title', 'Edit Faq - Admin')
@section('body')

@if ($errors->any())
  <div class="alert alert-danger">
      <ul>
          @foreach ($errors->all() as $error)
            <li>{{ $error }}</li>
          @endforeach
      </ul>
  </div>
@endif
<section class="content">
  <div class="row">
    <!-- left column -->
    <div class="col-md-12">
      <div class="box box-primary">
        <div class="box-header with-border">
          <h3 class="box-title"> {{ __('adminstaticword.Edit') }} {{ __('adminstaticword.FAQ') }}</h3>
        </div>
        <div class="box-body">
            <div class="form-group">              
          <form id="demo-form2" method="post" action="{{url('faq/'.$find->id)}}" data-parsley-validate class="form-horizontal form-label-left"  enctype="multipart/form-data">
              {{ csrf_field() }}
              {{method_field('PATCH')}}

              <label for="exampleInputName">{{ __('adminstaticword.Title') }}:<sup class="redstar">*</sup></label>
              <input type="text" class="form-control" name="title" id="exampleInputTitle"value="{{$find->title}}">
            </div>
            <div class="form-group">
              <label for="exampleInputDetails">{{ __('adminstaticword.Detail') }}:<sup class="redstar">*</sup></label>
              <textarea id="detail" class="form-control" name="details"> {{$find->details}}</textarea>
            </div>
            <div class="form-group">
            <label for="exampleInputTit1e">{{ __('adminstaticword.Status') }}:</label>
            <li class="tg-list-item">              
                <input class="tgl tgl-skewed" id="status" type="checkbox" name="status" {{ $find->status == '1' ? 'checked' : '' }} >
                <label class="tgl-btn" data-tg-off="Disable" data-tg-on="Enable" for="status"></label>
            </li>
            <input type="hidden"  name="free" value="0" for="status" id="status">
            <br>
            <div class="box-footer">
            <button type="submit" class="btn btn-lg col-md-3 btn-primary">{{ __('adminstaticword.Save') }}</button>
            </div>
      </form>
      
      </div>
      <!-- /.box -->
      </div>
      <!-- /.box -->
    </div>
    <!--/.col (right) -->
  </div>
  <!-- /.row -->
</section> 
@endsection

