<div class="container mt-5" style="max-width: 600px;"> <div class="card shadow-lg border-0">
        <div class="card-header bg-warning text-dark d-flex align-items-center p-3">
            <i class="fas fa-box-tissue fa-lg me-3"></i> <h5 class="m-0 fw-bold">Edit Tipe Inventori</h5>
        </div>
        
        <div class="card-body p-4">
            <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-4">
                    <label for="inventory_types_nama" class="form-label fw-semibold">Nama Tipe Inventori <span class="text-danger">*</span></label>
                    <div class="input-group">
                        <span class="input-group-text"><i class="fas fa-tag"></i></span> <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 (Contoh: Laptop, Furniture, Server)" required autofocus>
                    </div>
                </div>

                <div class="mb-4">
                    <label for="inventory_types_description" class="form-label fw-semibold">Deskripsi Tipe <span class="text-danger">*</span></label>
                    <div class="input-group">
                        <span class="input-group-text"><i class="fas fa-file-alt"></i></span> <textarea class="form-control" id="inventory_types_description" name="inventory_types_description" 
                            rows="3" placeholder="Jelaskan secara singkat jenis inventori ini (misalnya: 'Aset yang memiliki Serial Number')"><?= set_value('inventory_types_description', $type->inventory_types_description); ?></textarea>
                    </div>
                </div>

                <hr class="mt-4 mb-4">
                
                <div class="d-flex justify-content-end">
                    <a href="<?php echo site_url('Admin/Inventory/Inventory_Types_Controller/index'); ?>" class="btn btn-secondary me-3">
                        <i class="fas fa-times me-1"></i> Batal
                    </a>
                    <button type="submit" class="btn btn-warning fw-bold text-dark">
                        <i class="fas fa-save me-1"></i> Simpan Perubahan
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>