селектор помещений из апи

This commit is contained in:
developer 2026-04-02 11:56:25 +08:00
parent 0f6dffb596
commit 2568f663d4

View File

@ -65,7 +65,7 @@ class="img-fluid rounded-start" alt="...">
</div> </div>
@endif @endif
@if(!$room) @if(!$room)
<div class="d-flex gap-2"> <div class="hstack gap-2">
<div class="col-4 p-2 rounded-4 mb-3 bg-light border d-flex gap-2"> <div class="col-4 p-2 rounded-4 mb-3 bg-light border d-flex gap-2">
<div class="flex-fill"> <div class="flex-fill">
<label>Дом/строение:</label> <label>Дом/строение:</label>
@ -98,27 +98,27 @@ class="img-fluid rounded-start" alt="...">
@if(array_key_exists('type', $filter)) @if(array_key_exists('type', $filter))
@foreach($summary as $typeSummary) @foreach($summary as $typeSummary)
@if(array_key_exists('type', $typeSummary) && $typeSummary['type'] == $filter['type']) @if(array_key_exists('type', $typeSummary) && $typeSummary['type'] == $filter['type'])
<div class="col-4 p-2 rounded-4 mb-3 bg-light border"> <div class="p-2 rounded-4 mb-3 bg-light border">
<label>Площадь:</label> <label>Площадь:</label>
<div class="input-group"> <div class="input-group">
<span class="input-group-text">от</span> <span class="input-group-text">от</span>
<input wire:loading.attr="disabled" type="number" wire:model.live="filter.min_area" <input wire:loading.attr="disabled" type="number" wire:model.live="filter.min_area"
class="form-control w-25" placeholder="{{ $typeSummary['min_area'] }}"> class="form-control" placeholder="{{ $typeSummary['min_area'] }}">
<span class="input-group-text">до</span> <span class="input-group-text">до</span>
<input wire:loading.attr="disabled" type="number" wire:model.live="filter.max_area" <input wire:loading.attr="disabled" type="number" wire:model.live="filter.max_area"
class="form-control w-25" placeholder="{{ $typeSummary['max_area'] }}"> class="form-control" placeholder="{{ $typeSummary['max_area'] }}">
</div> </div>
</div> </div>
<div class="col-4 p-2 rounded-4 mb-3 bg-light border"> <div class="p-2 rounded-4 mb-3 bg-light border">
<label>Стоимость:</label> <label>Стоимость:</label>
<div class="input-group"> <div class="input-group">
<span class="input-group-text">от</span> <span class="input-group-text">от</span>
<input wire:loading.attr="disabled" wire:model.live="filter.min_price" type="number" <input wire:loading.attr="disabled" wire:model.live="filter.min_price" type="number"
class="form-control w-25" class="form-control"
placeholder="{{ number_format($typeSummary['min_price'], 0, '', ' ') . ' р.' }}"> placeholder="{{ number_format($typeSummary['min_price'], 0, '', ' ') . ' р.' }}">
<span class="input-group-text">до</span> <span class="input-group-text">до</span>
<input wire:loading.attr="disabled" wire:model.live="filter.max_price" type="number" <input wire:loading.attr="disabled" wire:model.live="filter.max_price" type="number"
class="form-control w-25" class="form-control"
placeholder="{{ number_format($typeSummary['max_price'], 0, '', ' ') . ' р.' }}"> placeholder="{{ number_format($typeSummary['max_price'], 0, '', ' ') . ' р.' }}">
</div> </div>
</div> </div>