log con filtro y solo cuando editen el usuario
This commit is contained in:
@@ -14,6 +14,7 @@ class ShowLogHistorial extends Component
|
||||
public $entradas;
|
||||
|
||||
public $buscar;
|
||||
public $tipo;
|
||||
public $filtro_fecha;
|
||||
|
||||
public $user_id;
|
||||
@@ -32,6 +33,10 @@ class ShowLogHistorial extends Component
|
||||
}
|
||||
|
||||
|
||||
if ($this->tipo) {
|
||||
$query->where('detalle', 'like', '%' . $this->tipo . '%');
|
||||
}
|
||||
|
||||
if ($this->filtro_fecha) {
|
||||
$query->whereDate('created_at', $this->filtro_fecha);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user