conditioning using activeTab not working as expected
I was expecting that when having this conditioning will not show only on "All" tab. However, it shows on every tabs. I am wondering what I did wrong where. thank you..
ListPage.php
ListPage.php

"All" Tables\Columns\TextColumn::make('original_name')
->hidden(fn ($livewire) => $livewire->activeTab !== 'All')
->searchable(), public function getTabs(): array
{
$tabs = [
null => Tab::make('All'),
];
$items = [
'Category' => 'categories',
'Document' => 'documents',
];
foreach ($items as $key => $item) {
$tabs["With $key"] = Tab::make()->query(function ($query) use ($item) {
$query->whereHas($item)->with([
$item => function ($categoryQuery) {
$categoryQuery->orderBy('updated_at', 'desc');
},
]);
});
}
return $tabs;
}