Basic implementation of payment methods

This commit is contained in:
2026-07-28 15:50:58 +02:00
parent afc91545a9
commit 6c9281516e
39 changed files with 749 additions and 24 deletions
@@ -0,0 +1,46 @@
<?php
namespace App\Mail\EventReportMails;
use App\Models\Event;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
class PaymentMethodsExhaustedMail extends Mailable
{
public function __construct(
private Event $event,
)
{
//
}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
$subject = sprintf(
'Anmeldung deaktiviert keine Zahlungsmethode verfügbar für %1$s',
$this->event->name
);
return new Envelope(
subject: $subject,
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
view: 'emails.events.payment_methods_exhausted',
with: [
'eventTitle' => $this->event->name,
],
);
}
}