absender wip
This commit is contained in:
1 parent
ebdf2e396a
commit
0b4a070c33
5 files changed
+28
-12
No files matched your search
@@ -12,6 +12,8 @@ class MailGruppenForm
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('name'),
|
||||
TextInput::make('absender_name')->label('Absender Name'),
|
||||
TextInput::make('absender_mail')->label('Absender E-Mail'),
|
||||
])->columns(1);
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace App\Filament\Resources\MailGruppens\Tables;
|
||||
|
||||
use Filament\Actions\DeleteAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
@@ -14,7 +15,12 @@ class MailGruppensTable
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('id'),
|
||||
TextColumn::make('name'),
|
||||
TextColumn::make('name')->label('Bezeichnung'),
|
||||
TextColumn::make('absender_name')->label('Absender Name'),
|
||||
TextColumn::make('absender_mail')
|
||||
->icon(Heroicon::Envelope)
|
||||
->iconColor('primary')
|
||||
->label('Absender E-Mail'),
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make()->iconButton(),
|
||||
|
||||
@@ -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