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

58 lines
1.8 KiB
PHP

<?php
namespace App\Filament\Resources\CarouselSlides\Tables;
use Filament\Actions\BulkActionGroup;
use Filament\Actions\DeleteBulkAction;
use Filament\Actions\EditAction;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Table;
class CarouselSlidesTable
{
public static function configure(Table $table): Table
{
return $table
->columns([
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),
])
->filters([
//
])
->recordActions([
EditAction::make(),
])
->toolbarActions([
BulkActionGroup::make([
DeleteBulkAction::make(),
]),
]);
}
}