feat: Requests controladas.
This commit is contained in:
parent
6b38865074
commit
738da696f8
|
|
@ -12,14 +12,13 @@
|
||||||
|
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
wire:model.live.debounce.10ms="filters"
|
wire:model.live.debounce.500ms="filters"
|
||||||
x-model="query"
|
x-model="query"
|
||||||
name="search"
|
name="search"
|
||||||
id="search"
|
id="search"
|
||||||
class="block w-full outline-none rounded-md bg-white border-0 py-2 pl-10 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6"
|
class="block w-full outline-none rounded-md bg-white border-0 py-2 pl-10 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-blue-600 sm:text-sm sm:leading-6"
|
||||||
placeholder="Buscar por nome, email..."
|
placeholder="Buscar por nome, email..."
|
||||||
@keyup.enter="$dispatch('filters-added')"
|
@keyup.enter="$dispatch('filters-added')">
|
||||||
>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
x-show="query"
|
x-show="query"
|
||||||
|
|
@ -40,7 +39,7 @@ class="text-gray-400 hover:text-gray-600 focus:outline-none">
|
||||||
|
|
||||||
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||||
@foreach ($clients as $client)
|
@foreach ($clients as $client)
|
||||||
<div class="client-card" wire:transition.scale.origin.top.duration.300ms>
|
<div class="client-card" wire:key="{{ $client->id }}" wire:transition.scale.origin.top.duration.300ms>
|
||||||
<div class="client-card-header">
|
<div class="client-card-header">
|
||||||
<div class="client-avatar">
|
<div class="client-avatar">
|
||||||
<img src="{{ asset('storage/' . $client->profile_image_path) }}" x-on:click.prevent="$dispatch('client-detail', { id: '{{ $client->id }}' })" alt="Avatar do Cliente"
|
<img src="{{ asset('storage/' . $client->profile_image_path) }}" x-on:click.prevent="$dispatch('client-detail', { id: '{{ $client->id }}' })" alt="Avatar do Cliente"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue