Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
55 lines
1.7 KiB
PHP
55 lines
1.7 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Filament\Resources\Users\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
|
|
class UsersTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
TextColumn::make('id')
|
|
->label(__('admin.fields.id'))
|
|
->sortable(),
|
|
TextColumn::make('username')
|
|
->label(__('admin.fields.username'))
|
|
->searchable()
|
|
->sortable(),
|
|
TextColumn::make('name')
|
|
->label(__('admin.fields.display_name'))
|
|
->searchable(),
|
|
TextColumn::make('email')
|
|
->label(__('admin.fields.email'))
|
|
->searchable(),
|
|
TextColumn::make('roles.name')
|
|
->badge()
|
|
->label(__('admin.fields.roles')),
|
|
TextColumn::make('login_at')
|
|
->label(__('admin.fields.login_at'))
|
|
->dateTime()
|
|
->sortable(),
|
|
TextColumn::make('created_at')
|
|
->label(__('admin.fields.created_at'))
|
|
->dateTime()
|
|
->sortable()
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|