@@ -24,6 +24,11 @@ class EventResource extends Resource
24
24
25
25
protected static bool $ shouldRegisterNavigation = true ;
26
26
27
+ public function getTitle (): string
28
+ {
29
+ return __ ('Events ' );
30
+ }
31
+
27
32
public static function getNavigationParentItem (): ?string
28
33
{
29
34
return __ ('Mails ' );
@@ -41,7 +46,7 @@ public static function getNavigationLabel(): string
41
46
42
47
public static function getLabel (): ?string
43
48
{
44
- return __ ('Events ' );
49
+ return __ ('Event ' );
45
50
}
46
51
47
52
public static function getPluralModelLabel (): string
@@ -54,11 +59,6 @@ public static function getNavigationIcon(): string
54
59
return 'heroicon-o-calendar ' ;
55
60
}
56
61
57
- public function getTitle (): string
58
- {
59
- return __ ('Events ' );
60
- }
61
-
62
62
public static function infolist (Infolist $ infolist ): Infolist
63
63
{
64
64
return $ infolist
@@ -214,10 +214,6 @@ public static function table(Table $table): Table
214
214
})
215
215
->searchable (),
216
216
Tables \Columns \TextColumn::make ('mail.subject ' )
217
- ->url (fn (MailEvent $ record ) => route ('filament. ' . filament ()->getCurrentPanel ()?->getId() . '.resources.mails.view ' , [
218
- 'record ' => $ record ->mail ,
219
- 'tenant ' => filament ()->getTenant ()?->id,
220
- ]))
221
217
->label (__ ('Subject ' ))
222
218
->searchable (['subject ' , 'payload ' ]),
223
219
Tables \Columns \TextColumn::make ('occurred_at ' )
@@ -233,6 +229,8 @@ public static function table(Table $table): Table
233
229
])
234
230
->actions ([
235
231
Tables \Actions \ViewAction::make ()
232
+ ->url (null )
233
+ ->modal ()
236
234
->slideOver ()
237
235
->label (__ ('View ' ))
238
236
->hiddenLabel ()
0 commit comments