More improvements

This commit is contained in:
2026-08-05 10:55:06 +02:00
parent e55cdd1988
commit a0d26648ee
20 changed files with 279 additions and 216 deletions
@@ -2,6 +2,7 @@
namespace App\Mail\ParticipantPaymentMails;
use App\EventPaymentModules\DTO\RegistrationRenderContext;
use App\EventPaymentModules\ProvidesGiroCode;
use App\Models\EventParticipant;
use Illuminate\Http\Request;
@@ -51,6 +52,9 @@ class ParticipantPaymentMissingPaymentMail extends Mailable
? $module->giroCode($this->participant, $this->participant->paymentConfiguration())
: null;
// Zahlungs-Block im Mail-Kontext erzeugen (GiroCode als cid: statt Web-Endpoint).
$paymentSummary = $this->participant->paymentSummary(RegistrationRenderContext::Mail);
return new Content(
view: 'emails.participantPayments.missing_amount',
with: [
@@ -62,7 +66,7 @@ class ParticipantPaymentMissingPaymentMail extends Mailable
'departure' => $participant['departure'],
'amount' => $participant['amount_left_string'],
'paymentFinalDate' => $event['registrationFinalEnd']['formatted'],
'paymentSummary' => $participant['paymentSummary'],
'paymentSummary' => ['hasPaymentInformation' => $paymentSummary->hasPaymentInformation, 'html' => $paymentSummary->html],
'girocodeBinary' => $girocodeBinary,
],
);