Skip to content

Commit

Permalink
Merge branch 'feature/suppressions-list' of https://github.com/vormkr…
Browse files Browse the repository at this point in the history
…acht10/filament-mails into feature/suppressions-list

# Conflicts:
#	src/Resources/SuppressionResource.php
  • Loading branch information
arduinomaster22 committed Jan 13, 2025
2 parents b78dd9c + 4f739e4 commit 8a13210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/filament-mails.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
'resources' => [
'mail' => MailResource::class,
'event' => EventResource::class,
'suppressions' => SuppressionResource::class
'suppressions' => SuppressionResource::class,
],
];
10 changes: 5 additions & 5 deletions src/Resources/EventResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'))
Expand Down Expand Up @@ -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'))
Expand Down Expand Up @@ -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',
Expand All @@ -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(),
])
Expand Down

0 comments on commit 8a13210

Please sign in to comment.