<tr data-count="{{ count }}" class="rule-trigger-holder">
    <td style="width:40px;">
        <a href="#" class="btn btn-danger btn-sm remove-trigger"><i class="fa fa-trash"></i></a>
    </td>
    <td style="width:30%;">
        {% if errors.has('rule-trigger.'~count) %}
            <span class="form-control-feedback"><i class="fa fa-fw fa-remove"></i></span>
            <p class="text-danger">{{ errors.first('rule-trigger.'~count) }}</p>
        {% endif %}

        <select name="rule-trigger[{{ count }}]" class="form-control">
            {% for key,name in allRuleTriggers() %}
                <option value="{{ key }}" label="{{ name }}"
                        {% if key == oldTrigger %}
                            selected
                        {% endif %}
                >{{ name }}</option>
            {% endfor %}
        </select>
    </td>
    <td>

        <input type="text" value="{{ oldValue }}" name="rule-trigger-value[{{ count }}]"
               class="form-control">
        {% if errors.has(('rule-trigger-value.'~count)) %}
            <p class="text-danger">
                {{ errors.first('rule-trigger-value.'~count) }}
            </p>
        {% endif %}
    </td>
    <td style="width:20%;">
        <div class="checkbox">
            <label>
                <input type="checkbox" name="rule-trigger-stop[{{ count }}]" value="1"
                       {% if oldChecked %}checked{% endif %}
                />
            </label>
        </div>
    </td>
</tr>
