Skip to content

Commit

Permalink
Merge pull request #64 from timurmelnikov/main
Browse files Browse the repository at this point in the history
Fixed missing "gender" field when adding a customer
  • Loading branch information
zepfietje authored May 5, 2023
2 parents 45cb6d3 + 295d5fd commit 8657688
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Filament/Resources/Shop/OrderResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ public static function getFormSchema(?string $section = null): array
->unique(),

Forms\Components\TextInput::make('phone'),

Forms\Components\Select::make('gender')
->placeholder('Select gender')
->options([
'male' => 'Male',
'female' => 'Female',
])
->required(),
])
->createOptionAction(function (Forms\Components\Actions\Action $action) {
return $action
Expand Down

0 comments on commit 8657688

Please sign in to comment.