This commit is contained in:
Bozhidar 2024-09-19 12:10:03 +03:00
parent 17bf284b30
commit 285adb3674
4 changed files with 14 additions and 2 deletions

View file

@ -14,4 +14,6 @@ class EmailSettings extends Page
protected static ?string $navigationLabel = 'Settings';
protected static ?int $navigationSort = 4;
}

View file

@ -22,6 +22,8 @@ class EmailBoxResource extends Resource
protected static ?string $navigationGroup = 'Email';
protected static ?int $navigationSort = 0;
public static function form(Form $form): Form
{
return $form
@ -93,7 +95,7 @@ class EmailBoxResource extends Resource
Tables\Columns\TextColumn::make('name')
->searchable()
->sortable(),
Tables\Columns\TextColumn::make('quota')
Tables\Columns\TextColumn::make('quotaFormated')
->searchable()
->sortable(),
])

View file

@ -33,6 +33,15 @@ class EmailBox extends Model
];
public function getQuotaFormatedAttribute()
{
if ($this->quota == 0) {
return 'Unlimited';
}
return $this->quota . ' MB';
}
public function getEmailAttribute()
{
return $this->username . '@' . $this->domain;

1
web/composer.lock generated
View file

@ -4428,7 +4428,6 @@
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/microweber-packages/shared-server-scripts/zipball/159879db147f4a69f8a5f6797b57312bee869df0",
"reference": "159879db147f4a69f8a5f6797b57312bee869df0",
"shasum": ""
},