FilamentF
Filament2y ago
Anik

badge in form placeholder

Hi, I am trying to display a xfilament badge inside a form placeholder. Any idea how can i achieve something like this?
  Forms\Components\Placeholder::make('kyc_status')
                ->label('KYC Status')
                ->content(new HtmlString('<div><x-filament::badge>'
                    . $this->record->status->getLabel() . '</x-filament::badge>
                    <br/>' . $this->record->status_feedback . '</div>')),
Was this page helpful?