From ae4f72d2aaf4b69e75eb2d5f1abb918d2308f6e7 Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Fri, 7 Feb 2025 14:55:29 +0100 Subject: [PATCH] add searchable false to non existing table columns --- src/Resources/MailResource.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Resources/MailResource.php b/src/Resources/MailResource.php index 6b7fd80..07dacc4 100644 --- a/src/Resources/MailResource.php +++ b/src/Resources/MailResource.php @@ -320,6 +320,7 @@ public static function table(Table $table): Table Tables\Columns\TextColumn::make('status') ->label(__('Status')) ->sortable() + ->searchable(false) ->badge() ->color(fn (string $state): string => match ($state) { __('Soft Bounced') => 'warning', @@ -341,6 +342,7 @@ public static function table(Table $table): Table Tables\Columns\IconColumn::make('attachments') ->label('') ->alignLeft() + ->searchable(false) ->getStateUsing(fn (Mail $record) => $record->attachments->count() > 0) ->icon(fn (string $state): string => $state ? 'heroicon-o-paper-clip' : ''), Tables\Columns\TextColumn::make('to')