components([ Tabs::make('Tabs') ->tabs([ Tab::make('Firmenname') ->icon('lucide-stamp') ->inlineLabel() ->schema([ TextInput::make('company') ->label('Firma') ->required(), Textarea::make('address') ->label('Adresse') ->required(), TextInput::make('country') ->label('Land') ->default('Österreich') ->required(), ]), Tab::make('Kontaktperson') ->icon('lucide-contact') ->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') ->required() ->prefixIcon(Heroicon::Envelope), PhoneInput::make('phone') ->label('Telefon') ->defaultCountry('AT'), ]), Tab::make('Logo') ->icon('phosphor-squares-four') ->inlineLabel() ->schema([ FileUpload::make('logo') ->image() ->imageEditor() ->imageEditorAspectRatios([ null, '16:9', '4:3', '1:1', ]) ->directory('gutachter-logo') ->label('Gutachter Logo'), ]), Tab::make('Anzeige Im Gutachten') ->icon('phosphor-eye') ->inlineLabel() ->schema([ CheckboxList::make('kopf') ->Label('Bitte auswählen') ->options([ 'logo' => '
Logo des Gutachters
', 'firma' => '
Firma mit Adresse
', 'name' => '
Name des Gutachters
', ]) ->allowHtml() ->columnSpanFull(), ]), ])->columnSpanFull(), ]); } }