components([ ImageRadioGroup::make('plan_id') ->animation(true) ->disk('promotion') ->label('Plan') ->required() ->columnSpanFull() ->options(fn () => Plan::pluck('promotion', 'id')->toArray()), Section::make('Firma') ->inlineLabel() ->schema([ TextInput::make('company') ->label('Firma') ->required(), TextInput::make('uid_number') ->label('UID Nummer') ->rules([new VatNumber]) ->required(), Textarea::make('address') ->label('Adresse') ->required(), TextInput::make('country') ->label('Land') ->default('Österreich') ->required(), ])->columnSpanFull(), Section::make('Kontaktperson') ->inlineLabel() ->schema([ TextInput::make('title') ->label('Title') ->required(), Select::make('gender') ->label('Geschlecht') ->options([ 'Herr' => 'Herr', 'Frau' => 'Frau', 'Non-binary' => 'Non-binary', ]) ->required(), TextInput::make('name') ->label('Name') ->required(), TextInput::make('email') ->label('E-Mail') ->unique(table: Konto::class) ->required(), PhoneInput::make('phone') ->label('Telefon') ->defaultCountry('AT'), ])->columnSpanFull(), ]); } }