<div class="row mb-3">
  <div class="col-lg-3 col-md-4">
    <?php
    if ($field_title !='') {
      ?>
      <label class="d-block mb-0" for="<?php echo $field_id ?>"><?php echo $field_title ?></label>
      <?php
    }
    if ($field_subtitle !='') {
      ?>
      <small><?php echo $field_subtitle ?></small>
      <?php
    }
     ?>
  </div>
  <div class="col-md-8">
    <div class="form-group">
      <div class="form-check form-switch">
        <input class="form-check-input" name="<?php echo $field_id ?>" type="checkbox"  id="<?php echo $field_id ?>"  <?php   if ($field_required == true) { echo 'required' ;   } ?><?php   if ($form_value  == 'on') { echo 'checked=""' ;   } ?>>
        <?php
         if ($field_desc !='') {
           ?>
           <label class="form-check-label" for="<?php echo $field_id ?>"><?php echo $field_desc ?></label>
           <?php
         }
       ?>
      </div>


      <small></small>
    </div>
  </div>
</div>
