🚧 Commence les 1er filtres avec la pagination
This commit is contained in:
@@ -15,6 +15,13 @@
|
||||
@endif
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mt-4">
|
||||
<form>
|
||||
<label for="price_min">Min prix:</label><input type="number" name="filter[price_min]" id="price_min">
|
||||
<label for="price_max">Max prix:</label><input type="number" name="filter[price_max]" id="price_max">
|
||||
<button class="btn btn-secondary" type="submit">Rechercher</button>
|
||||
</form>
|
||||
</div>
|
||||
@if(count($homes) > 0)
|
||||
@foreach($homes as $home)
|
||||
<div class="col-sm-6">
|
||||
@@ -28,6 +35,9 @@
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
<div class="col-sm-12 mt-4">
|
||||
{{ $homes->links() }}
|
||||
</div>
|
||||
@else
|
||||
Aucune maison enregistrée :(
|
||||
@endif
|
||||
|
Reference in New Issue
Block a user