UPDATE
This commit is contained in:
@@ -139,7 +139,7 @@ class ShowPlanes extends Component
|
||||
}
|
||||
|
||||
// Empezamos definiendo la consulta básica
|
||||
$consulta_cuentas = Cuentas::where('correo', 'LIKE', '%' . $this->buscar . '%')
|
||||
$consulta_cuentas = Cuentas::where('correo', 'ILIKE', '%' . $this->buscar . '%')
|
||||
->withCount('historiales')
|
||||
->with('historiales')
|
||||
->orderBy('id', 'DESC');
|
||||
@@ -178,7 +178,7 @@ class ShowPlanes extends Component
|
||||
$consulta_cuentas = $consulta_cuentas->paginate($this->entradas);
|
||||
|
||||
if ($this->searchTerm) {
|
||||
$this->usuarios = User::where('email', 'LIKE', '%' . $this->searchTerm . '%')->get();
|
||||
$this->usuarios = User::where('email', 'ILIKE', '%' . $this->searchTerm . '%')->get();
|
||||
if ($this->selectedOption) {
|
||||
$this->searchTerm = $this->selectedOption;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user