Enhance category and timeline entry forms with icon selection options; update image display settings for hero slides, products, and signature items to use circular images. Improve welcome page layout for better responsiveness and add autoplay functionality to the hero carousel.
This commit is contained in:
@@ -9,6 +9,7 @@ use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Resources\Resource;
|
||||
@@ -42,11 +43,24 @@ class CategoryResource extends Resource
|
||||
->label('Slug')
|
||||
->required()
|
||||
->unique(ignoreRecord: true),
|
||||
TextInput::make('icon')
|
||||
->label('Material Symbol ikony')
|
||||
Select::make('icon')
|
||||
->label('Ikony (Material Symbol)')
|
||||
->required()
|
||||
->default('category')
|
||||
->placeholder('set_meal'),
|
||||
->options([
|
||||
'set_meal' => 'set_meal — Nahar toplum',
|
||||
'cruelty_free' => 'cruelty_free — Goýun eti',
|
||||
'kebab_dining' => 'kebab_dining — Kebab / Goş',
|
||||
'egg' => 'egg — Guş eti',
|
||||
'local_pizza' => 'local_pizza — Kolbasalar',
|
||||
'lunch_dining' => 'lunch_dining — Et tagamy',
|
||||
'outdoor_grill' => 'outdoor_grill — Grill',
|
||||
'restaurant_menu' => 'restaurant_menu — Menýu',
|
||||
'food_bank' => 'food_bank — Azyk ammar',
|
||||
'category' => 'category — Kategoriýa',
|
||||
'bakery_dining' => 'bakery_dining — Çörek',
|
||||
'fastfood' => 'fastfood — Çalt nahar',
|
||||
]),
|
||||
TextInput::make('sort_order')
|
||||
->label('Tertip')
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user