   <!--  Accounts Section -->   
         <div id="accountsSection" class="admin-section section mt-1" style="display:none;">

    <!-- Skeleton -->
    <div class="skeleton-wrapper">
        <div class="skeleton-box"></div>
        <div class="skeleton-box"></div>
    </div>

    <!-- Real Content -->
    <div class="content-wrapper" style="display:none;">

        <div class="section-title">
            <h6>Warehouse Details</h6>
        </div>

        <div class="card p-3">

            <form id="warehouseForm">

                <div id="warehouseRows">

                    <!-- First Row -->
                    <div class="warehouse-row row mb-2">
                        <div class="form-group basic  col-md-3">
                            <div class="input-wrapper">
                            <label class="label" for="name2">WarehouseName</label>
                            <input type="text" name="warehouse_name[]" class="form-control" required>
                            </div>
                        </div>
                        <div class="form-group  basic col-md-3">
                            <div class="input-wrapper">
                            <label class="label" for="name2">Location</label>
                            <input type="text" name="location[]" class="form-control"  required>
                            </div>
                        </div>
                        <div class="form-group  basic col-md-2">
                            <div class="input-wrapper">
                            <label class="label" for="name2">Capacity</label>
                            <input type="number" name="capacity[]" class="form-control"  required>
                            </div>
                        </div>
                       <div class="form-group basic  col-md-3">
                            <div class="live-search-wrapper"
                                     data-endpoint="fetch_scripts/get_store_managers.php"
                                     data-hidden-name="manager_id[]"
                                     data-display-fields="firstname,secondname"
                                     data-value-field="id">
                                
                                    <label class="label">Manager</label>
                                
                                    <!-- ❌ REMOVE name from text input -->
                                    <input type="text"
                                           class="form-control liveSearchInput"
                                           placeholder="Search..."
                                           autocomplete="off">
                                
                                    <!-- ✅ ADD name here instead -->
                                    <input type="hidden"
                                           class="liveHiddenInput"
                                           name="manager_id[]">
                                
                                    <div class="liveResults"></div>
                                </div>
                        </div>
                        <div class="form-group basic col-md-2 d-flex align-items-center">
                            <button type="button" class="btn btn-danger btn-sm removeRow" style="display:none;">Remove</button>
                        </div>
                    </div>

                </div>

                <div class="form-group basic mt-2">
                    <div class="right" style="position: fixed; right: 20px; center: 20px; z-index: 9999;">
                    <div id="liveToastContainer"></div>
                </div>
                    <button type="button" id="addRow" class="btn btn-success btn-sm">
                        + Add Row
                    </button>
                </div>

                <div class="mt-3">
                    <button type="submit" class="btn btn-primary btn-block">
                        Add Warehouses
                    </button>
                </div>

            </form>

        </div>
    </div>
</div>
    <!--  * Accounts Section -->     