public static function form(Form $form): Form
{
return $form
->schema([
Section::make('Dados Gerais')
->icon('heroicon-o-document-text')
->schema([
Select::make('user_id')
->label('Responsável')
->relationship('user', 'name')
->required(),
TextInput::make('nome')
->label('Nome Academia')
->required()
->maxLength(255),
TextInput::make('cnpj')
->label('CNPJ')
->mask('99.999.999/9999-99')
->placeholder('99.999.999/9999-99')
->required()
->maxLength(18)
]),
// other methods
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Section::make('Dados Gerais')
->icon('heroicon-o-document-text')
->schema([
Select::make('user_id')
->label('Responsável')
->relationship('user', 'name')
->required(),
TextInput::make('nome')
->label('Nome Academia')
->required()
->maxLength(255),
TextInput::make('cnpj')
->label('CNPJ')
->mask('99.999.999/9999-99')
->placeholder('99.999.999/9999-99')
->required()
->maxLength(18)
]),
// other methods
]);
}