refactoring into clusters
This commit is contained in:
1 parent
042a5a8b58
commit
48deb69379
97 files changed
+186
-198
No files matched your search
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Clusters\Newsletter\MailGruppens\Tables;
|
||||
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class MailGruppensTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('id'),
|
||||
TextColumn::make('name')->label('Betreff'),
|
||||
TextColumn::make('absender_name')->label('Absender Name'),
|
||||
TextColumn::make('absender_mail')
|
||||
->icon(Heroicon::Envelope)
|
||||
->iconColor('primary')
|
||||
->label('Absender E-Mail'),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton(),
|
||||
DeleteAction::make()->iconButton()
|
||||
->requiresConfirmation()
|
||||
->modalHeading('Adressen Gruppe')
|
||||
->modalDescription('Alle Mail Adressen die sich in dieser Gruppe befinden werden auch gelöscht. Dies kann nicht mehr rückgängig gemacht werden.')
|
||||
->modalSubmitActionLabel('Löschen'),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user