Skip to content

Commit 285adb3

Browse files
update
1 parent 17bf284 commit 285adb3

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

web/Modules/Email/App/Filament/Pages/EmailSettings.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@ class EmailSettings extends Page
1414

1515
protected static ?string $navigationLabel = 'Settings';
1616

17+
protected static ?int $navigationSort = 4;
18+
1719
}

web/Modules/Email/App/Filament/Resources/EmailBoxResource.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class EmailBoxResource extends Resource
2222

2323
protected static ?string $navigationGroup = 'Email';
2424

25+
protected static ?int $navigationSort = 0;
26+
2527
public static function form(Form $form): Form
2628
{
2729
return $form
@@ -93,7 +95,7 @@ public static function table(Table $table): Table
9395
Tables\Columns\TextColumn::make('name')
9496
->searchable()
9597
->sortable(),
96-
Tables\Columns\TextColumn::make('quota')
98+
Tables\Columns\TextColumn::make('quotaFormated')
9799
->searchable()
98100
->sortable(),
99101
])

web/Modules/Email/App/Models/EmailBox.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ class EmailBox extends Model
3333
];
3434

3535

36+
public function getQuotaFormatedAttribute()
37+
{
38+
if ($this->quota == 0) {
39+
return 'Unlimited';
40+
}
41+
42+
return $this->quota . ' MB';
43+
}
44+
3645
public function getEmailAttribute()
3746
{
3847
return $this->username . '@' . $this->domain;

web/composer.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)