22
33namespace Vormkracht10 \FilamentMails \Resources ;
44
5- use Filament \Panel ;
6- use Filament \Schemas \Schema ;
7- use Filament \Schemas \Components \Section ;
8- use Filament \Schemas \Components \Grid ;
9- use Filament \Tables \Columns \TextColumn ;
10- use Filament \Actions \ViewAction ;
115use Filament \Actions \BulkActionGroup ;
126use Filament \Actions \DeleteBulkAction ;
7+ use Filament \Actions \ViewAction ;
138use Filament \Infolists \Components \TextEntry ;
9+ use Filament \Panel ;
1410use Filament \Resources \Resource ;
11+ use Filament \Schemas \Components \Grid ;
12+ use Filament \Schemas \Components \Section ;
13+ use Filament \Schemas \Schema ;
14+ use Filament \Tables \Columns \TextColumn ;
1515use Filament \Tables \Table ;
1616use Vormkracht10 \FilamentMails \Resources \EventResource \Pages \ListEvents ;
1717use Vormkracht10 \FilamentMails \Resources \EventResource \Pages \ViewEvent ;
@@ -83,7 +83,7 @@ public static function infolist(Schema $schema): Schema
8383 TextEntry::make ('type ' )
8484 ->label (__ ('Type ' ))
8585 ->badge ()
86- ->color (fn (EventType $ state ): string => match ($ state ) {
86+ ->color (fn (EventType $ state ): string => match ($ state ) {
8787 EventType::DELIVERED => 'success ' ,
8888 EventType::CLICKED => 'clicked ' ,
8989 EventType::OPENED => 'info ' ,
@@ -131,7 +131,7 @@ public static function infolist(Schema $schema): Schema
131131 ->default (__ ('Unknown ' ))
132132 ->label (__ ('User Agent ' ))
133133 ->limit (50 )
134- ->tooltip (fn ($ state ) => $ state ),
134+ ->tooltip (fn ($ state ) => $ state ),
135135 ]),
136136 ]),
137137 Section::make (__ ('Location ' ))
@@ -160,7 +160,7 @@ public static function infolist(Schema $schema): Schema
160160 ->default (__ ('Unknown ' ))
161161 ->label (__ ('Link ' ))
162162 ->limit (50 )
163- ->url (fn ($ state ) => $ state )
163+ ->url (fn ($ state ) => $ state )
164164 ->openUrlInNewTab (),
165165 TextEntry::make ('tag ' )
166166 ->default (__ ('Unknown ' ))
@@ -209,7 +209,7 @@ public static function table(Table $table): Table
209209 ->label (__ ('Type ' ))
210210 ->sortable ()
211211 ->badge ()
212- ->color (fn (EventType $ state ): string => match ($ state ) {
212+ ->color (fn (EventType $ state ): string => match ($ state ) {
213213 EventType::DELIVERED => 'success ' ,
214214 EventType::CLICKED => 'clicked ' ,
215215 EventType::OPENED => 'info ' ,
@@ -230,7 +230,7 @@ public static function table(Table $table): Table
230230 ->label (__ ('Occurred At ' ))
231231 ->dateTime ('d-m-Y H:i ' )
232232 ->since ()
233- ->tooltip (fn (MailEvent $ record ) => $ record ->occurred_at ->format ('d-m-Y H:i ' ))
233+ ->tooltip (fn (MailEvent $ record ) => $ record ->occurred_at ->format ('d-m-Y H:i ' ))
234234 ->sortable ()
235235 ->searchable (),
236236 ])
0 commit comments