<ul class="isl-nodetree">
  <li>
    <div>

      <div class="isl-margin">
        Get
        <input type="text" name="<?php echo $module_setting; ?>[discount_value]" value="<?php echo $setting['item']['discount_value']; ?>" min="1" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5" required>
        <select name="<?php echo $module_setting; ?>[discount_type]" class="form-control input-sm isl-inline-block isl-w-xs isl-mh-5">
          <option value="fixed" <?php echo $setting['item']['discount_type'] == 'fixed' ? 'selected' : ''; ?>><?php echo $currency; ?></option>
          <option value="percentage" <?php echo $setting['item']['discount_type'] == 'percentage' ? 'selected' : ''; ?>>%</option>
        </select>
        off each item in the following categories:
      </div>

      <div class="isl-margin isl-w-l">
        <input type="text" placeholder="Type category name" data-isl-autocomplete='{"type":"category", "target":"isl-autocomplete-a", "name":"<?php echo $module_setting; ?>[condition_category_ids][]"}' class="form-control input-sm">
        <div class="well well-sm isl-well isl-autocomplete-a">
          <?php foreach ($condition_category_ids_data as $category) { ?>
            <div class="isl-autocomplete-a<?php echo $category['category_id']; ?>"><i class="fa fa-minus-circle pointer"></i> <?php echo $category['path'] ? $category['path'] . '&nbsp;&nbsp;&gt;&nbsp;&nbsp;' . $category['name'] : $category['name']; ?><input type="hidden" name="<?php echo $module_setting; ?>[condition_category_ids][]" value="<?php echo $category['category_id']; ?>"></div>
          <?php } ?>
        </div>
      </div>

    </div>
  </li>
</ul>

<script>
$(document).trigger('isl.autocomplete');
</script>
