56 lines
3.5 KiB
PHP
56 lines
3.5 KiB
PHP
<?php
|
||
use Modules\Main\Models\Deal\DealStatus;
|
||
?>
|
||
<div class="d-flex gap-2 flex-column flex-lg-row">
|
||
<div class="d-flex flex-row col-12 col-lg-auto border rounded-3 border-1 p-1 bg-white" style="">
|
||
<input wire:model.live="filter.status" type="radio" class="btn-check" name="status"
|
||
value="{{ DealStatus::MODERATION }}" id="option5" autocomplete="off" {{ (array_key_exists('status', $filter) && $filter['status'] == DealStatus::MODERATION) ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5 text-truncate" for="option5">На проверке</label>
|
||
<input wire:model.live="filter.status" type="radio" class="btn-check" name="status"
|
||
value="{{ DealStatus::UNIQUE }}" id="option6" autocomplete="off" {{ (array_key_exists('status', $filter) && $filter['status'] == DealStatus::UNIQUE) ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5 text-truncate" for="option6">Уникальные</label>
|
||
<input wire:model.live="filter.status" type="radio" class="btn-check" name="status"
|
||
value="{{ DealStatus::NOT_UNIQUE }}" id="option7" autocomplete="off" {{ (array_key_exists('status', $filter) && $filter['status'] == DealStatus::NOT_UNIQUE) ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5 text-truncate" for="option7">Не уникальные</label>
|
||
</div>
|
||
<input wire:model.live="filter.search" class="flex-fill col-12 col-md-auto form-control form-control-lg" type="text"
|
||
placeholder="Поиск по имени, телефону, электронной почте">
|
||
<!-- Выбор ЖК-->
|
||
<div class="btn-group bg-light d-flex rounded-4 ">
|
||
<button type="button" class="p-0 btn bg-light text-primary border overflow-hidden w-100 rounded-start-3 pe-0"
|
||
style="mask-image: linear-gradient(to right, black, black 90%, transparent);">
|
||
<div class="mx-1 text-truncate fs-5">
|
||
@if(array_key_exists('complexes', $filter))
|
||
<div class="">
|
||
<span class="text-truncate">{{ $filter['complexes'][0]['name'] }}</span>
|
||
@if(count($filter['complexes']) > 1)
|
||
<span>
|
||
+ <span class="d-inline-block bg-secondary rounded-circle" style="width:1.7rem;height:1.7rem">{{ count($filter['complexes']) - 1 }}</span>
|
||
</span>
|
||
@endif
|
||
</div>
|
||
|
||
@else
|
||
<div class="m-2">ЖК</div>
|
||
@endif
|
||
</div>
|
||
</button>
|
||
<button type="button" style="width:30px" class="btn btn-secondary dropdown-toggle dropdown-toggle-split show"
|
||
data-bs-toggle="dropdown" aria-expanded="true" data-bs-reference="parent">
|
||
<span class="visually-hidden">Toggle Dropdown</span>
|
||
</button>
|
||
<ul class="dropdown-menu dropdown-menu-end">
|
||
@foreach ($complexes as $complex)
|
||
<li>
|
||
<div class="dropdown-item">
|
||
<input wire:change="toggleComplex({{ $complex['id'] }})" class="form-check-input"
|
||
type="checkbox" id="complex_selector_{{ $complex['id'] }}">
|
||
<label class="form-check-label" for="complex_selector_{{ $complex['id'] }}">
|
||
{{ $complex['name'] }}
|
||
</label>
|
||
</div>
|
||
</li>
|
||
@endforeach
|
||
</ul>
|
||
</div>
|
||
</div>
|