Files
hoshal-market/app/Filament/Resources/CarouselSlides/CarouselSlideResource.php
Mekan1206 6ea6701963 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.
2026-06-04 22:15:18 +05:00

53 lines
1.5 KiB
PHP

<?php
namespace App\Filament\Resources\CarouselSlides;
use App\Filament\Resources\CarouselSlides\Pages\CreateCarouselSlide;
use App\Filament\Resources\CarouselSlides\Pages\EditCarouselSlide;
use App\Filament\Resources\CarouselSlides\Pages\ListCarouselSlides;
use App\Filament\Resources\CarouselSlides\Schemas\CarouselSlideForm;
use App\Filament\Resources\CarouselSlides\Tables\CarouselSlidesTable;
use App\Models\CarouselSlide;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
class CarouselSlideResource extends Resource
{
protected static ?string $model = CarouselSlide::class;
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
{
return CarouselSlideForm::configure($schema);
}
public static function table(Table $table): Table
{
return CarouselSlidesTable::configure($table);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => ListCarouselSlides::route('/'),
'create' => CreateCarouselSlide::route('/create'),
'edit' => EditCarouselSlide::route('/{record}/edit'),
];
}
}