Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
48 lines
1.4 KiB
PHP
48 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Resources\Stylevars\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\IconColumn;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class StylevarsTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('id')
|
|
->label(__('admin.fields.id'))
|
|
->sortable(),
|
|
TextColumn::make('title')
|
|
->label(__('admin.fields.title'))
|
|
->searchable()
|
|
->sortable(),
|
|
TextColumn::make('value')
|
|
->label(__('admin.fields.value'))
|
|
->limit(60),
|
|
IconColumn::make('visible')
|
|
->label(__('admin.fields.visible'))
|
|
->boolean(),
|
|
TextColumn::make('updated_at')
|
|
->label(__('admin.fields.updated_at'))
|
|
->dateTime()
|
|
->sortable(),
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|