Phase 2: Implement Domain & Mailbox persistence, Analytics, and fix pagination issues
This commit is contained in:
34
app/Filament/Resources/Domains/Schemas/DomainForm.php
Normal file
34
app/Filament/Resources/Domains/Schemas/DomainForm.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Domains\Schemas;
|
||||
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Schemas\Schema;
|
||||
|
||||
class DomainForm
|
||||
{
|
||||
public static function configure(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name')
|
||||
->required()
|
||||
->unique(ignoreRecord: true)
|
||||
->placeholder('e.g., imail.com'),
|
||||
\Filament\Forms\Components\Select::make('allowed_types')
|
||||
->multiple()
|
||||
->options([
|
||||
'public' => 'Public',
|
||||
'private' => 'Private',
|
||||
'custom' => 'Custom',
|
||||
'premium' => 'Premium',
|
||||
])
|
||||
->required(),
|
||||
Toggle::make('is_active')
|
||||
->default(true),
|
||||
Toggle::make('is_archived')
|
||||
->default(false),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user