<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 brands:
      </div>

      <div class="isl-margin isl-w-l">
        <div class="well well-sm isl-well">
          <label><input type="checkbox" name="<?php echo $module_setting; ?>[discount_manufacturer_ids][]" value="0" <?php echo in_array(0, $setting['item']['discount_manufacturer_ids']) ? 'checked' : ''; ?>> All Brands</label>
          <?php foreach ($manufacturers as $manufacturer) { ?>
            <label><input type="checkbox" name="<?php echo $module_setting; ?>[discount_manufacturer_ids][]" value="<?php echo $manufacturer['manufacturer_id']; ?>" <?php echo in_array($manufacturer['manufacturer_id'], $setting['item']['discount_manufacturer_ids']) ? 'checked' : ''; ?>> <?php echo $manufacturer['name']; ?></label>
          <?php } ?>
        </div>
      </div>

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

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