aksh
Translate is not working on only NavigationItem in AdminpanelProvider
->navigationItems( [
NavigationItem::make('Booking List')
->label( ('sidebar.Booking List') )
->url( fn (): string => Dashboard::getUrl().'/bookings/listing' )
->icon( 'heroicon-o-presentation-chart-line' )
->activeIcon( 'heroicon-s-presentation-chart-line' )
->isActiveWhen( fn (): bool => Str::contains( url()->current(), 'bookings/listing' ) )
->group( ('sidebar.Booking') )
->sort( 3 )
->visible(fn(): bool => Auth::user()?->can('Booking Read')),
how to fix this issue?I used language switcher plugin
7 replies
I used a checkbox in the filter and it has default true.
Hi everyone, I used a checkbox in the filter and it has default true. but I want to disable or hide it so the user cannot uncheck it. I am using filament v3
->filters([
Filter::make('selected_location')
->query(function ($query) use ($selectedLocation) {
if ($selectedLocation) {
return $query->where('locations_id', $selectedLocation);
}
return $query;
})->default(true),
)}
6 replies