Phase 2: Implement Domain & Mailbox persistence, Analytics, and fix pagination issues

This commit is contained in:
idevakk
2026-03-05 20:19:30 +05:30
parent b981b6998f
commit 60b87a3609
23 changed files with 1037 additions and 256 deletions

View 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),
]);
}
}