<?= $this->extend('layouts/main') ?>
<?= $this->section('content') ?>

<div class="container">
    <h4>Edit Pajak</h4>
    <form action="<?= base_url('admin/setting/tax/update/' . $tax['id']) ?>" method="post">
        <?= csrf_field() ?>
        <div class="mb-3">
            <label>Nama Pajak</label>
            <input type="text" name="nama" class="form-control" value="<?= esc($tax['nama']) ?>" required>
        </div>
        <div class="mb-3">
            <label>Persentase (%)</label>
            <input type="number" name="persen" class="form-control" value="<?= esc($tax['persen']) ?>" required>
        </div>
        <button class="btn btn-primary">Update</button>
        <a href="<?= base_url('admin/setting/tax') ?>" class="btn btn-secondary">Kembali</a>
    </form>
</div>

<?= $this->endSection() ?>
