UPDATE
This commit is contained in:
@@ -18,9 +18,9 @@ class ShowLogs extends Component
|
||||
$consulta_historial = Historiale::with('promocion', 'tarifa', 'vendedor','cuentas','cuentas_obsoletas')->whereDate('fecha_final','>', $fechaVencimiento)->orderBy('id', 'DESC')
|
||||
->when(!empty($this->buscar), function ($query) {
|
||||
$query->whereHas('cuentas', function ($subquery) {
|
||||
$subquery->where('correo', 'LIKE', '%' . $this->buscar . '%');
|
||||
$subquery->where('correo', 'ILIKE', '%' . $this->buscar . '%');
|
||||
})->orWhereHas('vendedor', function ($subquery) {
|
||||
$subquery->where('email', 'LIKE', '%' . $this->buscar . '%');
|
||||
$subquery->where('email', 'ILIKE', '%' . $this->buscar . '%');
|
||||
});
|
||||
});
|
||||
// Limitar resultados a un máximo de 200
|
||||
|
||||
Reference in New Issue
Block a user