components([ Tabs::make('Tabs') ->tabs([ Tab::make('Firmenname') ->icon('lucide-stamp') ->schema([ TextInput::make('company') ->label('Firma') ->required(), RichEditor::make('address') ->extraInputAttributes(['id' => 'gutrte', 'style' => 'min-height: 20rem; max-height: 50vh; overflow-y: auto;']) ->toolbarButtons([ ['bold', 'italic', 'underline', 'horizontalRule', 'clearFormatting'], ['h1', 'h2', 'h3', 'alignStart', 'alignCenter', 'alignEnd', 'alignJustify'], ['undo', 'redo', 'textColor'], ]) ->textColors([ '#fb2c36' => 'Rot', '#ff6900' => 'Orange', '#fe9a00' => 'Bernstein', '#f0b100' => 'Gelb', '#7ccf00' => 'Limette', '#00c950' => 'Grün', '#00bc7d' => 'Smaragd', '#00bba7' => 'Blaugrün', '#00b8db' => 'Cyan', '#00a6f4' => 'Himmelblau', '#2b7fff' => 'Blau', '#615fff' => 'Indigo', '#8e51ff' => 'Violett', '#ad46ff' => 'Lila', '#e12afb' => 'Fuchisa', '#f6339a' => 'Rosa', '#ff2056' => 'Rose', '#a6a09b' => 'Steingrau Hell', '#44403b' => 'Steingrau Dunkel', '#cad5e2' => 'Schiefer Hell', '#314158' => 'Schiefer Dunkel', ]) ->label('Adresse') ->required(), ]), Tab::make('Gutachter') ->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', ]) ->disk('public') ->directory('gutachter-logo') ->visibility('public') ->label('Logo'), ]), Tab::make('Anzeige Im Gutachten') ->icon('phosphor-eye') ->inlineLabel() ->schema([ CheckboxList::make('kopf') ->Label('Bitte auswählen') ->options([ 'logo' => '
Logo
', 'firma' => '
Firmename
', 'adresse' => '
Adresse
', 'name' => '
Gutachter
', ]) ->allowHtml() ->columnSpanFull(), ]), ])->columnSpanFull(), ]); } }