title = "Cenník kobky" url = "/cennik5" layout = "default" is_hidden = 0 == on('creas_realestate_flats.floor_id', '=', 'creas_realestate_floors.id') ->where('creas_realestate_flats.type','=',5); })->groupBy('creas_realestate_floors.id'); $flats = Flat::with('floors') ->where('type',5); $this['flats'] = $flats->get(); $this['floors'] = $floors->get(); } function onFilterChange() { $floor_id = input('floor_id'); $status = input('status'); $price = input('price'); $flats = Flat::with('floors') ->where('type',5); if($floor_id) { $flats->where('floor_id', $floor_id); } if($status) { $flats->where('status', $status ); } if($price == 1) { $flats->where('status', '<', '3')->orderBy('price', 'asc' ); } elseif ($price == 2) { $flats->where('status', '<', '3')->orderBy('price', 'desc' ); } $this['flats'] = $flats->get(); } ?> ==

 

{% partial "tablekob" %}
označenie podlažie popis výmera v m2 cena s DPH dostupnosť