<?php
/*
 * *************************************************
 * Copyright (C) 2021 Earworks.                    *
 * Codeigniter Project Template Modification       *
 * Please contact our email for more information : *
 * contact@earworks.co.id                          *
 * *************************************************
 */

defined('BASEPATH') OR exit('No direct script access allowed');
?>
<tr class="syarat_item" id="syarat_<?= $id ?>">
    <td class="text-center"><?= $id+1 ?></td>
    <td>
        <div class="input-group">
            <?= form_input('syarat[' . $id . ']', $value, ['class' => 'form-control', 'readonly' => 'readonly']) ?>
            <div class="input-group-btn">
                <a href="javascript:void(0)" class="btn btn-success" data-target="<?= $id ?>" onclick="page_script.fill_syarat(this);">
                    <i class="fa fa-plus"></i>
                </a>
                <a href="javascript:void(0)" class="btn btn-danger" data-target="<?= $id ?>" onclick="page_script.remove_syarat(this);">
                    <i class="fa fa-times"></i>
                </a>
            </div>
        </div>
    </td>
</tr>