42 lines
1.3 KiB
PHP
42 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Kontos\Tables;
|
|
|
|
use Filament\Actions\BulkActionGroup;
|
|
use Filament\Actions\DeleteBulkAction;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Tables\Columns\TextColumn;
|
|
use Filament\Tables\Table;
|
|
use Ysfkaya\FilamentPhoneInput\PhoneInputNumberType;
|
|
use Ysfkaya\FilamentPhoneInput\Tables\PhoneColumn;
|
|
|
|
class KontosTable
|
|
{
|
|
public static function configure(Table $table): Table
|
|
{
|
|
return $table
|
|
->columns([
|
|
// TextColumn::make('id'),
|
|
TextColumn::make('konto_gender')->label('Geschlecht'),
|
|
TextColumn::make('konto_title')->label('Title'),
|
|
TextColumn::make('konto_first_name')->label('Vorname'),
|
|
TextColumn::make('konto_last_name')->label('Nachname'),
|
|
TextColumn::make('konto_company')->label('Firma'),
|
|
PhoneColumn::make('konto_phone')
|
|
->label('Telefon')
|
|
->displayFormat(PhoneInputNumberType::INTERNATIONAL),
|
|
])
|
|
->filters([
|
|
//
|
|
])
|
|
->recordActions([
|
|
EditAction::make(),
|
|
])
|
|
->toolbarActions([
|
|
BulkActionGroup::make([
|
|
DeleteBulkAction::make(),
|
|
]),
|
|
]);
|
|
}
|
|
}
|