Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa authored and github-actions[bot] committed Dec 27, 2024
1 parent 63233c8 commit d78ad3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Resources/MailResource/Pages/ListMails.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Illuminate\Database\Eloquent\Builder;
use Vormkracht10\FilamentMails\Resources\MailResource;
use Vormkracht10\FilamentMails\Resources\MailResource\Widgets\MailStatsWidget;
use Vormkracht10\Mails\Models\Mail;

class ListMails extends ListRecords
{
Expand All @@ -26,7 +25,7 @@ protected function getActions(): array
public function getTabs(): array
{
$class = config('mails.models.mail');

return [
'all' => Tab::make()
->label(__('All'))
Expand Down
3 changes: 1 addition & 2 deletions src/Resources/MailResource/Widgets/MailStatsWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Filament\Widgets\StatsOverviewWidget as BaseWidget;
use Filament\Widgets\StatsOverviewWidget\Stat;
use Vormkracht10\Mails\Models\Mail;

class MailStatsWidget extends BaseWidget
{
Expand All @@ -15,7 +14,7 @@ class MailStatsWidget extends BaseWidget
protected function getStats(): array
{
$class = config('mails.models.mail');

$bouncedMails = $class::where(fn ($query) => $query->softBounced()->orWhere(fn ($query) => $query->hardBounced()))->count();
$openedMails = $class::opened()->count();
$deliveredMails = $class::delivered()->count();
Expand Down

0 comments on commit d78ad3d

Please sign in to comment.