This commit is contained in:
lizandrogd
2025-04-04 20:11:51 -05:00
parent ac229cdb74
commit c1e72339c1
8 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -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;
}