- Gäste: Markierungen, Aufenthalte & Umsatz, Stammgast-/Einwilligungsfilter, CSV-Export, Anonymisierung (manuell + automatisch nach Aufbewahrungsfrist) - Werbe-Einwilligung per Double-Opt-in aus dem Anfrageformular, signierte Bestätigungs-/Abmeldelinks - Bewertungen: automatische Einladung nach Abreise, Bewertungsformular mit Kategorien und internem Feedback, Freigabe und öffentliche Antwort im Admin - Konzept: Rollen, Inhalte, Customer Voice, Architektur Portal-Sync/Buchungshoheit Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
519 B
PHP
23 lines
519 B
PHP
<?php
|
|
|
|
namespace App\Actions;
|
|
|
|
use App\Mail\MarketingConsentRequest;
|
|
use App\Models\Guest;
|
|
use Illuminate\Support\Facades\Mail;
|
|
|
|
/**
|
|
* First step of the double opt-in: the guest receives a confirmation link.
|
|
*/
|
|
class RequestMarketingConsent
|
|
{
|
|
public function handle(Guest $guest): void
|
|
{
|
|
if ($guest->marketing_consent_at !== null || $guest->anonymized_at !== null) {
|
|
return;
|
|
}
|
|
|
|
Mail::to($guest->email, $guest->full_name)->send(new MarketingConsentRequest($guest));
|
|
}
|
|
}
|