diff --git a/config/filament-mails.php b/config/filament-mails.php index 3ef9663..3f21b86 100644 --- a/config/filament-mails.php +++ b/config/filament-mails.php @@ -8,6 +8,6 @@ 'resources' => [ 'mail' => MailResource::class, 'event' => EventResource::class, - 'suppressions' => SuppressionResource::class + 'suppressions' => SuppressionResource::class, ], ]; diff --git a/src/Resources/EventResource.php b/src/Resources/EventResource.php index ebe055d..b640b5c 100644 --- a/src/Resources/EventResource.php +++ b/src/Resources/EventResource.php @@ -73,7 +73,7 @@ public static function infolist(Infolist $infolist): Infolist TextEntry::make('type') ->label(__('Type')) ->badge() - ->color(fn(EventType $state): string => match ($state) { + ->color(fn (EventType $state): string => match ($state) { EventType::DELIVERED => 'success', EventType::CLICKED => 'clicked', EventType::OPENED => 'info', @@ -121,7 +121,7 @@ public static function infolist(Infolist $infolist): Infolist ->default(__('Unknown')) ->label(__('User Agent')) ->limit(50) - ->tooltip(fn($state) => $state), + ->tooltip(fn ($state) => $state), ]), ]), Section::make(__('Location')) @@ -150,7 +150,7 @@ public static function infolist(Infolist $infolist): Infolist ->default(__('Unknown')) ->label(__('Link')) ->limit(50) - ->url(fn($state) => $state) + ->url(fn ($state) => $state) ->openUrlInNewTab(), TextEntry::make('tag') ->default(__('Unknown')) @@ -199,7 +199,7 @@ public static function table(Table $table): Table ->label(__('Type')) ->sortable() ->badge() - ->color(fn(EventType $state): string => match ($state) { + ->color(fn (EventType $state): string => match ($state) { EventType::DELIVERED => 'success', EventType::CLICKED => 'clicked', EventType::OPENED => 'info', @@ -220,7 +220,7 @@ public static function table(Table $table): Table ->label(__('Occurred At')) ->dateTime('d-m-Y H:i') ->since() - ->tooltip(fn(MailEvent $record) => $record->occurred_at->format('d-m-Y H:i')) + ->tooltip(fn (MailEvent $record) => $record->occurred_at->format('d-m-Y H:i')) ->sortable() ->searchable(), ])