title = "Cenník prémiová ponuka" url = "/cennik4" layout = "default" is_hidden = 0 == on('creas_realestate_flats.floor_id', '=', 'creas_realestate_floors.id') ->where('creas_realestate_flats.type','=',4); })->groupBy('creas_realestate_floors.id'); $flats = Flat::with('floors') ->where('type',4); $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',4); 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 "tableprem" %}
číslo bytu podlažie popis cena s DPH dostupnosť