Compare commits
2 Commits
bcb1e6e84a
...
b20a7c15d9
| Author | SHA1 | Date |
|---|---|---|
|
|
b20a7c15d9 | |
|
|
738da696f8 |
|
|
@ -12,14 +12,13 @@
|
|||
|
||||
<input
|
||||
type="text"
|
||||
wire:model.live.debounce.10ms="filters"
|
||||
wire:model.live.debounce.500ms="filters"
|
||||
x-model="query"
|
||||
name="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"
|
||||
placeholder="Buscar por nome, email..."
|
||||
@keyup.enter="$dispatch('filters-added')"
|
||||
>
|
||||
placeholder="Buscar por nome, email..."
|
||||
@keyup.enter="$dispatch('filters-added')">
|
||||
|
||||
<div
|
||||
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">
|
||||
@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-avatar">
|
||||
<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