35 lines
867 B
PHP
35 lines
867 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Filament\Resources\Changes\Tables;
|
||
|
|
|
||
|
|
use Filament\Actions\BulkActionGroup;
|
||
|
|
use Filament\Actions\DeleteBulkAction;
|
||
|
|
use Filament\Tables\Columns\TextColumn;
|
||
|
|
use Filament\Tables\Table;
|
||
|
|
|
||
|
|
class ChangesTable
|
||
|
|
{
|
||
|
|
public static function configure(Table $table): Table
|
||
|
|
{
|
||
|
|
return $table
|
||
|
|
->columns([
|
||
|
|
TextColumn::make('note')
|
||
|
|
->label('Note')
|
||
|
|
->wrap(),
|
||
|
|
TextColumn::make('type')
|
||
|
|
->label('Type'),
|
||
|
|
TextColumn::make('user.name')
|
||
|
|
->label('User'),
|
||
|
|
])
|
||
|
|
->filters([
|
||
|
|
//
|
||
|
|
])
|
||
|
|
->recordActions([])
|
||
|
|
->toolbarActions([
|
||
|
|
BulkActionGroup::make([
|
||
|
|
DeleteBulkAction::make(),
|
||
|
|
]),
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|