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:
Mekan1206
2026-06-04 22:46:45 +05:00
parent 06d2999c74
commit 21dadc7eac
2 changed files with 20 additions and 3 deletions

View File

@@ -15,8 +15,25 @@ class CategoryForm
TextInput::make('name') TextInput::make('name')
->label('Ady') ->label('Ady')
->required(), ->required(),
TextInput::make('icon') Select::make('icon')
->label('Ikonkasy'), ->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') TextInput::make('order')
->label('Tertibi') ->label('Tertibi')
->required() ->required()

View File

@@ -26,6 +26,6 @@ class DatabaseSeeder extends Seeder
]); ]);
} }
$this->call(DemoSeeder::class); // $this->call(DemoSeeder::class);
} }
} }