Vibrant and Thriving Communities

An integrated and vibrant lifestyle offering a multitude of social and recreational activities,
enhancing residents' lives through a comprehensive array of services and facilities.
This includes green spaces, children's parks, a library, fitness centers,
cafés, and a variety of other amenities.

Al Hayam Project

ABHA City

ABHA
85 Units
0 Building

Zahrat Asir Project

MAHAYIL ASIR City

M Asir
420 Units
0 Building

Al-Awali Gate project

MAKKAH City

Makkah
60 Units
60 Building

Makkah Project 2

Makkah

Makkah
287 Units
10 Floors

Jarrat Al Wadi Complex Project

Riyadh

Riyadh
86 Units
4 Building

El Ghurub Project

Riyadh

Riyadh
13 Villas
12 Apartments

Categories

City

Neighborhood

Units space

Number Of Rooms

function getNeighborhoods(cityId) { $.ajax({ url: "https://rayatalmaidan.com/get-neighborhoods" + "/" + cityId, type: 'GET', success: function (data) { let neighborhoods = data.data.data; console.log(neighborhoods) console.log(data) let options = ''; neighborhoods.forEach(function (neighborhood) { options += ''; }); $('.neighborhoodsOP').html(options); filterProjects(); } }); } // filter projects by category and city and neighborhood and units space and number of rooms and price range function filterProjects() { let selectedCategories = []; $("input[name='categories[]']:checked").each(function () { selectedCategories.push($(this).val()); }); let selectedCities = $(".js-select2[name='cities[]']").val(); let selectedNeighborhoods = $(".js-select2[name='neighborhoods[]']").val(); let selectedUnitsSpace = $(".js-range-slider").val(); let selectedNumberOfRooms = $("input[name='my_range']").val(); let SearchInput = $("#searchInput").val(); console.log(SearchInput) // Modify this based on your input element // You can also get price range values in a similar way let urlAction = "filter-projects.html" $.ajax({ url: urlAction, // Replace with your backend API endpoint type: 'POST', data: { categories: selectedCategories, cities: selectedCities, neighborhoods: selectedNeighborhoods, unitsSpace: selectedUnitsSpace, numberOfRooms: selectedNumberOfRooms, search: SearchInput, '_token': '4gVtGjqFMagIGf6z14kXz2pge9og0lMYdYIwuXR5' }, success: function (data) { let html = ''; data.data.data.forEach(function (project) { console.log(project) let baseUrl = " ../index.html"; html += `

${project.name}

${project.description}

${project.neighborhood}
${project.unit} Units
${project.buildings} Building
` }); if (data.data.data.length == 0) { html = `

There are no matching search results

We could not find any item that matches your search

` } $('.projectlist').html(html); } }); } $("input[name='categories[]']").on("change", function () { filterProjects(); }); $(".js-select2[name='cities[]']").on("change", function () { filterProjects(); }); $(".js-select2[name='neighborhoods[]']").on("change", function () { filterProjects(); }); $(".js-range-slider").on("change", function () { filterProjects(); }); $("input[name='my_range']").on("input", function () { filterProjects(); }); $("#filterButton").on("click", function () { // Replace "#filterButton" with your actual button selector filterProjects(); }); // input text search $("#searchInput").on("keyup", function () { // Replace "#filterButton" with your actual button selector filterProjects(); }); function resetFilter() { $("input[name='categories[]']").prop('checked', false); $(".js-select2[name='cities[]']").val(null).trigger('change'); $(".js-select2[name='neighborhoods[]']").val(null).trigger('change'); $(".js-range-slider").data("ionRangeSlider").reset(); $("input[name='my_range']").val(null); filterProjects(); } -->