TextInput::make('length') ->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true), TextInput::make('width') ->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->circular: true), TextInput::make('diametre') ->hidden(fn(\Filament\Forms\Get $get) => $get('type_infrastructure_id') ? TypeInfrastructure::find($get('type_infrastructure_id'))->surface : true), TextInput::make('depth') ->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume), TextInput::make('level') ->hidden(fn(\Filament\Forms\Get $get) => !$get('type_infrastructure_id') || !TypeInfrastructure::find($get('type_infrastructure_id'))->volume) ->suffix('%') ->default(100),