- press-release-images-manager-v2 hinter IMAGE_RIGHTS_V2: drei Blöcke, Vorbelegung aus Metadaten, Bestätigung mit archiviertem Wortlaut, Bild-Bindung über Hash, Fokuspunkt und Letterbox, Zustände absent/prefilled/error - CustomerImageConfirmation: Magic-Link an den Kontoinhaber, Karte auf der Kundenseite, Kanal magic_link - PressReleaseImageRemover: nie veröffentlicht = alles sofort weg, veröffentlicht = Soft Delete, Original bleibt - ConversionSource::MailImageConfirmation Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\PressRelease;
|
|
use App\Models\PressReleaseImage;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
/**
|
|
* „Bild bestätigen" (Decision-Update E10): Ein Admin hat im Auftrag des
|
|
* Kunden ein Titelbild hochgeladen. Veröffentlicht wird es erst, wenn der
|
|
* Kontoinhaber die Rechtebestätigung selbst abgibt — der Magic-Link führt
|
|
* direkt auf die Meldung im Konto.
|
|
*/
|
|
class PressReleaseImageConfirmationRequested extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public function __construct(
|
|
public readonly PressRelease $pressRelease,
|
|
public readonly PressReleaseImage $image,
|
|
public readonly string $confirmationUrl,
|
|
public readonly Carbon $expiresAt,
|
|
public readonly ?string $recipientName,
|
|
) {}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Bitte bestätigen: Titelbild für Ihre Pressemitteilung',
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(view: 'emails.press-release.image-confirmation');
|
|
}
|
|
}
|