<!-- Modal Form untuk Tambah Type -->
<div class="modal fade" id="TypeModal" tabindex="-1" aria-labelledby="TypeModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content">
            <!-- Modal Header with custom styling -->
            <div class="modal-header bg-primary text-white">
                <h5 class="modal-title" id="TypeModalLabel"><i class="fas fa-user-plus"></i> Tambah Tipe Inventori</h5>
                <button type="button" class="btn-close btn-close-white" data-bs-dismiss="modal"></button>
            </div>
            
            <!-- Modal Body with improved form styling -->
            <div class="modal-body">
                <form action="<?php echo site_url('Admin/Inventory/Inventory_Types_Controller/tambah'); ?>" method="post">
                    <input type="hidden" name="created_by" value="<?php echo $this->session->userdata('user_id'); ?>">

                    <div class="mb-4">
                        <label for="inventory_types_nama" class="form-label">Nama Tipe Inventori</label>
                        <div class="input-group">
                            <span class="input-group-text"><i class="fas fa-building"></i></span>
                            <input type="text" class="form-control" id="inventory_types_nama" name="inventory_types_nama" placeholder="Masukkan nama Type" value="<?= set_value('inventory_types_nama') ?>" required>
                        </div>
                    </div>

                    <div class="mb-4">
                        <label for="inventory_types_description" class="form-label">Deskripsi</label>
                        <div class="input-group">
                            <span class="input-group-text"><i class="fas fa-tags"></i></span>
                            <input type="text" class="form-control" id="inventory_types_description" name="inventory_types_description" placeholder="Masukkan description" value="<?= set_value('inventory_types_description') ?>" required>
                        </div>
                    </div>


                   

                    <!-- Modal Footer with styled buttons -->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><i class="fas fa-times"></i> Close</button>
                        <button type="submit" class="btn btn-primary"><i class="fas fa-save"></i> Save</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
