Customizing option label from select with relationship

Forms\Components\Select::make('product_id')
    ->label('Product')
    ->relationship('product', 'name', fn (Builder $query) => $query->withTrashed())
    ->searchable()

Since the relationship includes trashed products, how to modify the option label from e.g: Laptop to Laptop (archived)for trashed products?
Was this page helpful?