Update CategoryForm to use Select for icon selection and modify DatabaseSeeder to comment out DemoSeeder call
- Replaced TextInput for 'icon' with a searchable Select input featuring various icon options. - Commented out the call to DemoSeeder in DatabaseSeeder to prevent execution during seeding.
This commit is contained in:
@@ -15,8 +15,25 @@ class CategoryForm
|
||||
TextInput::make('name')
|
||||
->label('Ady')
|
||||
->required(),
|
||||
TextInput::make('icon')
|
||||
->label('Ikonkasy'),
|
||||
Select::make('icon')
|
||||
->label('Ikonkasy')
|
||||
->options([
|
||||
'cake' => 'Tort (Cake)',
|
||||
'bakery_dining' => 'Çörek (Bakery)',
|
||||
'local_cafe' => 'Kofe (Cafe)',
|
||||
'icecream' => 'Doňdurma (Ice Cream)',
|
||||
'cookie' => 'Köke (Cookie)',
|
||||
'emoji_food_beverage' => 'Içgi (Beverage)',
|
||||
'restaurant' => 'Restoran (Restaurant)',
|
||||
'restaurant_menu' => 'Menýu (Menu)',
|
||||
'local_dining' => 'Nahar (Dining)',
|
||||
'celebration' => 'Baýramçylyk (Celebration)',
|
||||
'star' => 'Ýyldyz (Star)',
|
||||
'favorite' => 'Halanýan (Favorite)',
|
||||
'redeem' => 'Sowgat (Gift)',
|
||||
'local_mall' => 'Söwda (Shopping)',
|
||||
])
|
||||
->searchable(),
|
||||
TextInput::make('order')
|
||||
->label('Tertibi')
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user