@php
$property_search_fields = setting_item_array('property_search_fields');
$attributes = \Modules\Core\Models\Attributes::where('service', 'property')->with(['terms','translations'])->get();
$types = [
'service_name'=>__("Service name"),
'location'=>__("Location"),
'category'=>__("Category"),
'property_type'=>__("Property Type"),
'bathrooms'=>__("Bathrooms"),
'bedrooms'=>__("Bedrooms"),
'garages'=>__("Garages"),
'price'=>__("Price"),
'year_built'=>__("Year Built")
];
foreach($attributes as $attr) {
$types[$attr->slug.'|'.$attr->id] = $attr->name;
}
@endphp
@foreach($property_search_fields as $key=>$item)
@endforeach