Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
62 lines
2.0 KiB
PHP
62 lines
2.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Resources\Comments\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class CommentsTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('article.title')
|
|
->label(__('admin.fields.article'))
|
|
->searchable(),
|
|
TextColumn::make('author')
|
|
->label(__('admin.fields.author'))
|
|
->searchable(),
|
|
TextColumn::make('url')
|
|
->label(__('admin.fields.url'))
|
|
->searchable(),
|
|
TextColumn::make('ip')
|
|
->label(__('admin.fields.ip'))
|
|
->searchable(),
|
|
TextColumn::make('moderation_status')
|
|
->label(__('admin.fields.moderation_status'))
|
|
->searchable(),
|
|
TextColumn::make('published_at')
|
|
->label(__('admin.fields.published_at'))
|
|
->dateTime()
|
|
->sortable(),
|
|
TextColumn::make('created_at')
|
|
->label(__('admin.fields.created_at'))
|
|
->dateTime()
|
|
->sortable()
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
TextColumn::make('updated_at')
|
|
->label(__('admin.fields.updated_at'))
|
|
->dateTime()
|
|
->sortable()
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|