schema([ Tabs::make('Tabs') ->columns(4) ->persistTabInQueryString() ->columnSpanFull() ->tabs([ Tabs\Tab::make('Basic Settings') ->icon('tabler-server') ->schema((new CreateNode())->form($form)->getComponents()), Tabs\Tab::make('Advanced Settings') ->icon('tabler-server-cog'), Tabs\Tab::make('Configuration') ->icon('tabler-code') ->schema([ Forms\Components\Placeholder::make('instructions') ->columnSpanFull() ->content(new HtmlString(' This file should be placed in your daemon\'s root directory (usually /etc/pelican) in a file called config.yml. ')), Forms\Components\Textarea::make('config') ->label('Configuration File') ->disabled() ->rows(19) ->hintAction(CopyAction::make()) ->columnSpanFull(), ]), Tabs\Tab::make('Allocations') ->icon('tabler-plug-connected') ->schema([ // ... ]), ]) ]); } protected function mutateFormDataBeforeFill(array $data): array { $node = Node::findOrFail($data['id']); $data['config'] = $node->getYamlConfiguration(); return $data; } protected function getSteps(): array { return [ ]; } protected function getHeaderActions(): array { return [ Actions\DeleteAction::make(), ]; } }