components([ Section::make('Customer Information') ->schema([ TextInput::make('name') ->required() ->maxLength(255), TextInput::make('email') ->email() ->maxLength(255), TextInput::make('phone') ->tel() ->maxLength(255), Textarea::make('address') ->columnSpanFull(), Select::make('status') ->options([ 'active' => 'Active', 'inactive' => 'Inactive', ]) ->default('active') ->required(), ]) ->columns(2), Section::make('Owned Products') ->schema([ Select::make('products') ->relationship('products', 'name') ->multiple() ->preload() ->columnSpanFull(), ]), ]); } }