Refactor and localize settings and resources
- Updated GeneralSettings page to include localized labels and structured sections for better organization. - Enhanced CarouselSlide, Category, Collection, and Product resources with localized model labels and improved form/table configurations. - Modified HomeController to utilize query builder for better performance and added collection items retrieval. - Updated views to reflect localized settings and improved layout for collections and footer. - Adjusted timezone and locale settings in app configuration for better regional support.
This commit is contained in:
@@ -18,7 +18,11 @@ class CarouselSlideResource extends Resource
|
||||
{
|
||||
protected static ?string $model = CarouselSlide::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
||||
protected static ?string $modelLabel = 'Karusel';
|
||||
|
||||
protected static ?string $pluralModelLabel = 'Karuseller';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'heroicon-o-photo';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
@@ -14,17 +14,22 @@ class CarouselSlideForm
|
||||
return $schema
|
||||
->components([
|
||||
FileUpload::make('image')
|
||||
->label('Surat')
|
||||
->image()
|
||||
->visibility('public')
|
||||
->required(),
|
||||
|
||||
TextInput::make('title'),
|
||||
TextInput::make('subtitle'),
|
||||
TextInput::make('title')
|
||||
->label('Sözbaşy'),
|
||||
TextInput::make('subtitle')
|
||||
->label('Sözbaşy asty'),
|
||||
TextInput::make('order')
|
||||
->label('Tertibi')
|
||||
->required()
|
||||
->numeric()
|
||||
->default(0),
|
||||
Toggle::make('is_active')
|
||||
->label('Işjeňmi')
|
||||
->default(true)
|
||||
->required(),
|
||||
]);
|
||||
|
||||
@@ -16,21 +16,28 @@ class CarouselSlidesTable
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
ImageColumn::make('image'),
|
||||
ImageColumn::make('image')
|
||||
->label('Surat'),
|
||||
TextColumn::make('title')
|
||||
->label('Sözbaşy')
|
||||
->searchable(),
|
||||
TextColumn::make('subtitle')
|
||||
->label('Sözbaşy asty')
|
||||
->searchable(),
|
||||
TextColumn::make('order')
|
||||
->label('Tertibi')
|
||||
->numeric()
|
||||
->sortable(),
|
||||
IconColumn::make('is_active')
|
||||
->label('Işjeňmi')
|
||||
->boolean(),
|
||||
TextColumn::make('created_at')
|
||||
->label('Döredilen wagty')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('updated_at')
|
||||
->label('Üýtgedilen wagty')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
|
||||
Reference in New Issue
Block a user