<!-- Modal Form untuk Tambah Location -->
<div class="modal fade" id="LocationModal" tabindex="-1" aria-labelledby="LocationModalLabel" 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="LocationModalLabel"><i class="fas fa-user-plus"></i> Tambah Location</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_Location_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_location_nama" class="form-label">Nama Location</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_location_nama" name="inventory_location_nama" placeholder="Masukkan nama Location" value="<?= set_value('inventory_location_nama') ?>" 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>
