44 lines
2.1 KiB
PHP
44 lines
2.1 KiB
PHP
@extends('layouts.app')
|
||
|
||
@section('content')
|
||
<div>
|
||
<form class="d-flex mb-3" method="GET" action="{{ route('clients.table') }}">
|
||
<div class="p-2 border rounded-3 border-1 p-1 bg-white">
|
||
<input type="radio" class="btn-check" name="status" value="all" id="option5" autocomplete="off"
|
||
onclick="this.form.submit()" {{ $status == 'all' ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5" for="option5">Все</label>
|
||
|
||
<input type="radio" class="btn-check" name="status" value="unique" id="option6" autocomplete="off"
|
||
onclick="this.form.submit()" {{ $status == 'unique' ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5" for="option6">Уникальные</label>
|
||
|
||
<input type="radio" class="btn-check" name="status" value="not unique" id="option7" autocomplete="off"
|
||
onclick="this.form.submit()" {{ $status == 'not unique' ? 'checked' : '' }}>
|
||
<label class="btn p-2 fs-5" for="option7">Не
|
||
уникальные</label>
|
||
</div>
|
||
<div class="ms-auto p-2">
|
||
<select class="form-select form-select-lg" aria-label="Large select example">
|
||
<option selected="">Город: любой</option>
|
||
@foreach ($cities as $city)
|
||
<option selected="">{{ $city->name }}</option>
|
||
@endforeach
|
||
</select>
|
||
</div>
|
||
</form>
|
||
@if (!$status || $status == 'all' || $status == 'unique')
|
||
<h4 class="fw-bold mt-5 mb-3">Уникальные</h4>
|
||
<div class="fs-5 bg-light mb-2">
|
||
@livewire('clientsTable', ['status' => 'UNIQUE'])
|
||
</div>
|
||
@endif
|
||
|
||
@if (!$status || $status == 'all' || $status == 'not unique')
|
||
<h4 class="fw-bold mt-5 mb-3">Не уникальные</h4>
|
||
<div class="fs-5 bg-light mb-2">
|
||
@livewire('clientsTable', ['status' => 'NOT UNIQUE'])
|
||
</div>
|
||
@endif
|
||
</div>
|
||
@endsection
|