© 2026 Hedgehog Software, LLC
Section::make('Customer type and company') ->schema([ Radio::make('customer_type') ->label('Customer type') ->options(CustomerType::class) ->default(CustomerType::PRIVATE) ->inline() ->live() ->columnSpan(1), Select::make('company_id') ->visible(fn ( Get $get) => $get('customer_type') === CustomerType::BUSINESS) ->relationship(name: 'companies', titleAttribute: 'name') ->preload() ->multiple() ->native(false) ->searchable() ->columnSpan(2), ])->columns(2),
$get('customer_type') === CustomerType::BUSINESS->value