schema([ Section::make() ->heading('Installing Server') ->icon(function () { if ($this->server->isInstallationFailed()) { return 'heroicon-o-x-circle'; } return view('filament::components.loading-indicator') ->with('attributes', new ComponentAttributeBag([ 'class' => 'mr-2 size-[24px] text-primary-400', ])); }) ->iconColor($this->server->isInstallationFailed() ? 'danger' : 'primary') ->schema([ ViewEntry::make('progress') ->hiddenLabel() ->view('components.progress-bar') ->viewData([ 'value' => $this->server->progress, ]), ]), ]) ->record($this->server->refresh()); } }