mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-25 09:00:27 +00:00
update
This commit is contained in:
parent
17bf284b30
commit
285adb3674
4 changed files with 14 additions and 2 deletions
|
@ -14,4 +14,6 @@ class EmailSettings extends Page
|
|||
|
||||
protected static ?string $navigationLabel = 'Settings';
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
}
|
||||
|
|
|
@ -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(),
|
||||
])
|
||||
|
|
|
@ -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
1
web/composer.lock
generated
|
@ -4428,7 +4428,6 @@
|
|||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/microweber-packages/shared-server-scripts/zipball/159879db147f4a69f8a5f6797b57312bee869df0",
|
||||
"reference": "159879db147f4a69f8a5f6797b57312bee869df0",
|
||||
"shasum": ""
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue