UPDATE
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user