Neustrukturierung Customer / Lead / Booking Phase 2

This commit is contained in:
Kevin Adametz 2026-05-28 17:10:37 +02:00
parent 313f0dbf4e
commit 6df9c401af
69 changed files with 3809 additions and 374 deletions

View file

@ -0,0 +1,27 @@
<?php
namespace App\Events\Offer;
use App\Models\Offer;
use App\Models\OfferVersion;
use Illuminate\Foundation\Events\Dispatchable;
/**
* Wird gefeuert, nachdem eine OfferVersion als `accepted` markiert wurde
* (durch Admin oder Kunden-Token-Link). Listener schreiben Audit-Logs,
* benachrichtigen das Team und aktivieren den Button „In Buchung übernehmen".
*/
class OfferAccepted
{
use Dispatchable;
public function __construct(
public readonly Offer $offer,
public readonly OfferVersion $version,
/** customer_link | admin | email */
public readonly string $via,
public readonly ?string $ip = null,
public readonly ?string $userAgent = null,
) {
}
}