wip
This commit is contained in:
1 parent
9457059ae2
commit
838cfd7c81
4 files changed
+11
-13
No files matched your search
@@ -73,9 +73,9 @@ class SendNewsletter
|
|||||||
$data['absender_email'] = $gruppe->absender_mail;
|
$data['absender_email'] = $gruppe->absender_mail;
|
||||||
|
|
||||||
if ($adresse->gender) {
|
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 {
|
} 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') {
|
// if ($adresse->anrede == 'Höflich') {
|
||||||
|
|||||||
@@ -32,13 +32,13 @@ class MailAdressensTable
|
|||||||
ToggleColumn::make('is_active')
|
ToggleColumn::make('is_active')
|
||||||
->label('Aktive')
|
->label('Aktive')
|
||||||
->alignCenter(),
|
->alignCenter(),
|
||||||
TextColumn::make('anrede')
|
// TextColumn::make('anrede')
|
||||||
->badge()
|
// ->badge()
|
||||||
->color(fn (string $state): string => match ($state) {
|
// ->color(fn (string $state): string => match ($state) {
|
||||||
'Höflich' => 'primary',
|
// 'Höflich' => 'primary',
|
||||||
'Freundschaftlich' => 'success',
|
// 'Freundschaftlich' => 'success',
|
||||||
default => 'gray',
|
// default => 'gray',
|
||||||
}),
|
// }),
|
||||||
// TextColumn::make('company')->label('Firma')
|
// TextColumn::make('company')->label('Firma')
|
||||||
// ->description(fn ($record): string => $record->first_name.' '.$record->last_name),
|
// ->description(fn ($record): string => $record->first_name.' '.$record->last_name),
|
||||||
TextColumn::make('gender')
|
TextColumn::make('gender')
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ namespace App\Mail;
|
|||||||
|
|
||||||
use Illuminate\Bus\Queueable;
|
use Illuminate\Bus\Queueable;
|
||||||
use Illuminate\Mail\Mailable;
|
use Illuminate\Mail\Mailable;
|
||||||
use Illuminate\Mail\Mailables\Address;
|
|
||||||
use Illuminate\Mail\Mailables\Content;
|
use Illuminate\Mail\Mailables\Content;
|
||||||
use Illuminate\Mail\Mailables\Envelope;
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
@@ -29,8 +28,6 @@ class Newsletter extends Mailable
|
|||||||
public function envelope(): Envelope
|
public function envelope(): Envelope
|
||||||
{
|
{
|
||||||
return new 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'],
|
subject: $this->data['subjekt'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -369,8 +369,9 @@ $logo = config('app.url') . '/images/newsletter/ztlogo-schrift.png';
|
|||||||
<strong>Architekt DI Hanno Vogl-Fernheim</strong>
|
<strong>Architekt DI Hanno Vogl-Fernheim</strong>
|
||||||
<br>architekt vogl-fernheim ZT-GmbH
|
<br>architekt vogl-fernheim ZT-GmbH
|
||||||
<br>Richardsweg 1, 6020 Innsbruck
|
<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>
|
href="https://www.bird-farhome.com">www.bird-farhome.com</a>
|
||||||
|
<br><br><br>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in new issue
Block a user