From 114a8c047c6889bdc23f6a8fee7e77e312766efd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Cmit=20Tun=C3=A7?= Date: Tue, 4 Nov 2025 15:16:27 -0300 Subject: [PATCH] Refactor PagesTable: Removed the featured image column and replaced it with a text column for the title. This change simplifies the table structure and enhances the overall layout by focusing on essential information. --- .../Admin/Resources/Pages/Tables/PagesTable.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/app/Filament/Admin/Resources/Pages/Tables/PagesTable.php b/app/Filament/Admin/Resources/Pages/Tables/PagesTable.php index 98f08e3..769df06 100644 --- a/app/Filament/Admin/Resources/Pages/Tables/PagesTable.php +++ b/app/Filament/Admin/Resources/Pages/Tables/PagesTable.php @@ -21,22 +21,7 @@ class PagesTable { return $table ->columns([ - TextColumn::make('featured_image') - ->label(__('pages.table_column_featured_image')) - ->formatStateUsing(function ($state, $record) { - // Eğer featured_image varsa image göster - if ($record->featured_image_url) { - return ''; - } - - // Yoksa Heroicon page icon'unu göster (dark mode'da beyaz, light mode'da siyah) - $svgIcon = ''; - - return '
' . $svgIcon . '
'; - }) - ->html() - ->alignCenter(), - + TextColumn::make('title') ->label(__('pages.table_column_title')) ->searchable()