- Offer workflow: "Angebot senden" in the admin (dates, guests, promo code, manual price adjustment, validity from the property's hold time, message, guest data for the contract) with live price; contract draft PDF; signed, versioned offer page for the guest to accept (acceptance record without IP) or decline; expiry job, landlord notifications, editable offer texts, wording on the website. - 2FA is mandatory for every admin account. - Privacy: complete anonymisation (notes, attribution, review names, offer messages), shorter periods for unbinding requests, portal mail excerpts and attribution (configurable proposals), iCal summary not stored, known e-mail no longer overwrites guest data, security headers, bearer tokens for automations, metadata stripped from photo originals, review link throttled. - Daily database backup (backup:database) and scripts/backup-pull.sh for the NAS. - Theme: brand mark in header/footer, favicon/touch icon, wave divider, icons, illustration as image placeholder; navy follows the text colour for dark appearances. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
2.5 KiB
PHP
42 lines
2.5 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\ChannelController;
|
|
use App\Http\Controllers\MarketingConsentController;
|
|
use App\Http\Controllers\OfferController;
|
|
use App\Http\Controllers\PageController;
|
|
use App\Models\Booking;
|
|
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::middleware('signed')->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');
|
|
});
|
|
|
|
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|livewire|storage|up$)[a-z0-9-]+')
|
|
->name('page');
|