<!-- Edit Type Form -->
<div class="container mt-4">
    <div class="card shadow">
        <div class="card-header bg-warning text-white">
            <h5 class="m-0">Edit Tipe Inventori</h5>
        </div>
        <div class="card-body">
            <form action="<?php echo site_url('Admin/Inventory/Inventory_Types_Controller/update'); ?>" method="post">
                <input type="hidden" name="inventory_types_id" value="<?= $type->inventory_types_id; ?>">

                <div class="mb-3">
                    <label for="inventory_types_nama" class="form-label">Nama Tipe Inventori</label>
                    <input type="text" class="form-control" id="inventory_types_nama" name="inventory_types_nama" 
                           value="<?= set_value('inventory_types_nama', $type->inventory_types_nama); ?>" 
                           placeholder="Masukkan nama tipe inventori" required>
                </div>

                <div class="mb-3">
                    <label for="inventory_types_description" class="form-label">Deskripsi</label>
                    <input type="text" class="form-control" id="inventory_types_description" name="inventory_types_description" 
                           value="<?= set_value('inventory_types_description', $type->inventory_types_description); ?>" 
                           placeholder="Masukkan deskripsi" required>
                </div>



                <div class="d-flex justify-content-end">
                    <button type="submit" class="btn btn-warning me-2">Update</button>
                    <a href="<?php echo site_url('Admin/Inventory/Inventory_Types_Controller/index'); ?>" class="btn btn-secondary">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
