public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->required()
->disabled()
->maxLength(255),
Forms\Components\TextInput::make('email')
->email()
->required()
->disabled()
->maxLength(255),
Forms\Components\TextInput::make('additionalDetail.user_type')
->label('User Type'),
Forms\Components\Fieldset::make('Address')
->relationship('additionalDetail')
->disabled()
->schema([
Forms\Components\TextInput::make('phone'),
Forms\Components\TextInput::make('city')
->label('City')
->maxLength(255),
Forms\Components\TextInput::make('user_type')
->label('User Type')
->maxLength(255),
]),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('name')
->required()
->disabled()
->maxLength(255),
Forms\Components\TextInput::make('email')
->email()
->required()
->disabled()
->maxLength(255),
Forms\Components\TextInput::make('additionalDetail.user_type')
->label('User Type'),
Forms\Components\Fieldset::make('Address')
->relationship('additionalDetail')
->disabled()
->schema([
Forms\Components\TextInput::make('phone'),
Forms\Components\TextInput::make('city')
->label('City')
->maxLength(255),
Forms\Components\TextInput::make('user_type')
->label('User Type')
->maxLength(255),
]),
]);
}