@@ -14,7 +14,7 @@ class ListEvents extends ListRecords
1414{
1515 public static function getResource (): string
1616 {
17- return config ('filament-mails.resources.mail ' , EventResource::class);
17+ return config ('filament-mails.resources.event ' , EventResource::class);
1818 }
1919
2020 public function getTitle (): string
@@ -36,29 +36,29 @@ public function getTabs(): array
3636 ->icon ('heroicon-o-inbox ' )
3737 ->badge (MailEvent::count ()),
3838
39- 'delivery ' => Tab::make ()
40- ->label (__ ('Delivery ' ))
39+ 'delivered ' => Tab::make ()
40+ ->label (__ ('Delivered ' ))
4141 ->badgeColor ('success ' )
4242 ->icon ('heroicon-o-check-circle ' )
4343 ->badge (MailEvent::where ('type ' , EventType::DELIVERED )->count ())
4444 ->modifyQueryUsing (fn (Builder $ query ) => $ query ->where ('type ' , EventType::DELIVERED )),
4545
46- 'click ' => Tab::make ()
47- ->label (__ ('Click ' ))
46+ 'clicked ' => Tab::make ()
47+ ->label (__ ('Clicked ' ))
4848 ->badgeColor ('clicked ' )
4949 ->icon ('heroicon-o-cursor-arrow-rays ' )
5050 ->badge (MailEvent::where ('type ' , EventType::CLICKED )->count ())
5151 ->modifyQueryUsing (fn (Builder $ query ) => $ query ->where ('type ' , EventType::CLICKED )),
5252
53- 'open ' => Tab::make ()
54- ->label (__ ('Open ' ))
53+ 'opened ' => Tab::make ()
54+ ->label (__ ('Opened ' ))
5555 ->badgeColor ('info ' )
5656 ->icon ('heroicon-o-envelope-open ' )
5757 ->badge (MailEvent::where ('type ' , EventType::OPENED )->count ())
5858 ->modifyQueryUsing (fn (Builder $ query ) => $ query ->where ('type ' , EventType::OPENED )),
5959
6060 'soft_bounce ' => Tab::make ()
61- ->label (__ ('Soft Bounce ' ))
61+ ->label (__ ('Soft Bounced ' ))
6262 ->icon ('heroicon-o-x-circle ' )
6363 ->badge (MailEvent::where ('type ' , EventType::SOFT_BOUNCED )->count ())
6464 ->modifyQueryUsing (fn (Builder $ query ) => $ query ->where ('type ' , EventType::SOFT_BOUNCED )),
@@ -73,8 +73,8 @@ public function getTabs(): array
7373 ->orWhere ('type ' , EventType::HARD_BOUNCED );
7474 })),
7575
76- 'complaint ' => Tab::make ()
77- ->label (__ ('Complaint ' ))
76+ 'complained ' => Tab::make ()
77+ ->label (__ ('Complained ' ))
7878 ->badgeColor ('warning ' )
7979 ->icon ('heroicon-o-exclamation-circle ' )
8080 ->badge (MailEvent::where ('type ' , EventType::COMPLAINED )->count ())
0 commit comments