This commit is contained in:
salam committed 2026-05-10 10:45:48 +02:00
1 parent 9457059ae2
commit 838cfd7c81
4 files changed
+11 -13

No files matched your search

+2 -2
View File
@@ -73,9 +73,9 @@ class SendNewsletter
$data['absender_email'] = $gruppe->absender_mail;
if ($adresse->gender) {
$data['anrede'] = 'Sehr geehrte Frau Architektin '.$adresse->last_name.'<br>Lieber '.$adresse->first_name;
$data['anrede'] = 'Sehr geehrte Architektin '.$adresse->last_name.', lieber '.$adresse->first_name;
} else {
$data['anrede'] = 'Sehr geehrter Herr Architekt '.$adresse->last_name.'<br>Lieber '.$adresse->first_name;
$data['anrede'] = 'Sehr geehrter Architekt '.$adresse->last_name.', lieber '.$adresse->first_name;
}
// if ($adresse->anrede == 'Höflich') {
@@ -32,13 +32,13 @@ class MailAdressensTable
ToggleColumn::make('is_active')
->label('Aktive')
->alignCenter(),
TextColumn::make('anrede')
->badge()
->color(fn (string $state): string => match ($state) {
'Höflich' => 'primary',
'Freundschaftlich' => 'success',
default => 'gray',
}),
// TextColumn::make('anrede')
// ->badge()
// ->color(fn (string $state): string => match ($state) {
// 'Höflich' => 'primary',
// 'Freundschaftlich' => 'success',
// default => 'gray',
// }),
// TextColumn::make('company')->label('Firma')
// ->description(fn ($record): string => $record->first_name.' '.$record->last_name),
TextColumn::make('gender')
-3
View File
@@ -4,7 +4,6 @@ namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Address;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
@@ -29,8 +28,6 @@ class Newsletter extends Mailable
public function envelope(): Envelope
{
return new Envelope(
// from: new Address($this->data['absender_email'], $this->data['absender_name']),
// from: new Address('office@nutzwerte.com', 'Architekt Hanno Vogl-Fernheim'),
subject: $this->data['subjekt'],
);
}
+2 -1
View File
@@ -369,8 +369,9 @@ $logo = config('app.url') . '/images/newsletter/ztlogo-schrift.png';
<strong>Architekt DI Hanno Vogl-Fernheim</strong>
<br>architekt vogl-fernheim ZT-GmbH
<br>Richardsweg 1, 6020 Innsbruck
<br><a style="font-size: small;"
<br><a style="font-size: small; font-weight: bold; color: #0867ec;"
href="https://www.bird-farhome.com">www.bird-farhome.com</a>
<br><br><br>
</td>
</tr>
</table>