diff --git a/web/app/Filament/Resources/CustomerResource.php b/web/app/Filament/Resources/CustomerResource.php index 1a00e95..df67d70 100644 --- a/web/app/Filament/Resources/CustomerResource.php +++ b/web/app/Filament/Resources/CustomerResource.php @@ -33,8 +33,12 @@ class CustomerResource extends Resource $schema = []; if ($getPhyreServers->count() > 0) { $schema[] = Forms\Components\Select::make('phyre_server_id') + ->label('Server') ->options($phyreServers) ->default(0) + ->disabled(function($record) { + return $record->phyre_server_id > 0; + }) ->columnSpanFull(); } @@ -43,6 +47,7 @@ class CustomerResource extends Resource Forms\Components\TextInput::make('name') ->prefixIcon('heroicon-s-user') ->required()->columnSpanFull(), + Forms\Components\TextInput::make('username') ->unique(Customer::class, 'username', ignoreRecord: true) ->prefixIcon('heroicon-s-user')