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()
|
||||
|
||||
@@ -73,7 +73,8 @@ class HeroSlideResource extends Resource
|
||||
->columns([
|
||||
ImageColumn::make('image')
|
||||
->label('Surat')
|
||||
->square(),
|
||||
->disk('public')
|
||||
->circular(),
|
||||
TextColumn::make('headline')
|
||||
->label('Sözbaşy')
|
||||
->searchable()
|
||||
|
||||
@@ -98,7 +98,9 @@ class ProductResource extends Resource
|
||||
->columns([
|
||||
ImageColumn::make('image')
|
||||
->label('Surat')
|
||||
->square(),
|
||||
->disk('public')
|
||||
->circular(),
|
||||
|
||||
TextColumn::make('name')
|
||||
->label('Ady')
|
||||
->searchable(),
|
||||
|
||||
@@ -76,7 +76,8 @@ class SignatureItemResource extends Resource
|
||||
->columns([
|
||||
ImageColumn::make('image')
|
||||
->label('Surat')
|
||||
->square(),
|
||||
->disk('public')
|
||||
->circular(),
|
||||
TextColumn::make('name')
|
||||
->label('Ady')
|
||||
->searchable(),
|
||||
|
||||
@@ -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\Textarea;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Resources\Resource;
|
||||
@@ -42,11 +43,24 @@ class TimelineEntryResource extends Resource
|
||||
TextInput::make('title')
|
||||
->label('Başlyk')
|
||||
->required(),
|
||||
TextInput::make('icon')
|
||||
->label('Material Symbol ikony')
|
||||
Select::make('icon')
|
||||
->label('Ikony (Material Symbol)')
|
||||
->required()
|
||||
->default('history')
|
||||
->placeholder('storefront'),
|
||||
->options([
|
||||
'storefront' => 'storefront — Dükançasy',
|
||||
'outdoor_grill' => 'outdoor_grill — Tüsse otagy',
|
||||
'local_shipping' => 'local_shipping — Eltip bermek',
|
||||
'menu_book' => 'menu_book — Resept kitaby',
|
||||
'history' => 'history — Taryh',
|
||||
'star' => 'star — Ýyldyz',
|
||||
'emoji_events' => 'emoji_events — Baýrak',
|
||||
'workspace_premium' => 'workspace_premium — Premium',
|
||||
'factory' => 'factory — Zawod',
|
||||
'engineering' => 'engineering — Inžinerlik',
|
||||
'handyman' => 'handyman — Usta',
|
||||
'lightbulb' => 'lightbulb — Täze pikir',
|
||||
]),
|
||||
TextInput::make('sort_order')
|
||||
->label('Tertip')
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user