absender wip
This commit is contained in:
1 parent
ebdf2e396a
commit
0b4a070c33
5 files changed
+28
-12
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\MailVersands\Tables;
|
||||
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\SelectColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
@@ -21,22 +22,25 @@ class MailVersandsTable
|
||||
SelectColumn::make('mail_vorlage_id')
|
||||
->optionsRelationship(name: 'mail_vorlage', titleAttribute: 'titel')
|
||||
->label('Vorlage'),
|
||||
TextColumn::make('sende_zeitpunkt')->dateTime()->label('Sende Zeitpunkt'),
|
||||
TextColumn::make('versand_am')->dateTime(),
|
||||
SelectColumn::make('status')
|
||||
->native(false)
|
||||
->disabled(fn ($record): bool => $record->ist_active ? true : false)
|
||||
->options([
|
||||
'wartend' => '<span class="text-blue-500">Wartend</span>',
|
||||
'versand' => '<span class="text-green-500">Mail Versand</span>',
|
||||
])
|
||||
->allowOptionsHtml(),
|
||||
ToggleColumn::make('ist_active')->onColor('success'),
|
||||
TextColumn::make('sende_zeitpunkt')
|
||||
->since()
|
||||
->dateTooltip()
|
||||
->label('Sende Zeitpunkt'),
|
||||
TextColumn::make('versand_am')
|
||||
->since()
|
||||
->dateTooltip(),
|
||||
ToggleColumn::make('ist_active')
|
||||
->label('Senden')
|
||||
->tooltip('Wenn aktive wird der Newsletter zum eingestellten Zeitpunkt versand'),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->recordActions([
|
||||
Action::make('testmail')
|
||||
->color('warning')
|
||||
->iconButton()
|
||||
->icon('heroicon-s-paper-airplane'),
|
||||
EditAction::make()->iconButton(),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user