searchable(false) ->columns([ TextColumn::make('name') ->label(trans('admin/mount.table.name')) ->searchable(), TextColumn::make('source') ->label(trans('admin/mount.table.source')) ->searchable(), TextColumn::make('target') ->label(trans('admin/mount.table.target')) ->searchable(), IconColumn::make('read_only') ->label(trans('admin/mount.table.read_only')) ->icon(fn (bool $state) => $state ? 'tabler-circle-check-filled' : 'tabler-circle-x-filled') ->color(fn (bool $state) => $state ? 'success' : 'danger') ->sortable(), ]) ->actions([ EditAction::make(), ]) ->bulkActions([ BulkActionGroup::make([ DeleteBulkAction::make() ->authorize(fn () => auth()->user()->can('delete mount')), ]), ]) ->emptyStateIcon('tabler-layers-linked') ->emptyStateDescription('') ->emptyStateHeading(trans('admin/mount.no_mounts')) ->emptyStateActions([ CreateAction::make('create') ->button(), ]); } protected function getHeaderActions(): array { return [ Actions\CreateAction::make() ->hidden(fn () => Mount::count() <= 0), ]; } }