group(function () { Route::get('/bewertung/{booking}', fn (Booking $booking) => view('review', ['booking' => $booking]))->name('reviews.create')->middleware('throttle:30,1'); Route::get('/angebote/bestaetigen/{guest}', [MarketingConsentController::class, 'confirm'])->name('marketing.confirm'); Route::get('/angebote/abmelden/{guest}', [MarketingConsentController::class, 'unsubscribe'])->name('marketing.unsubscribe'); // Booking path 1: the guest's offer page (docs/KONZEPT.md ยง6a) Route::get('/angebot/{booking}', [OfferController::class, 'show'])->name('offers.show')->middleware('throttle:30,1'); Route::post('/angebot/{booking}/annehmen', [OfferController::class, 'accept'])->name('offers.accept')->middleware('throttle:10,1'); Route::post('/angebot/{booking}/ablehnen', [OfferController::class, 'reject'])->name('offers.reject')->middleware('throttle:10,1'); // Self service from the guest's mails: release a held request, cancel a booking (paths under /angebot/ keep the requested host) Route::get('/angebot/{booking}/freigeben', [SelfServiceController::class, 'showRelease'])->name('reservations.release')->middleware('throttle:30,1'); Route::post('/angebot/{booking}/freigeben/bestaetigen', [SelfServiceController::class, 'release'])->name('reservations.release.confirm')->middleware('throttle:10,1'); Route::get('/angebot/{booking}/storno', [SelfServiceController::class, 'showCancel'])->name('bookings.cancel')->middleware('throttle:30,1'); Route::post('/angebot/{booking}/storno/bestaetigen', [SelfServiceController::class, 'cancel'])->name('bookings.cancel.confirm')->middleware('throttle:10,1'); // A change of a booking the guest has to agree to (package 5); under /angebot/ so the requested host is kept. Route::get('/angebot/aenderung/{change}', [ChangeController::class, 'show'])->name('changes.show')->middleware('throttle:30,1'); Route::post('/angebot/aenderung/{change}/annehmen', [ChangeController::class, 'accept'])->name('changes.accept')->middleware('throttle:10,1'); Route::post('/angebot/aenderung/{change}/ablehnen', [ChangeController::class, 'decline'])->name('changes.decline')->middleware('throttle:10,1'); // Information "unter Vorbehalt" of a request without a hold and the guest's booking wish (package 7). Route::get('/angebot/auskunft/{booking}', [InformationController::class, 'show'])->name('information.show')->middleware('throttle:30,1'); Route::post('/angebot/auskunft/{booking}/buchung-anfragen', [InformationController::class, 'wish'])->name('information.wish')->middleware('throttle:10,1'); // The guest completes missing details of a case (v0.11, CH-18); under /angebot/ so the requested host is kept. Route::get('/angebot/angaben/{booking}', [GuestDataController::class, 'show'])->name('guest-data.show')->middleware('throttle:30,1'); Route::post('/angebot/angaben/{booking}', [GuestDataController::class, 'submit'])->name('guest-data.submit')->middleware('throttle:10,1'); }); Route::get('/kalender/{token}.ics', [ChannelController::class, 'feed'])->name('channels.feed')->middleware('throttle:60,1'); Route::get('/health/sync', [ChannelController::class, 'health'])->name('health.sync'); Route::get('/automation/scheduler', [ChannelController::class, 'scheduler'])->name('automation.scheduler')->middleware('throttle:10,1'); Route::post('/automation/portal-mail', [ChannelController::class, 'portalMail']) ->name('channels.portal-mail') ->withoutMiddleware(PreventRequestForgery::class) ->middleware('throttle:60,1'); Route::post('/automation/aufgaben/{task}/erledigt', [ChannelController::class, 'completeTask']) ->name('channel-tasks.complete') ->withoutMiddleware(PreventRequestForgery::class) ->middleware('throttle:30,1'); Route::get('/sitemap.xml', [PageController::class, 'sitemap'])->name('sitemap'); Route::get('/robots.txt', [PageController::class, 'robots'])->name('robots'); // Website pages (theme system). The booking page keeps its own name because e-mails link to it. Route::get('/', [PageController::class, 'home'])->name('home'); Route::get('/buchen', [PageController::class, 'show'])->defaults('slug', 'buchen')->name('booking.create'); Route::get('/{slug}', [PageController::class, 'show']) ->where('slug', '(?!admin|betreiber|livewire|storage|up$)[a-z0-9-]+') ->name('page');