Skip to content

Commit ea3d988

Browse files
committed
reorder unsent tab and add complained
1 parent 86a1bab commit ea3d988

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/Resources/MailResource/Pages/ListMails.php

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ public function getTabs(): array
4040
->icon('heroicon-o-inbox')
4141
->badge($class::count()),
4242

43+
'unsent' => Tab::make()
44+
->label(__('Unsent'))
45+
->badgeColor('gray')
46+
->icon('heroicon-o-x-circle')
47+
->badge($class::unsent()->count())
48+
->modifyQueryUsing(function (Builder $query) use ($class): Builder {
49+
return $class->unsent();
50+
}),
51+
4352
'sent' => Tab::make()
4453
->label(__('Sent'))
4554
->badgeColor('info')
@@ -88,13 +97,13 @@ public function getTabs(): array
8897
});
8998
}),
9099

91-
'unsent' => Tab::make()
92-
->label(__('Unsent'))
100+
'complained' => Tab::make()
101+
->label(__('Complained'))
93102
->badgeColor('gray')
94103
->icon('heroicon-o-x-circle')
95-
->badge($class::unsent()->count())
104+
->badge($class::complained()->count())
96105
->modifyQueryUsing(function (Builder $query) use ($class): Builder {
97-
return $class->unsent();
106+
return $class->complained();
98107
}),
99108
];
100109
}

0 commit comments

Comments
 (0)