<!-- Modal ADD SETTING -->
<div class="modal fade" id="md_add_setting" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" onchange="addsettingForm(event,this)">
  {{ Form::open(array('route' => 'setting.store', 'class' => 'cls_form','id'=>'form_add_setting')) }}
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Add Setting</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true"></span>
        </button>
      </div>
  <div class="modal-body ">
    <div class = "card">
      <div class ="card-body form-fieldset">
        <div class="row">

             
            <div class="col-sm-12">
              <label class="label-color"> Select Type : <i style = "color:red;">*</i></label>
              <small class="form-errors pull-right req" value="*">{{ $errors->first('type',":message") }}</small>

              <div class="input-group mb-3">
                <select name="type" class="form-control form-control-sm cls_required" onchange="showSettingType(event,this)">
                    
                    <option value="{{Crypt::encrypt(0)}}">Select Type</option>

                    @foreach (EF::getsettingsTypeList() as $rows)

                    <option value="{{$rows}}">{{$rows}}</option>

                    @endforeach
                   
                </select>
              </div>
            </div>


            <div class="col-sm-6">
                <label class="label-color"> Title : <i style = "color:red;">*</i></label>
              <small class="form-errors pull-right req" value="*">{{ $errors->first('title',":message") }}</small>

              <div class="input-group mb-3">
                {{Form::text('title', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Title' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
               </div>
            </div> 


            <div class="col-sm-6">
                <label class="label-color"> Value : <i style = "color:red;">*</i></label>
              <small class="form-errors pull-right req" value="*">{{ $errors->first('value',":message") }}</small>

              <div class="input-group mb-3">
               {{Form::text('value', '', ['class' => 'form-control form-control-sm cls_required', 'placeholder' => 'Value In Percentage[1 - 100]' , 'aria-label' => 'Default', 'aria-describedby' => 'inputGroup-sizing-default'])}}
               </div>
            </div> 


            <div class="col-sm-6 leave-section hid">
              <div class="checkbox">
                <label>
                 <input type="checkbox" name="carry_forward" value="0"> Carry forward
                </label>
              </div>
            </div> 
                   

         </div>

          </div>
        </div>
       
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="submit"  class="btn btn-primary cls_submit" content="add setting">Add Setting</button>
      </div>
    </div>
  </div>
  {{ Form::close() }}
</div>
<!-- END MODAL ADD SETTING -->