wip second letter

This commit is contained in:
salam committed 2026-05-10 17:32:55 +02:00
1 parent e0d114ef29
commit 0eda80ef3a
8 files changed
+17 -3

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ class SendNewsletter
// }
$data['inhalt'] = str_replace('###lieber_vorname###', $replace, $template->inhalt);
$data['unterschrift'] = $template->unterschrift;
SendNewsletterJob::dispatch($data);
@@ -26,6 +26,11 @@ class MailVorlageForm
['bold', 'italic', 'underline', 'strike', 'code', 'small', 'highlight'],
['undo', 'redo'],
]),
RichEditor::make('unterschrift')
->toolbarButtons([
['bold', 'italic'],
['undo', 'redo'],
]),
])->columns(1);
}
}
@@ -31,6 +31,9 @@ class MailVorlagesTable
->extraAttributes(['class' => 'tiptap'])
->markdown()
->wrap(),
TextColumn::make('unterschrift')
->markdown()
->prefix('Unterschrift: '),
])->space(1),
]),
])
+1
View File
@@ -10,5 +10,6 @@ class MailVorlage extends Model
'titel',
'subjekt',
'inhalt',
'unterschrift',
];
}
@@ -16,6 +16,7 @@ return new class extends Migration
$table->string('titel');
$table->string('subjekt');
$table->longText('inhalt');
$table->string('unterschrift')->nullable();
$table->timestamps();
});
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

+6 -3
View File
@@ -1,7 +1,7 @@
<?php
$hanno = config('app.url') . '/images/newsletter/hanno-sm.jpg';
$zeichnung = config('app.url') . '/images/newsletter/Zeichnung.png';
$logo = config('app.url') . '/images/newsletter/ztlogo-tv-sm.png';
$logo = config('app.url') . '/images/newsletter/ztlogo-tv-sm-notext.png';
?>
<!doctype html>
<html>
@@ -347,11 +347,14 @@ $logo = config('app.url') . '/images/newsletter/ztlogo-tv-sm.png';
<img src="{{ $message->embedData(file_get_contents($zeichnung), 'Zeichnung', 'image/png') }}"
alt="zt:tirol vorarlberg" style="margin: 0; border: 0; padding: 0; display: block;">
<br />
<strong>Hanno Vogl-Fernheim, Julia Angermaier, Gilbert Sommer</strong>
<p>
{!! $data['unterschrift'] !!}
</p>
</td>
</tr>
<tr>
<td align="center">
<td>
<br />
<br />
<img src="{{ $message->embedData(file_get_contents($logo), 'zt:tirol vorarlberg', 'image/png') }}"