2025-10-22 17:09:48 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Filament\Resources\Services\Tables;
|
|
|
|
|
|
|
|
|
|
use App\Models\Service;
|
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
|
|
|
use Filament\Actions\DeleteBulkAction;
|
|
|
|
|
use Filament\Actions\EditAction;
|
2025-10-24 14:09:54 +02:00
|
|
|
use Filament\Support\Icons\Heroicon;
|
|
|
|
|
use Filament\Tables\Columns\IconColumn;
|
2025-10-22 17:09:48 +02:00
|
|
|
use Filament\Tables\Columns\TextColumn;
|
|
|
|
|
use Filament\Tables\Table;
|
|
|
|
|
|
|
|
|
|
class ServicesTable
|
|
|
|
|
{
|
|
|
|
|
public static function configure(Table $table): Table
|
|
|
|
|
{
|
|
|
|
|
return $table
|
|
|
|
|
->columns([
|
|
|
|
|
TextColumn::make('name')
|
|
|
|
|
->label(Service::getAttributeLabel('name'))
|
|
|
|
|
->searchable(),
|
|
|
|
|
TextColumn::make('identifier')
|
|
|
|
|
->label(Service::getAttributeLabel('identifier'))
|
|
|
|
|
->searchable(),
|
|
|
|
|
TextColumn::make('icon')
|
|
|
|
|
->searchable(),
|
|
|
|
|
TextColumn::make('created_at')
|
|
|
|
|
->dateTime()
|
|
|
|
|
->sortable()
|
|
|
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
|
|
|
TextColumn::make('updated_at')
|
|
|
|
|
->dateTime()
|
|
|
|
|
->sortable()
|
|
|
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
|
|
|
TextColumn::make('deleted_at')
|
|
|
|
|
->dateTime()
|
|
|
|
|
->sortable()
|
|
|
|
|
->toggleable(isToggledHiddenByDefault: true),
|
|
|
|
|
])
|
|
|
|
|
->filters([
|
|
|
|
|
//
|
|
|
|
|
])
|
|
|
|
|
->recordActions([
|
|
|
|
|
EditAction::make(),
|
|
|
|
|
])
|
|
|
|
|
->toolbarActions([
|
|
|
|
|
BulkActionGroup::make([
|
|
|
|
|
DeleteBulkAction::make(),
|
|
|
|
|
]),
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|