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
+4 -4
View File
@@ -110,8 +110,8 @@ class ShowUsuarios extends Component
$query->where('visible', 'true');
}])
->where(function ($query) {
$query->where('name', 'LIKE', '%' . $this->buscar . '%')
->orWhere('email', 'LIKE', '%' . $this->buscar . '%');
$query->where('name', 'ILIKE', '%' . $this->buscar . '%')
->orWhere('email', 'ILIKE', '%' . $this->buscar . '%');
});
if ($this->verPreciosPersonalizados) {
@@ -136,13 +136,13 @@ class ShowUsuarios extends Component
if (!empty($this->buscar_servicio)) {
$this->consulta_tarifas = Tarifas::where('rol_id', $this->rol_usuario)->with([
'servicio' => function ($query) {
$query->Where('nombre', 'LIKE', '%' . $this->buscar_servicio . '%');
$query->Where('nombre', 'ILIKE', '%' . $this->buscar_servicio . '%');
}
])->get();
}
if (!empty($this->buscar_promo)) {
$this->consulta_promo = Promociones::where('visible', '!=', 'false')->where('nombre', 'like', '%' . $this->buscar_promo . '%')->get();
$this->consulta_promo = Promociones::where('visible', '!=', 'false')->where('nombre', 'ILIKE', '%' . $this->buscar_promo . '%')->get();
}
if ($this->gestionPromo == true) {