protected function getSteps(): array
{
return [
Step::make('User Details')
->icon('heroicon-o-user-plus')
->schema([
// Section::make()->schema(),
]),
Step::make('Profile Details')
->icon('heroicon-o-user')
->schema([
Forms\Components\Group::make()
->schema([
Forms\Components\Section::make()
->schema(AgentResource::getFormSchema(['profile']))->columns(2),
Forms\Components\Section::make('Company Details')
->schema(AgentResource::getFormSchema(['company']))
->hidden(fn (Get $get): bool => !$get('is_company'))
->columns(2),
Forms\Components\Section::make('Company Tax Details')
->schema(AgentResource::getFormSchema(['company-tax']))
->hidden(fn (Get $get): bool => !$get('is_company'))
->columns(2),
])
])->columns(3),
];
}
protected function getSteps(): array
{
return [
Step::make('User Details')
->icon('heroicon-o-user-plus')
->schema([
// Section::make()->schema(),
]),
Step::make('Profile Details')
->icon('heroicon-o-user')
->schema([
Forms\Components\Group::make()
->schema([
Forms\Components\Section::make()
->schema(AgentResource::getFormSchema(['profile']))->columns(2),
Forms\Components\Section::make('Company Details')
->schema(AgentResource::getFormSchema(['company']))
->hidden(fn (Get $get): bool => !$get('is_company'))
->columns(2),
Forms\Components\Section::make('Company Tax Details')
->schema(AgentResource::getFormSchema(['company-tax']))
->hidden(fn (Get $get): bool => !$get('is_company'))
->columns(2),
])
])->columns(3),
];
}