what keeps the case from going on automatically (empty: nothing to do or done) */ public function advance(Booking $booking): array { return $this->runner->advance($booking, ProcessRunner::AUTOMATION)->reasons(); } /** * What is missing before the documents of a binding case can go to the guest. * * @return list */ public function documentBlockers(Booking $booking): array { return array_values(array_filter([ $booking->guest === null ? 'Name und Kontaktdaten des Gastes fehlen.' : null, $booking->guest !== null && blank($booking->guest->email) ? 'Die E-Mail-Adresse des Gastes fehlt.' : null, $booking->total === null ? 'Der Gesamtpreis (laut Portal) fehlt.' : null, ])); } }