guest?->email)) { throw new ReservationException('Vor dem E-Mail-Versand bitte die E-Mail-Adresse des zugeordneten Gastes ergänzen.'); } if (! in_array($booking->status, [BookingStatus::Reserved, BookingStatus::OfferSent, BookingStatus::Expired], true)) { throw ReservationException::invalidTransition($booking->status->getLabel(), 'abgelehnt'); } $booking->update([ 'status' => BookingStatus::Declined, 'hold_expires_at' => null, ]); if ($notifyGuest) { Mail::to($booking->guest->email, $booking->guest->full_name)->send(new BookingDeclined($booking)); } } }