function getCurrentFilters()
{
$filters = [];
foreach (\Session::get('widget', []) as $name => $item) {
if (str_contains($name, 'Filter')) {
$filter = @unserialize(@base64_decode($item));
if ($filter) {
$filters[] = $filter;
}
}
}
return $filters;
}