|
|
@ -18,6 +18,28 @@ |
|
|
|
|
|
|
|
|
<div class="flex items-center justify-between mt-4 py-4"> |
|
|
<div class="flex items-center justify-between mt-4 py-4"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex space-x-4"> |
|
|
|
|
|
|
|
|
|
|
|
<label class="flex-grow"> |
|
|
|
|
|
|
|
|
|
|
|
<span class="sr-only"> |
|
|
|
|
|
{{ __('Search:') }} |
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
<div class="-mt-1"> |
|
|
|
|
|
<x-input.text wire:model.debounce.300ms="search" placeholder="{{ __('Search') }}" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
|
|
|
|
<div x-data=""> |
|
|
|
|
|
<button type="button" x-on:click="document.getElementById('filters-modal').dispatchEvent(new Event('open-modal'))" class="flex justify-center px-4 py-2 text-sm font-medium text-gray-800 bg-gray-300 border border-transparent rounded-md hover:bg-gray-600 hover:text-white flex-grow-0 focus:outline-none focus:border-green-700 focus:shadow-outline-green active:bg-green-700 transition duration-150 ease-in-out"> |
|
|
|
|
|
{{ __('Advanced') }} |
|
|
|
|
|
</button> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<label class="flex items-center"> |
|
|
<label class="flex items-center"> |
|
|
|
|
|
|
|
|
<span class="text-gray-700"> |
|
|
<span class="text-gray-700"> |
|
|
@ -39,18 +61,6 @@ |
|
|
|
|
|
|
|
|
</label> |
|
|
</label> |
|
|
|
|
|
|
|
|
<label class="flex items-center"> |
|
|
|
|
|
|
|
|
|
|
|
<span class="text-gray-700"> |
|
|
|
|
|
{{ __('Search:') }} |
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
|
|
|
|
<div class="ml-2 -mt-1"> |
|
|
|
|
|
<x-input.text wire:model.debounce.300ms="search" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</label> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="flex flex-col"> |
|
|
<div class="flex flex-col"> |
|
|
@ -135,3 +145,90 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
@section('modals') |
|
|
|
|
|
<div |
|
|
|
|
|
id="filters-modal" |
|
|
|
|
|
x-data="{ open: false }" |
|
|
|
|
|
x-on:open-modal="open = true" |
|
|
|
|
|
x-on:keydown.escape.window="open = false" |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
x-bind:class="{
|
|
|
|
|
|
'hidden': ! open, |
|
|
|
|
|
'fixed inset-0 w-full h-full flex items-center justify-center': true, |
|
|
|
|
|
}"
|
|
|
|
|
|
role="dialog" |
|
|
|
|
|
aria-labeledby="filters-modal-title" |
|
|
|
|
|
> |
|
|
|
|
|
<div |
|
|
|
|
|
x-on:click.away="open = false" |
|
|
|
|
|
class="modal-container bg-white w-11/12 md:max-w-md mx-auto rounded shadow-lg z-50 overflow-y-auto" |
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<div class="modal-content py-4 text-left px-6"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-between items-center"> |
|
|
|
|
|
|
|
|
|
|
|
<h2 id="filters-modal-title" class="text-2xl font-bold"> |
|
|
|
|
|
{{ __('Advanced filters') }} |
|
|
|
|
|
</h2> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
x-on:click="open = false" |
|
|
|
|
|
class="modal-close cursor-pointer z-50" |
|
|
|
|
|
> |
|
|
|
|
|
<svg class="fill-current text-black" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 18 18"> |
|
|
|
|
|
<path d="M14.53 4.53l-1.06-1.06L9 7.94 4.53 3.47 3.47 4.53 7.94 9l-4.47 4.47 1.06 1.06L9 10.06l4.47 4.47 1.06-1.06L10.06 9z"></path> |
|
|
|
|
|
</svg> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="mt-6"> |
|
|
|
|
|
<form method="GET" id="filters-form" class="flex flex-col space-y-4"> |
|
|
|
|
|
|
|
|
|
|
|
<x-input.group label="{{ __('associate_categories.model') }}" for="associate_category_id"> |
|
|
|
|
|
<x-input.select name="associate_category_id" id="associate_category_id"> |
|
|
|
|
|
@foreach (\App\AssociateCategory::all() as $category) |
|
|
|
|
|
<option value="{{ $category->id }}"> |
|
|
|
|
|
{{ __('associate_categories.' . $category->key) }} |
|
|
|
|
|
</option> |
|
|
|
|
|
@endforeach |
|
|
|
|
|
</x-input.select> |
|
|
|
|
|
</x-input.group> |
|
|
|
|
|
|
|
|
|
|
|
<x-input.group label="{{ __('associates.attributes.profile.gender') }}" for="gender"> |
|
|
|
|
|
<x-input.select name="gender" id="gender"> |
|
|
|
|
|
<option value="male">Homem</option> |
|
|
|
|
|
<option value="female">Mulher</option> |
|
|
|
|
|
<option value="other">Outro</option> |
|
|
|
|
|
</x-input.select> |
|
|
|
|
|
</x-input.group> |
|
|
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="flex justify-end space-x-2 mt-6"> |
|
|
|
|
|
|
|
|
|
|
|
<button |
|
|
|
|
|
x-on:click="open = false" |
|
|
|
|
|
class="bg-transparent px-4 py-2 rounded-lg text-green-700 hover:bg-gray-100 transition duration-150 ease-in-out" |
|
|
|
|
|
> |
|
|
|
|
|
{{ __('Cancel') }} |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
<button type="submit" form="filters-form" class="flex justify-center px-4 py-2 text-sm font-medium text-gray-800 bg-gray-300 border border-transparent rounded-md hover:bg-gray-600 hover:text-white flex-grow-0 focus:outline-none focus:border-green-700 focus:shadow-outline-green active:bg-green-700 transition duration-150 ease-in-out"> |
|
|
|
|
|
{{ __('Filter') }} |
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="modal-overlay absolute w-full h-full bg-gray-900 opacity-50"></div> |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
@endsection |