Files
hoshal-market/app/Filament/Resources/CarouselSlides/Schemas/CarouselSlideForm.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

38 lines
1.1 KiB
PHP

<?php
namespace App\Filament\Resources\CarouselSlides\Schemas;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Schema;
class CarouselSlideForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->components([
FileUpload::make('image')
->label('Surat')
->image()
->visibility('public')
->required(),
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(),
]);
}
}