Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3621f7e924 | ||
|
|
6930d3ab0f | ||
|
|
c215da0590 | ||
|
|
e49f160496 | ||
|
|
bc2b175556 | ||
|
|
5416b37dfc | ||
|
|
30e9aa7b26 | ||
|
|
4951f227f1 | ||
|
|
a9ad4dbf0b | ||
|
|
e276cd0548 | ||
|
|
0c98d82cf2 | ||
|
|
749537342e | ||
|
|
b681327d3a | ||
|
|
bde99657cf | ||
|
|
d018c97be4 | ||
|
|
fdcb68d578 | ||
|
|
70a8c5072b | ||
|
|
20235b9139 | ||
|
|
565eee4325 | ||
|
|
fd744edf8c | ||
|
|
7a6ee316cd |
No files matched your search
@@ -35,14 +35,16 @@ MAIL_MAILER=smtp
|
||||
MAIL_HOST=smtp.strato.de
|
||||
MAIL_PORT=465
|
||||
MAIL_SCHEME=smtps
|
||||
MAIL_USERNAME=fewo@stommer.de
|
||||
MAIL_USERNAME=info@fewo-stommer.de
|
||||
MAIL_PASSWORD=
|
||||
MAIL_FROM_ADDRESS="fewo@stommer.de"
|
||||
MAIL_FROM_ADDRESS="info@fewo-stommer.de"
|
||||
MAIL_FROM_NAME="${APP_NAME}"
|
||||
|
||||
FEWO_OWNER_NAME="Brigitte Stommer"
|
||||
FEWO_OWNER_EMAIL=fewo@stommer.de
|
||||
FEWO_NOTIFICATION_EMAIL=fewo@stommer.de
|
||||
# Harte Umleitung aller E-Mails (gilt immer). Normal leer lassen – Testbetrieb/Scharfschalten: Admin › System › Betrieb
|
||||
FEWO_MAIL_REDIRECT_TO=
|
||||
FEWO_BANK_ACCOUNT_HOLDER=
|
||||
FEWO_BANK_IBAN=
|
||||
FEWO_BANK_BIC=
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Ferienwohnung Stommer
|
||||
|
||||
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`.
|
||||
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`. **Current state and next steps: `docs/STATUS.md` – start there and update it after larger changes.** Parallel sessions (e.g. theme design on another machine): follow `docs/ZUSAMMENARBEIT.md` (branches, file ownership, deploy only from an up-to-date `main`).
|
||||
|
||||
- Hosting target: Strato shared webhosting (PHP + MySQL, no Node at runtime) – build assets locally.
|
||||
- UI and all user-facing texts are German; code, identifiers and PHPDoc are English.
|
||||
@@ -10,11 +10,14 @@ # Ferienwohnung Stommer
|
||||
- Portals must be integrated through a pluggable channel-connector system (see concept §7), never hard-coded.
|
||||
- Bookings/blocks use nights: `arrival <= night < departure`; same-day changeover is allowed. Reservations with an elapsed hold never occupy the calendar (scope `Booking::occupying()`), cron only updates status.
|
||||
- Business operations live in `app/Actions` (CreateReservation, ConfirmBooking, …); Filament pages and Livewire components call them instead of changing bookings directly.
|
||||
- Booking path 1 (KONZEPT §6a): request (`Reserved`, hold) → `SendOffer` (`OfferSent`, versioned, contract draft, signed link `offers.show`) → guest `AcceptOffer` (acceptance record, then `ConfirmBooking`) or `RejectOffer`; `ExpireReservations` handles both holding statuses (`BookingStatus::holding()`). Manual price changes are `QuoteLineType::Adjustment` lines.
|
||||
- Minimum stay: season `min_nights`, relaxed in `PriceCalculator::minimumStayRelaxed` (offer `waives_min_stay`, gap filled completely, departure on the property's `changeover_weekday`, never below `min_stay_absolute`).
|
||||
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts. Kinds (`OfferKind`): rule, fixed dates, gap filler (`App\Availability\GapFinder`). Which offers the website advertises is decided by `App\Pricing\OfferShowcase` (not by appearances); it prices fixed dates/gaps with `PriceCalculator`.
|
||||
- Portal sync lives in `app/Channels` (connector interface + registry in `config/channels.php`, iCal connector/parser/feed). Our system leads; `SyncChannel` imports portal occupations as `BlockedPeriod` rows with `channel_id`; each channel's export feed excludes its own blocks. Observers on Booking/BlockedPeriod create `ChannelTask`s for portals with `requires_manual_blocking`. Portal booking e-mails are a fast path (`app/Channels/Mail`, `ProcessPortalMail`): they create blocks with source `email`, which `SyncChannel` later confirms/replaces and never removes as stale. Portal analysis: `docs/PORTALE.md`.
|
||||
- Website = theme system (`docs/THEMES.md`): themes live in `resources/themes/<key>` (theme.json, theme.css, theme.js, views); views resolve via the `theme::` namespace (theme → parent → base `ostsee-licht`). Pages are lists of sections (`app/Themes/Sections`, catalogue in `config/themes.php`); seasonal `Appearance`s override tokens/texts/hero photo/photos per section (stable `data.id` per placed section) and sections can be limited to appearances. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). New designs are **additional** themes: `php artisan themes:make <key>`, `themes:check`, `themes:preview` – never edit `ostsee-licht` for a new design; authoring rules in `docs/THEME-ERSTELLUNG.md`. Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
|
||||
- Operations (environments, Strato access, server .env, admin accounts, 2FA, known pitfalls): `docs/BETRIEB.md` – read it before touching a server. Admin accounts: `php artisan users:create`; 2FA (Filament app authentication) is mandatory for every account. Admin modes (`App\Enums\AdminMode`: simple/expert per user, user menu switch) only shape the menu via the `FollowsAdminMode` trait on every resource/page (simple menu = `AdminMode::SIMPLE_NAVIGATION`); permissions stay with roles/policies. New admin resources must use `FollowsAdminMode`.
|
||||
- Deployment: `scripts/deploy.sh <env> setup|deploy [ref]|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md; the server keeps only the active release because of Strato's file quota – history = Git tags `deploy/<env>/<timestamp>`); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
|
||||
- Strato specifics: `public/index.php` strips the internal `/releases/<v>/public` prefix from `REQUEST_URI` (signed URLs); `URL::forceRootUrl(APP_URL)` outside local/testing; mail routing: `App\Support\Settings` (admin page System › Betrieb) – test mode (default) sends every mail to the test recipient only, live delivers normally; `FEWO_MAIL_REDIRECT_TO` is a hard override. Internal addresses are admin settings too: send notifications to `Settings::notificationRecipients()` (never `config('fewo.notification_email')` directly); contact/reply-to (`fewo.owner.email`) and sender (`mail.from`) are overridden at boot by `Settings::applyAddressOverrides()`. The booking form is protected against bots (`config('fewo.spam')`: honeypot, time trap, rate limits, max open holds per e-mail) – tests that submit it instantly set `fewo.spam.min_seconds` to 0.
|
||||
- Vite fonts plugin is removed on purpose (corporate proxy breaks remote font downloads, and fonts must be self-hosted for GDPR).
|
||||
- PHP/Composer on this machine: winget package dir `%LOCALAPPDATA%\Microsoft\WinGet\Packages\PHP.PHP.8.4_*` (Composer as `composer\composer.phar` there).
|
||||
- Git remote: Gitea `https://gitea.stommer.de/Lars/fewo-stommer.git`, branch `main`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Ferienwohnung Stommer
|
||||
|
||||
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`.
|
||||
Website + booking management for a holiday apartment in Kühlungsborn. Concept and roadmap: `docs/KONZEPT.md`. **Current state and next steps: `docs/STATUS.md` – start there and update it after larger changes.** Parallel sessions (e.g. theme design on another machine): follow `docs/ZUSAMMENARBEIT.md` (branches, file ownership, deploy only from an up-to-date `main`).
|
||||
|
||||
- Hosting target: Strato shared webhosting (PHP + MySQL, no Node at runtime) – build assets locally.
|
||||
- UI and all user-facing texts are German; code, identifiers and PHPDoc are English.
|
||||
@@ -10,11 +10,14 @@ # Ferienwohnung Stommer
|
||||
- Portals must be integrated through a pluggable channel-connector system (see concept §7), never hard-coded.
|
||||
- Bookings/blocks use nights: `arrival <= night < departure`; same-day changeover is allowed. Reservations with an elapsed hold never occupy the calendar (scope `Booking::occupying()`), cron only updates status.
|
||||
- Business operations live in `app/Actions` (CreateReservation, ConfirmBooking, …); Filament pages and Livewire components call them instead of changing bookings directly.
|
||||
- Booking path 1 (KONZEPT §6a): request (`Reserved`, hold) → `SendOffer` (`OfferSent`, versioned, contract draft, signed link `offers.show`) → guest `AcceptOffer` (acceptance record, then `ConfirmBooking`) or `RejectOffer`; `ExpireReservations` handles both holding statuses (`BookingStatus::holding()`). Manual price changes are `QuoteLineType::Adjustment` lines.
|
||||
- Minimum stay: season `min_nights`, relaxed in `PriceCalculator::minimumStayRelaxed` (offer `waives_min_stay`, gap filled completely, departure on the property's `changeover_weekday`, never below `min_stay_absolute`).
|
||||
- Special offers are evaluated automatically by `PriceCalculator`; discounts are `QuoteLineType::Discount` lines with negative amounts. Kinds (`OfferKind`): rule, fixed dates, gap filler (`App\Availability\GapFinder`). Which offers the website advertises is decided by `App\Pricing\OfferShowcase` (not by appearances); it prices fixed dates/gaps with `PriceCalculator`.
|
||||
- Portal sync lives in `app/Channels` (connector interface + registry in `config/channels.php`, iCal connector/parser/feed). Our system leads; `SyncChannel` imports portal occupations as `BlockedPeriod` rows with `channel_id`; each channel's export feed excludes its own blocks. Observers on Booking/BlockedPeriod create `ChannelTask`s for portals with `requires_manual_blocking`. Portal booking e-mails are a fast path (`app/Channels/Mail`, `ProcessPortalMail`): they create blocks with source `email`, which `SyncChannel` later confirms/replaces and never removes as stale. Portal analysis: `docs/PORTALE.md`.
|
||||
- Website = theme system (`docs/THEMES.md`): themes live in `resources/themes/<key>` (theme.json, theme.css, theme.js, views); views resolve via the `theme::` namespace (theme → parent → base `ostsee-licht`). Pages are lists of sections (`app/Themes/Sections`, catalogue in `config/themes.php`); seasonal `Appearance`s override tokens/texts/hero photo/photos per section (stable `data.id` per placed section) and sections can be limited to appearances. Theme views use only token colour classes (`bg-accent`, `text-muted`, …). New designs are **additional** themes: `php artisan themes:make <key>`, `themes:check`, `themes:preview` – never edit `ostsee-licht` for a new design; authoring rules in `docs/THEME-ERSTELLUNG.md`. Resolve `Theme` lazily (`app(Theme::class)`), never in constructors – middleware `ResolveTheme` replaces it per request.
|
||||
- Operations (environments, Strato access, server .env, admin accounts, 2FA, known pitfalls): `docs/BETRIEB.md` – read it before touching a server. Admin accounts: `php artisan users:create`; 2FA (Filament app authentication) is mandatory for every account. Admin modes (`App\Enums\AdminMode`: simple/expert per user, user menu switch) only shape the menu via the `FollowsAdminMode` trait on every resource/page (simple menu = `AdminMode::SIMPLE_NAVIGATION`); permissions stay with roles/policies. New admin resources must use `FollowsAdminMode`.
|
||||
- Deployment: `scripts/deploy.sh <env> setup|deploy [ref]|rollback|releases|artisan` (atomic releases on Strato, docs/DEPLOYMENT.md; the server keeps only the active release because of Strato's file quota – history = Git tags `deploy/<env>/<timestamp>`); CI `.gitea/workflows/deploy.yml`. Production has no dev packages (no factories/Faker) – production seeding via `ProductionSeeder`.
|
||||
- Strato specifics: `public/index.php` strips the internal `/releases/<v>/public` prefix from `REQUEST_URI` (signed URLs); `URL::forceRootUrl(APP_URL)` outside local/testing; mail routing: `App\Support\Settings` (admin page System › Betrieb) – test mode (default) sends every mail to the test recipient only, live delivers normally; `FEWO_MAIL_REDIRECT_TO` is a hard override. Internal addresses are admin settings too: send notifications to `Settings::notificationRecipients()` (never `config('fewo.notification_email')` directly); contact/reply-to (`fewo.owner.email`) and sender (`mail.from`) are overridden at boot by `Settings::applyAddressOverrides()`. The booking form is protected against bots (`config('fewo.spam')`: honeypot, time trap, rate limits, max open holds per e-mail) – tests that submit it instantly set `fewo.spam.min_seconds` to 0.
|
||||
- Vite fonts plugin is removed on purpose (corporate proxy breaks remote font downloads, and fonts must be self-hosted for GDPR).
|
||||
- PHP/Composer on this machine: winget package dir `%LOCALAPPDATA%\Microsoft\WinGet\Packages\PHP.PHP.8.4_*` (Composer as `composer\composer.phar` there).
|
||||
- Git remote: Gitea `https://gitea.stommer.de/Lars/fewo-stommer.git`, branch `main`.
|
||||
|
||||
@@ -1,58 +1,37 @@
|
||||
<p align="center"><a href="https://laravel.com" target="_blank"><img src="https://raw.githubusercontent.com/laravel/art/master/logo-lockup/5%20SVG/2%20CMYK/1%20Full%20Color/laravel-logolockup-cmyk-red.svg" width="400" alt="Laravel Logo"></a></p>
|
||||
# Ferienwohnung Stommer – Webseite und Vermietungsverwaltung
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/laravel/framework/actions"><img src="https://github.com/laravel/framework/workflows/tests/badge.svg" alt="Build Status"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/dt/laravel/framework" alt="Total Downloads"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/v/laravel/framework" alt="Latest Stable Version"></a>
|
||||
<a href="https://packagist.org/packages/laravel/framework"><img src="https://img.shields.io/packagist/l/laravel/framework" alt="License"></a>
|
||||
</p>
|
||||
Webseite mit Buchungsanfrage und eine Verwaltung (Admin) für die Ferienwohnung Stommer, Strandstraße 15, 18225 Kühlungsborn. Ersetzt die bisherige WordPress-Seite www.fewo-stommer.de. Laravel 13, Filament 5, Livewire 4, Tailwind 4; Hosting bei Strato (Shared Webhosting, Hosting Pro).
|
||||
|
||||
## About Laravel
|
||||
**Testbetrieb:** https://stommer.info · Verwaltung: https://stommer.info/admin (Konto + Zwei-Faktor-Anmeldung, siehe docs/BETRIEB.md §7)
|
||||
|
||||
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:
|
||||
## Wo steht was?
|
||||
|
||||
- [Simple, fast routing engine](https://laravel.com/docs/routing).
|
||||
- [Powerful dependency injection container](https://laravel.com/docs/container).
|
||||
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
|
||||
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
|
||||
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
|
||||
- [Robust background job processing](https://laravel.com/docs/queues).
|
||||
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
|
||||
| Dokument | Inhalt |
|
||||
|---|---|
|
||||
| [docs/STATUS.md](docs/STATUS.md) | **Aktueller Stand**: was fertig ist, was offen ist, nächste Schritte – hier anfangen |
|
||||
| [docs/ZUSAMMENARBEIT.md](docs/ZUSAMMENARBEIT.md) | Regeln für parallele Arbeit (z. B. Theme-Entwicklung auf einem anderen Rechner) – Branches, Dateibereiche, Ausliefern |
|
||||
| [docs/KONZEPT.md](docs/KONZEPT.md) | Fachliches Konzept und alle Entscheidungen (Buchungswege §6a, Festlegungen §6b) |
|
||||
| [docs/BETRIEB.md](docs/BETRIEB.md) | Server, Zugänge, Konfiguration, Konten/2FA, Backups, Löschfristen, bekannte Eigenheiten |
|
||||
| [docs/DEPLOYMENT.md](docs/DEPLOYMENT.md) | Auslieferung auf Strato (Skript, Versionen, Gitea Actions) |
|
||||
| [docs/THEMES.md](docs/THEMES.md) | Theme-System: Architektur, Bausteine und ihre Daten (Vorlagen-Vertrag) |
|
||||
| [docs/THEME-ERSTELLUNG.md](docs/THEME-ERSTELLUNG.md) | **Verbindliche Anleitung für ein neues Theme** (Design-Sitzung) |
|
||||
| [docs/PORTALE.md](docs/PORTALE.md) | Buchungsportale, Kalenderabgleich, Portal-E-Mails |
|
||||
| [styles/README.md](styles/README.md) | Markenelemente (Logo, Favicon, Symbole, Wellenband) |
|
||||
| docs/DATENSCHUTZ-*, GAP-DELTA, GO-LIVE-CHECKLISTE, LOESCHKONZEPT, BUCHUNGSPROZESS, DATENMODELL-KONZEPT | Analyse eines Datenschutz-Agenten (Annahmen markiert; maßgeblich ist KONZEPT.md) |
|
||||
| [CLAUDE.md](CLAUDE.md) / [AGENTS.md](AGENTS.md) | Technische Leitplanken für KI-Assistenten (identisch) |
|
||||
|
||||
Laravel is accessible, powerful, and provides tools required for large, robust applications.
|
||||
|
||||
## Learning Laravel
|
||||
|
||||
Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.
|
||||
|
||||
In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.
|
||||
|
||||
You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.
|
||||
|
||||
## Agentic Development
|
||||
|
||||
Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow:
|
||||
## Lokal starten
|
||||
|
||||
```bash
|
||||
composer require laravel/boost --dev
|
||||
|
||||
php artisan boost:install
|
||||
composer install && npm ci
|
||||
cp .env.example .env && php artisan key:generate
|
||||
touch database/database.sqlite # PowerShell: New-Item database/database.sqlite
|
||||
php artisan migrate:fresh --seed # Testdaten: Wohnung, Preise 2026, Seiten, Erscheinungsbilder
|
||||
npm run build # oder npm run dev
|
||||
php artisan serve # http://localhost:8000 · /admin: admin@example.com / password (2FA beim ersten Login)
|
||||
php artisan test --compact # alle Tests müssen grün sein
|
||||
```
|
||||
|
||||
Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.
|
||||
## Ausliefern
|
||||
|
||||
## Contributing
|
||||
|
||||
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
|
||||
|
||||
## Code of Conduct
|
||||
|
||||
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
|
||||
|
||||
## Security Vulnerabilities
|
||||
|
||||
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
|
||||
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
|
||||
`bash scripts/deploy.sh staging deploy` – baut den **letzten Commit** und spielt ihn auf stommer.info (Details und Regeln: docs/DEPLOYMENT.md, docs/ZUSAMMENARBEIT.md).
|
||||
@@ -7,6 +7,7 @@
|
||||
use App\Mail\OfferAnswered;
|
||||
use App\Models\Booking;
|
||||
use App\Support\Content;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Throwable;
|
||||
|
||||
@@ -41,7 +42,7 @@ public function handle(Booking $booking, int $offerVersion): void
|
||||
$this->confirm->handle($booking);
|
||||
|
||||
try {
|
||||
Mail::to(config('fewo.notification_email'))->send(new OfferAnswered($booking, accepted: true));
|
||||
Mail::to(Settings::notificationRecipients())->send(new OfferAnswered($booking, accepted: true));
|
||||
} catch (Throwable $exception) {
|
||||
report($exception);
|
||||
}
|
||||
|
||||
@@ -3,26 +3,40 @@
|
||||
namespace App\Actions;
|
||||
|
||||
use App\Models\Property;
|
||||
use Carbon\CarbonImmutable;
|
||||
|
||||
/**
|
||||
* Copies all seasons starting in a given year to the following year with the same calendar dates,
|
||||
* so a new price year only needs adjusting instead of re-entering.
|
||||
* Copies all seasons starting in a given year to the following year, so a new price year only needs adjusting
|
||||
* instead of re-entering. Optionally every season start is moved to the nearest given weekday (e.g. Saturday
|
||||
* as changeover day); seasons that were adjacent stay adjacent.
|
||||
*/
|
||||
class CopySeasonsToNextYear
|
||||
{
|
||||
/**
|
||||
* @param int|null $alignToWeekday ISO weekday (1 = Monday … 7 = Sunday) or null for the same calendar dates
|
||||
* @return array{created: int, skipped: int}
|
||||
*/
|
||||
public function handle(Property $property, int $year): array
|
||||
public function handle(Property $property, int $year, ?int $alignToWeekday = null): array
|
||||
{
|
||||
$created = 0;
|
||||
$skipped = 0;
|
||||
|
||||
$seasons = $property->seasons()->whereYear('starts_on', $year)->get();
|
||||
$seasons = $property->seasons()->whereYear('starts_on', $year)->orderBy('starts_on')->get();
|
||||
|
||||
// New start per old start date; an end that equals another season's start follows that start.
|
||||
$moved = [];
|
||||
foreach ($seasons as $season) {
|
||||
$moved[$season->starts_on->toDateString()] = $this->shift($season->starts_on, $alignToWeekday);
|
||||
}
|
||||
|
||||
foreach ($seasons as $season) {
|
||||
$startsOn = $season->starts_on->addYearNoOverflow();
|
||||
$endsOn = $season->ends_on->addYearNoOverflow();
|
||||
$startsOn = $moved[$season->starts_on->toDateString()];
|
||||
$endsOn = $moved[$season->ends_on->toDateString()] ?? $this->shift($season->ends_on, $alignToWeekday);
|
||||
if ($endsOn->lessThanOrEqualTo($startsOn)) {
|
||||
$skipped++;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($property->seasons()->overlapping($startsOn, $endsOn)->exists()) {
|
||||
$skipped++;
|
||||
@@ -40,4 +54,19 @@ public function handle(Property $property, int $year): array
|
||||
|
||||
return ['created' => $created, 'skipped' => $skipped];
|
||||
}
|
||||
|
||||
/**
|
||||
* One year later; with a weekday, moved to the nearest such day (at most 3 days earlier or later).
|
||||
*/
|
||||
private function shift(CarbonImmutable $date, ?int $weekday): CarbonImmutable
|
||||
{
|
||||
$next = $date->addYearNoOverflow();
|
||||
if ($weekday === null) {
|
||||
return $next;
|
||||
}
|
||||
|
||||
$difference = ($weekday - $next->isoWeekday() + 7) % 7;
|
||||
|
||||
return $difference <= 3 ? $next->addDays($difference) : $next->subDays(7 - $difference);
|
||||
}
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
use App\Models\Channel;
|
||||
use App\Models\ChannelTask;
|
||||
use App\Models\Property;
|
||||
use App\Support\Settings;
|
||||
use Carbon\CarbonInterface;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
@@ -45,7 +46,7 @@ public function handle(Property $property, CarbonInterface $startsOn, CarbonInte
|
||||
return [];
|
||||
}
|
||||
|
||||
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelTasksNotification($tasks)));
|
||||
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelTasksNotification($tasks)));
|
||||
|
||||
foreach ($tasks as $task) {
|
||||
$this->sendToAutomation($task);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
use App\Pricing\PriceCalculator;
|
||||
use App\Pricing\QuoteException;
|
||||
use App\Pricing\StayRequest;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
@@ -119,7 +120,7 @@ private function sendMails(Booking $booking): void
|
||||
{
|
||||
try {
|
||||
Mail::to($booking->guest->email, $booking->guest->full_name)->send(new ReservationReceived($booking));
|
||||
Mail::to(config('fewo.notification_email'))->send(new NewReservation($booking));
|
||||
Mail::to(Settings::notificationRecipients())->send(new NewReservation($booking));
|
||||
} catch (Throwable $exception) {
|
||||
report($exception);
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
use App\Enums\BookingStatus;
|
||||
use App\Mail\ReservationExpired;
|
||||
use App\Models\Booking;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
/**
|
||||
@@ -24,7 +25,7 @@ public function handle(): int
|
||||
foreach ($expired as $booking) {
|
||||
$booking->update(['status' => BookingStatus::Expired]);
|
||||
|
||||
Mail::to(config('fewo.notification_email'))->send(new ReservationExpired($booking));
|
||||
Mail::to(Settings::notificationRecipients())->send(new ReservationExpired($booking));
|
||||
}
|
||||
|
||||
return $expired->count();
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
use App\Mail\ChannelSyncAlert;
|
||||
use App\Mail\MailboxAlert;
|
||||
use App\Models\Channel;
|
||||
use App\Support\Settings;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
@@ -24,7 +25,7 @@ public function handle(): int
|
||||
->filter(fn (Channel $channel): bool => $channel->isStale());
|
||||
|
||||
foreach ($channels as $channel) {
|
||||
Mail::to(config('fewo.notification_email'))->send(new ChannelSyncAlert($channel));
|
||||
Mail::to(Settings::notificationRecipients())->send(new ChannelSyncAlert($channel));
|
||||
$channel->forceFill(['alerted_at' => now()])->save();
|
||||
}
|
||||
|
||||
@@ -55,7 +56,7 @@ private function monitorMailbox(): int
|
||||
return 0;
|
||||
}
|
||||
|
||||
Mail::to(config('fewo.notification_email'))->send(new MailboxAlert(Cache::get(MailboxReader::LAST_ERROR_KEY)));
|
||||
Mail::to(Settings::notificationRecipients())->send(new MailboxAlert(Cache::get(MailboxReader::LAST_ERROR_KEY)));
|
||||
Cache::forever(self::MAILBOX_ALERTED_KEY, true);
|
||||
|
||||
return 1;
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
use App\Models\BlockedPeriod;
|
||||
use App\Models\Channel;
|
||||
use App\Models\PortalEmail;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
@@ -68,11 +69,11 @@ public function handle(PortalMail $mail): ?PortalEmail
|
||||
});
|
||||
|
||||
if (in_array($record->status, [PortalEmailStatus::Blocked, PortalEmailStatus::Released, PortalEmailStatus::NeedsReview], true)) {
|
||||
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new PortalMailNotification($record)));
|
||||
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new PortalMailNotification($record)));
|
||||
}
|
||||
|
||||
if ($conflicts !== []) {
|
||||
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelConflict($channel, $conflicts)));
|
||||
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelConflict($channel, $conflicts)));
|
||||
}
|
||||
|
||||
return $record;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
use App\Exceptions\ReservationException;
|
||||
use App\Mail\OfferAnswered;
|
||||
use App\Models\Booking;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Throwable;
|
||||
|
||||
@@ -34,7 +35,7 @@ public function handle(Booking $booking, int $offerVersion): void
|
||||
]);
|
||||
|
||||
try {
|
||||
Mail::to(config('fewo.notification_email'))->send(new OfferAnswered($booking, accepted: false));
|
||||
Mail::to(Settings::notificationRecipients())->send(new OfferAnswered($booking, accepted: false));
|
||||
} catch (Throwable $exception) {
|
||||
report($exception);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
use App\Mail\ChannelTasksNotification;
|
||||
use App\Models\ChannelTask;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
|
||||
/**
|
||||
@@ -24,7 +25,7 @@ public function handle(): int
|
||||
return 0;
|
||||
}
|
||||
|
||||
Mail::to(config('fewo.notification_email'))->send(new ChannelTasksNotification($tasks->all(), reminder: true));
|
||||
Mail::to(Settings::notificationRecipients())->send(new ChannelTasksNotification($tasks->all(), reminder: true));
|
||||
ChannelTask::whereKey($tasks->modelKeys())->update(['reminded_at' => now()]);
|
||||
|
||||
return $tasks->count();
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
use App\Mail\NewReview;
|
||||
use App\Models\Booking;
|
||||
use App\Models\Review;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use RuntimeException;
|
||||
|
||||
@@ -32,7 +33,7 @@ public function handle(Booking $booking, array $data): Review
|
||||
'stayed_on' => $booking->arrival,
|
||||
]);
|
||||
|
||||
Mail::to(config('fewo.notification_email'))->send(new NewReview($review));
|
||||
Mail::to(Settings::notificationRecipients())->send(new NewReview($review));
|
||||
|
||||
return $review;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
use App\Models\BlockedPeriod;
|
||||
use App\Models\Channel;
|
||||
use App\Models\ChannelSyncLog;
|
||||
use App\Support\Settings;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
@@ -109,7 +110,7 @@ public function handle(Channel $channel): ChannelSyncLog
|
||||
])->save();
|
||||
|
||||
if ($conflicts !== []) {
|
||||
rescue(fn () => Mail::to(config('fewo.notification_email'))->send(new ChannelConflict($channel, $conflicts)));
|
||||
rescue(fn () => Mail::to(Settings::notificationRecipients())->send(new ChannelConflict($channel, $conflicts)));
|
||||
}
|
||||
|
||||
return $channel->syncLogs()->create([
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Console\Attributes\Description;
|
||||
use Illuminate\Console\Attributes\Signature;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Throwable;
|
||||
|
||||
#[Signature('mail:test {to? : Empfänger (Standard: Benachrichtigungsadresse)}')]
|
||||
#[Description('Send a test e-mail through the configured mailer and report delivery errors (e.g. SMTP login)')]
|
||||
class SendTestMail extends Command
|
||||
{
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle(): int
|
||||
{
|
||||
$to = (string) ($this->argument('to') ?: Settings::notificationRecipients()[0] ?? config('fewo.owner.email'));
|
||||
$mailer = (string) config('mail.default');
|
||||
$redirect = Settings::mailRedirect();
|
||||
|
||||
$this->line("Versandweg: {$mailer}".($mailer === 'smtp' ? ' ('.config('mail.mailers.smtp.host').':'.config('mail.mailers.smtp.port').')' : '').' · Absender: '.config('mail.from.address'));
|
||||
if (filled($redirect)) {
|
||||
$this->line("Umleitung aktiv: die Mail geht an {$redirect} statt an {$to}.");
|
||||
}
|
||||
if ($mailer === 'log') {
|
||||
$this->warn('Versandweg "log": es wird nichts zugestellt. Zum echten Versand MAIL_MAILER=smtp und MAIL_PASSWORD setzen (docs/BETRIEB.md §5a).');
|
||||
}
|
||||
|
||||
try {
|
||||
Mail::raw("Testmail der Ferienwohnung Stommer\n\nGesendet am ".now()->format('d.m.Y H:i:s').' von '.config('app.url').".\nWenn diese Mail ankommt, funktioniert der Versand.", function ($message) use ($to): void {
|
||||
$message->to($to)->subject('Testmail Ferienwohnung Stommer – '.now()->format('d.m.Y H:i'));
|
||||
});
|
||||
} catch (Throwable $exception) {
|
||||
$this->error('Versand fehlgeschlagen: '.$exception->getMessage());
|
||||
|
||||
return self::FAILURE;
|
||||
}
|
||||
|
||||
if ($mailer === 'log') {
|
||||
$this->line('Mail erzeugt, aber nicht zugestellt (Versandweg "log").');
|
||||
} else {
|
||||
$this->info('Übergeben an den Mailserver – bitte Posteingang (und Spam-Ordner) prüfen.');
|
||||
}
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
@@ -2,10 +2,12 @@
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
use App\Filament\Pages\PricesAndOffers;
|
||||
use App\Filament\Resources\BlockedPeriods\BlockedPeriodResource;
|
||||
use App\Filament\Resources\Bookings\BookingResource;
|
||||
use App\Filament\Resources\ChannelTasks\ChannelTaskResource;
|
||||
use App\Filament\Resources\Guests\GuestResource;
|
||||
use App\Filament\Resources\Photos\PhotoResource;
|
||||
use App\Filament\Resources\Reviews\ReviewResource;
|
||||
use Filament\Support\Contracts\HasDescription;
|
||||
use Filament\Support\Contracts\HasLabel;
|
||||
@@ -26,9 +28,11 @@ enum AdminMode: string implements HasDescription, HasLabel
|
||||
public const SIMPLE_NAVIGATION = [
|
||||
BookingResource::class,
|
||||
BlockedPeriodResource::class,
|
||||
PricesAndOffers::class,
|
||||
GuestResource::class,
|
||||
ChannelTaskResource::class,
|
||||
ReviewResource::class,
|
||||
PhotoResource::class,
|
||||
];
|
||||
|
||||
public function getLabel(): string
|
||||
@@ -42,7 +46,7 @@ public function getLabel(): string
|
||||
public function getDescription(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Simple => 'Nur das Tägliche: Anfragen, Buchungen und Verträge, Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen',
|
||||
self::Simple => 'Das Tägliche: Anfragen, Buchungen und Verträge, Sperrzeiten, Preise & Angebote, Gäste, Portal-Aufgaben, Bewertungen, Fotos',
|
||||
self::Expert => 'Alle Einstellungen: Preise, Angebote, Portale, Webseite, System',
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Enums\UserRole;
|
||||
use App\Filament\Concerns\FollowsAdminMode;
|
||||
use App\Support\Settings;
|
||||
use BackedEnum;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Forms\Components\Radio;
|
||||
use Filament\Forms\Components\TagsInput;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Schemas\Components\Actions;
|
||||
use Filament\Schemas\Components\EmbeddedSchema;
|
||||
use Filament\Schemas\Components\Form;
|
||||
use Filament\Schemas\Components\Section;
|
||||
use Filament\Schemas\Components\Text;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use UnitEnum;
|
||||
|
||||
/**
|
||||
* Operating mode (test mode sends every e-mail to one test recipient only; live delivers to the real recipients)
|
||||
* and the addresses of the internal communication (notifications, contact/reply-to, sender). Administrators only.
|
||||
*/
|
||||
class Operations extends Page
|
||||
{
|
||||
use FollowsAdminMode;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPower;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'System';
|
||||
|
||||
protected static ?string $navigationLabel = 'Betrieb';
|
||||
|
||||
protected static ?string $title = 'Betrieb';
|
||||
|
||||
protected static ?string $slug = 'betrieb';
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
/** @var array<string, ?string> */
|
||||
public array $data = [];
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
return (bool) auth()->user()?->hasRole(UserRole::Admin);
|
||||
}
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->form->fill([
|
||||
'mode' => Settings::get(Settings::MODE, Settings::MODE_TEST),
|
||||
'test_recipient' => Settings::get(Settings::TEST_RECIPIENT) ?? auth()->user()?->email,
|
||||
'notification_recipients' => Settings::notificationRecipients(),
|
||||
'contact_email' => config('fewo.owner.email'),
|
||||
'sender_name' => config('mail.from.name'),
|
||||
'sender_email' => config('mail.from.address'),
|
||||
]);
|
||||
}
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->statePath('data')
|
||||
->components([
|
||||
Section::make('E-Mail-Versand')
|
||||
->description('Im Testbetrieb gehen alle E-Mails – Eingangsbestätigungen, Angebote, Bestätigungen, Erinnerungen, Benachrichtigungen – ausschließlich an die Testadresse, egal welche Adresse auf der Webseite eingetragen wurde.')
|
||||
->schema([
|
||||
Radio::make('mode')
|
||||
->label('Betriebsart')
|
||||
->options([
|
||||
Settings::MODE_TEST => 'Testbetrieb – alle E-Mails an die Testadresse',
|
||||
Settings::MODE_LIVE => 'Scharf geschaltet – E-Mails an Gäste und Vermieterin',
|
||||
])
|
||||
->required()
|
||||
->live(),
|
||||
TextInput::make('test_recipient')
|
||||
->label('Testadresse')
|
||||
->email()
|
||||
->required(fn (Get $get): bool => $get('mode') === Settings::MODE_TEST)
|
||||
->visible(fn (Get $get): bool => $get('mode') === Settings::MODE_TEST),
|
||||
Text::make(fn (): string => filled(config('fewo.mail_redirect_to'))
|
||||
? 'Hinweis: Auf diesem Server ist zusätzlich FEWO_MAIL_REDIRECT_TO='.config('fewo.mail_redirect_to').' gesetzt – diese Umleitung gilt immer, auch wenn hier scharf geschaltet ist.'
|
||||
: ''),
|
||||
]),
|
||||
Section::make('Adressen der internen Kommunikation')
|
||||
->description('Gelten sofort für alle E-Mails, die Webseite und den Mietvertrag. Im Testbetrieb gehen trotzdem alle E-Mails nur an die Testadresse.')
|
||||
->columns(2)
|
||||
->schema([
|
||||
TagsInput::make('notification_recipients')
|
||||
->label('Benachrichtigungen an')
|
||||
->helperText('Neue Anfragen, angenommene/abgelehnte Angebote, abgelaufene Fristen, Bewertungen, Portal-Mails und -Aufgaben, Kopie der Zahlungserinnerungen. Mehrere Adressen möglich (Enter nach jeder Adresse).')
|
||||
->placeholder('adresse@beispiel.de')
|
||||
->nestedRecursiveRules(['email'])
|
||||
->required()
|
||||
->columnSpanFull(),
|
||||
TextInput::make('contact_email')
|
||||
->label('Kontakt- und Antwortadresse')
|
||||
->helperText('Steht auf der Webseite und im Mietvertrag; Antworten der Gäste auf unsere E-Mails gehen hierhin.')
|
||||
->email()
|
||||
->required(),
|
||||
TextInput::make('sender_name')
|
||||
->label('Absendername')
|
||||
->required()
|
||||
->maxLength(100),
|
||||
TextInput::make('sender_email')
|
||||
->label('Absenderadresse')
|
||||
->helperText(fn (): string => 'Muss das Postfach sein, mit dem der Server versendet (SMTP-Anmeldung: '.(config('mail.mailers.smtp.username') ?: 'nicht gesetzt').') – sonst lehnt Strato den Versand ab.')
|
||||
->email()
|
||||
->required(),
|
||||
Text::make(fn (Get $get): string => filled(config('mail.mailers.smtp.username')) && filled($get('sender_email')) && strcasecmp((string) $get('sender_email'), (string) config('mail.mailers.smtp.username')) !== 0
|
||||
? '⚠ Die Absenderadresse weicht vom SMTP-Postfach ('.config('mail.mailers.smtp.username').') ab. Strato stellt solche E-Mails in der Regel nicht zu.'
|
||||
: '')
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
|
||||
public function content(Schema $schema): Schema
|
||||
{
|
||||
return $schema->components([
|
||||
Form::make([EmbeddedSchema::make('form')])
|
||||
->id('form')
|
||||
->livewireSubmitHandler('save')
|
||||
->footer([Actions::make([Action::make('save')->label('Speichern')->submit('save')])]),
|
||||
]);
|
||||
}
|
||||
|
||||
public function save(): void
|
||||
{
|
||||
$data = $this->form->getState();
|
||||
|
||||
if ($data['mode'] === Settings::MODE_LIVE && Settings::get(Settings::MODE) !== Settings::MODE_LIVE) {
|
||||
Notification::make()->title('Scharf geschaltet')->body('Ab jetzt erhalten Gäste und Vermieterin die E-Mails direkt.')->warning()->send();
|
||||
} else {
|
||||
Notification::make()->title('Gespeichert')->success()->send();
|
||||
}
|
||||
|
||||
Settings::save([
|
||||
Settings::MODE => $data['mode'],
|
||||
Settings::TEST_RECIPIENT => $data['test_recipient'] ?? Settings::get(Settings::TEST_RECIPIENT),
|
||||
Settings::NOTIFICATION_RECIPIENTS => implode(', ', Settings::addressList(implode(',', $data['notification_recipients'] ?? []))),
|
||||
Settings::CONTACT_EMAIL => $data['contact_email'],
|
||||
Settings::SENDER_NAME => $data['sender_name'],
|
||||
Settings::SENDER_EMAIL => $data['sender_email'],
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Enums\UserRole;
|
||||
use App\Filament\Concerns\FollowsAdminMode;
|
||||
use App\Filament\Resources\Properties\Pages\EditProperty;
|
||||
use App\Filament\Resources\Properties\RelationManagers\ExtrasRelationManager;
|
||||
use App\Filament\Resources\Properties\RelationManagers\SeasonsRelationManager;
|
||||
use App\Filament\Resources\Properties\RelationManagers\SpecialOffersRelationManager;
|
||||
use App\Models\Property;
|
||||
use BackedEnum;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Pages\Page;
|
||||
use Filament\Schemas\Components\Livewire;
|
||||
use Filament\Schemas\Components\Tabs;
|
||||
use Filament\Schemas\Components\Tabs\Tab;
|
||||
use Filament\Schemas\Components\Text;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Livewire\Attributes\Url;
|
||||
use UnitEnum;
|
||||
|
||||
/**
|
||||
* The yearly price work in one place, without the other apartment settings: seasons & prices,
|
||||
* special offers & promo codes, extras. Reuses the relation managers of the apartment.
|
||||
*/
|
||||
class PricesAndOffers extends Page
|
||||
{
|
||||
use FollowsAdminMode;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedCurrencyEuro;
|
||||
|
||||
protected static string|UnitEnum|null $navigationGroup = 'Vermietung';
|
||||
|
||||
protected static ?string $navigationLabel = 'Preise & Angebote';
|
||||
|
||||
protected static ?string $title = 'Preise & Angebote';
|
||||
|
||||
protected static ?string $slug = 'preise-und-angebote';
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
#[Url(as: 'wohnung')]
|
||||
public ?int $propertyId = null;
|
||||
|
||||
public static function canAccess(): bool
|
||||
{
|
||||
return (bool) auth()->user()?->hasRole(UserRole::Admin, UserRole::Rentals);
|
||||
}
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
$this->propertyId ??= Property::query()->where('is_active', true)->value('id') ?? Property::query()->value('id');
|
||||
}
|
||||
|
||||
public function content(Schema $schema): Schema
|
||||
{
|
||||
$property = Property::find($this->propertyId);
|
||||
if ($property === null) {
|
||||
return $schema->components([Text::make('Es ist noch keine Wohnung angelegt (Expertenansicht › Wohnungen).')]);
|
||||
}
|
||||
|
||||
$context = ['ownerRecord' => $property, 'pageClass' => EditProperty::class];
|
||||
|
||||
return $schema->components([
|
||||
Select::make('propertyId')
|
||||
->label('Wohnung')
|
||||
->options(fn (): array => Property::query()->orderBy('name')->pluck('name', 'id')->all())
|
||||
->live()
|
||||
->afterStateUpdated(fn () => $this->redirect(static::getUrl(['wohnung' => $this->propertyId])))
|
||||
->visible(fn (): bool => Property::query()->count() > 1),
|
||||
Tabs::make('prices')
|
||||
->persistTabInQueryString()
|
||||
->tabs([
|
||||
Tab::make('Saisons & Preise')->icon(Heroicon::OutlinedCalendar)->schema([
|
||||
Livewire::make(SeasonsRelationManager::class, $context)->key("seasons-{$property->id}"),
|
||||
]),
|
||||
Tab::make('Sonderangebote & Rabattcodes')->icon(Heroicon::OutlinedSparkles)->schema([
|
||||
Livewire::make(SpecialOffersRelationManager::class, $context)->key("offers-{$property->id}"),
|
||||
]),
|
||||
Tab::make('Extras')->icon(Heroicon::OutlinedGift)->schema([
|
||||
Livewire::make(ExtrasRelationManager::class, $context)->key("extras-{$property->id}"),
|
||||
]),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -105,6 +105,18 @@ protected function getHeaderActions(): array
|
||||
fn () => $send->handle($this->record, $this->offerChanges($data)),
|
||||
'Angebot gesendet',
|
||||
)),
|
||||
Action::make('offerLink')
|
||||
->label('Angebotslink')
|
||||
->icon(Heroicon::OutlinedLink)
|
||||
->color('gray')
|
||||
->visible(fn (): bool => $this->record->status === BookingStatus::OfferSent && $this->record->hold_expires_at?->isFuture())
|
||||
->modalHeading('Link zum Angebot')
|
||||
->modalDescription('Derselbe Link wie in der Angebots-E-Mail – z. B. zum Weitergeben per Messenger. Gültig bis zum Ende der Angebotsfrist.')
|
||||
->schema([
|
||||
TextInput::make('url')->label('Link')->default(fn (SendOffer $send): string => $send->offerUrl($this->record))->readOnly()->copyable(),
|
||||
])
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelActionLabel('Schließen'),
|
||||
Action::make('offerPdf')
|
||||
->label('Angebot (PDF)')
|
||||
->icon(Heroicon::OutlinedDocumentText)
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
use Filament\Forms\Components\DatePicker;
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Forms\Components\Toggle;
|
||||
use Filament\Notifications\Notification;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
@@ -35,6 +36,8 @@
|
||||
|
||||
class SeasonsRelationManager extends RelationManager
|
||||
{
|
||||
public const WEEKDAYS = [1 => 'Montag', 2 => 'Dienstag', 3 => 'Mittwoch', 4 => 'Donnerstag', 5 => 'Freitag', 6 => 'Samstag', 7 => 'Sonntag'];
|
||||
|
||||
protected static string $relationship = 'seasons';
|
||||
|
||||
protected static ?string $title = 'Saisons & Preise';
|
||||
@@ -111,6 +114,7 @@ public function table(Table $table): Table
|
||||
->headerActions([
|
||||
CreateAction::make(),
|
||||
$this->copyToNextYearAction(),
|
||||
$this->minimumStayRulesAction(),
|
||||
$this->priceCalculatorAction(),
|
||||
])
|
||||
->recordActions([
|
||||
@@ -179,22 +183,52 @@ private function seasonYears(): array
|
||||
return $years->combine($years)->all();
|
||||
}
|
||||
|
||||
/**
|
||||
* The relaxations of the seasons' minimum stay, edited where the seasons are maintained.
|
||||
*/
|
||||
private function minimumStayRulesAction(): Action
|
||||
{
|
||||
return Action::make('minimumStayRules')
|
||||
->label('Regeln Mindestaufenthalt')
|
||||
->icon(Heroicon::OutlinedAdjustmentsHorizontal)
|
||||
->color('gray')
|
||||
->modalHeading('Mindestaufenthalt – Ausnahmen')
|
||||
->modalDescription('Jede Saison hat ihre Mindestnächte. Diese Regeln erlauben kürzere Aufenthalte, wenn sie den Kalender nicht zerstückeln. Sonderangebote können den Mindestaufenthalt zusätzlich aufheben.')
|
||||
->fillForm(fn (): array => $this->getOwnerRecord()->only(['changeover_weekday', 'min_stay_fill_gaps', 'min_stay_until_changeover', 'min_stay_absolute']))
|
||||
->schema([
|
||||
Select::make('changeover_weekday')->label('Typischer An- und Abreisetag')->options(self::WEEKDAYS)->placeholder('keiner'),
|
||||
Toggle::make('min_stay_fill_gaps')->label('Kalenderlücken: kürzer erlaubt, wenn die Buchung eine Lücke zwischen zwei Belegungen vollständig füllt'),
|
||||
Toggle::make('min_stay_until_changeover')->label('Kürzer erlaubt, wenn die Buchung am typischen Anreisetag endet (die Woche danach bleibt frei buchbar)'),
|
||||
TextInput::make('min_stay_absolute')->label('Untergrenze für alle Ausnahmen')->integer()->minValue(1)->maxValue(14)->suffix('Nächte')->required(),
|
||||
])
|
||||
->action(function (array $data): void {
|
||||
$this->getOwnerRecord()->update($data);
|
||||
Notification::make()->title('Regeln gespeichert')->success()->send();
|
||||
});
|
||||
}
|
||||
|
||||
private function copyToNextYearAction(): Action
|
||||
{
|
||||
return Action::make('copyToNextYear')
|
||||
->label('In Folgejahr kopieren')
|
||||
->icon(Heroicon::OutlinedDocumentDuplicate)
|
||||
->color('gray')
|
||||
->modalDescription('Alle Saisons, die im gewählten Jahr beginnen, werden mit gleichen Kalenderdaten und Preisen ins Folgejahr übernommen. Bereits belegte Zeiträume werden übersprungen.')
|
||||
->modalDescription('Alle Saisons, die im gewählten Jahr beginnen, werden mit Preisen und Mindestnächten ins Folgejahr übernommen. Bereits belegte Zeiträume werden übersprungen.')
|
||||
->schema([
|
||||
Select::make('year')
|
||||
->label('Jahr kopieren')
|
||||
->options(fn (): array => $this->seasonYears())
|
||||
->default((string) now()->year)
|
||||
->required(),
|
||||
Select::make('weekday')
|
||||
->label('Saisonbeginn legen auf')
|
||||
->helperText('Jeder Saisonbeginn wird auf den nächstgelegenen Wochentag verschoben (höchstens 3 Tage); aneinandergrenzende Saisons bleiben lückenlos.')
|
||||
->options(self::WEEKDAYS)
|
||||
->placeholder('gleiche Kalenderdaten wie im Vorjahr')
|
||||
->default(fn (): ?int => $this->getOwnerRecord()->changeover_weekday),
|
||||
])
|
||||
->action(function (array $data, CopySeasonsToNextYear $copySeasons): void {
|
||||
$result = $copySeasons->handle($this->getOwnerRecord(), (int) $data['year']);
|
||||
$result = $copySeasons->handle($this->getOwnerRecord(), (int) $data['year'], filled($data['weekday'] ?? null) ? (int) $data['weekday'] : null);
|
||||
|
||||
Notification::make()
|
||||
->title("{$result['created']} Saisons nach ".((int) $data['year'] + 1).' kopiert')
|
||||
|
||||
@@ -121,6 +121,9 @@ public function form(Schema $schema): Schema
|
||||
Toggle::make('is_combinable')
|
||||
->label('Mit anderen kombinierbaren Angeboten kombinierbar')
|
||||
->helperText('Sonst erhält der Gast automatisch das für ihn beste Einzelangebot.'),
|
||||
Toggle::make('waives_min_stay')
|
||||
->label('Mindestaufenthalt der Saison aufheben')
|
||||
->helperText('Wenn das Angebot gilt, darf der Aufenthalt kürzer sein als die Mindestnächte der Saison (z. B. Special Weekend mit 2 Nächten, kurze Lücke).'),
|
||||
]),
|
||||
Section::make('Bewerbung auf der Webseite')
|
||||
->description('Welche Angebote gerade erscheinen, ergibt sich automatisch: aktiv, ohne Aktionscode, im Buchungszeitraum, feste Termine nur solange frei, Lückenfüller je gefundener Lücke. Mehrere gleichzeitig werden im Baustein „Sonderangebote“ nebeneinander, als Liste oder rollierend gezeigt.')
|
||||
@@ -144,10 +147,7 @@ public function form(Schema $schema): Schema
|
||||
->visible(fn (Get $get): bool => $this->kind($get) === OfferKind::GapFiller)
|
||||
->schema([
|
||||
TextInput::make('max_gap_nights')->label('Lücken bis höchstens … Nächte')->integer()->minValue(1)->default(4)->required(),
|
||||
Toggle::make('waives_min_stay')
|
||||
->label('Mindestaufenthalt der Saison aufheben')
|
||||
->helperText('Damit auch kurze Lücken (z. B. 2 Nächte bei 5 Nächten Mindestaufenthalt) buchbar werden.')
|
||||
->default(true),
|
||||
|
||||
]),
|
||||
Section::make('Bedingungen')
|
||||
->description('Leere Felder bedeuten: keine Einschränkung.')
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
use App\Actions\CreateReservation;
|
||||
use App\Actions\RequestMarketingConsent;
|
||||
use App\Availability\AvailabilityChecker;
|
||||
use App\Enums\BookingStatus;
|
||||
use App\Enums\ReferralSource;
|
||||
use App\Exceptions\ReservationException;
|
||||
use App\Models\Booking;
|
||||
@@ -77,12 +78,17 @@ class BookingRequest extends Component
|
||||
/** Honeypot, must stay empty. */
|
||||
public string $website = '';
|
||||
|
||||
/** When the form was opened (time trap against bots); cannot be changed by the browser. */
|
||||
#[Locked]
|
||||
public int $openedAt = 0;
|
||||
|
||||
#[Locked]
|
||||
public ?int $bookingId = null;
|
||||
|
||||
public function mount(?Property $property = null): void
|
||||
{
|
||||
$this->propertyId = ($property ?? Property::query()->where('is_active', true)->firstOrFail())->id;
|
||||
$this->openedAt = now()->getTimestamp();
|
||||
$this->month = CarbonImmutable::today()->format('Y-m');
|
||||
$this->prefillFromSearch();
|
||||
$this->utm = collect(request()->only(['utm_source', 'utm_medium', 'utm_campaign']))
|
||||
@@ -215,17 +221,22 @@ public function submit(CreateReservation $createReservation): void
|
||||
{
|
||||
$this->validate();
|
||||
|
||||
if ($this->website !== '') {
|
||||
// Bots: honeypot filled or submitted faster than a human can fill the form – silently ignored.
|
||||
if ($this->website !== '' || now()->getTimestamp() - $this->openedAt < config('fewo.spam.min_seconds')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$rateLimitKey = 'booking-request:'.request()->ip();
|
||||
if (RateLimiter::tooManyAttempts($rateLimitKey, 5)) {
|
||||
if ($this->tooManyRequests()) {
|
||||
$this->addError('email', 'Zu viele Anfragen. Bitte versuchen Sie es später erneut oder rufen Sie uns an.');
|
||||
|
||||
return;
|
||||
}
|
||||
RateLimiter::hit($rateLimitKey, 3600);
|
||||
|
||||
if ($this->openRequestsOfEmail() >= config('fewo.spam.open_requests_per_email')) {
|
||||
$this->addError('email', 'Zu dieser E-Mail-Adresse liegen bereits offene Anfragen vor. Wir melden uns in Kürze – bei Fragen rufen Sie uns gern an.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
$booking = $createReservation->handle(
|
||||
@@ -260,6 +271,39 @@ public function submit(CreateReservation $createReservation): void
|
||||
/**
|
||||
* @return array<string, list<string>>
|
||||
*/
|
||||
/**
|
||||
* Rate limits per IP address, per e-mail address and for all requests together (counted when they pass).
|
||||
*/
|
||||
private function tooManyRequests(): bool
|
||||
{
|
||||
$limits = [
|
||||
'booking-request:'.request()->ip() => [config('fewo.spam.per_ip_per_hour'), 3600],
|
||||
'booking-request-email:'.sha1(mb_strtolower($this->email)) => [config('fewo.spam.per_email_per_day'), 86400],
|
||||
'booking-request-all' => [config('fewo.spam.total_per_hour'), 3600],
|
||||
];
|
||||
|
||||
foreach ($limits as $key => [$max]) {
|
||||
if (RateLimiter::tooManyAttempts($key, $max)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($limits as $key => [, $decay]) {
|
||||
RateLimiter::hit($key, $decay);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
private function openRequestsOfEmail(): int
|
||||
{
|
||||
return Booking::query()
|
||||
->whereIn('status', BookingStatus::holding())
|
||||
->where('hold_expires_at', '>', now())
|
||||
->whereHas('guest', fn ($query) => $query->where('email', mb_strtolower($this->email)))
|
||||
->count();
|
||||
}
|
||||
|
||||
protected function rules(): array
|
||||
{
|
||||
return [
|
||||
@@ -268,14 +312,18 @@ protected function rules(): array
|
||||
'guests' => ['required', 'integer', 'min:1', 'max:'.$this->property->max_guests],
|
||||
'extras.*' => ['nullable', 'integer', 'min:0', 'max:10'],
|
||||
'promoCode' => ['nullable', 'string', 'max:50'],
|
||||
'firstName' => ['required', 'string', 'max:255'],
|
||||
'lastName' => ['required', 'string', 'max:255'],
|
||||
'firstName' => ['required', 'string', 'max:255', 'not_regex:/https?:|www\.|<|>/i'],
|
||||
'lastName' => ['required', 'string', 'max:255', 'not_regex:/https?:|www\.|<|>/i'],
|
||||
'email' => ['required', 'email', 'max:255'],
|
||||
'phone' => ['nullable', 'string', 'max:50'],
|
||||
'street' => ['nullable', 'string', 'max:255'],
|
||||
'postalCode' => ['nullable', 'string', 'max:20'],
|
||||
'city' => ['nullable', 'string', 'max:255'],
|
||||
'message' => ['nullable', 'string', 'max:5000'],
|
||||
'message' => ['nullable', 'string', 'max:5000', function (string $attribute, mixed $value, \Closure $fail): void {
|
||||
if (preg_match_all('~https?://|www\.~i', (string) $value) > config('fewo.spam.max_links')) {
|
||||
$fail('Bitte schreiben Sie Ihre Nachricht ohne Links.');
|
||||
}
|
||||
}],
|
||||
'referralSource' => ['nullable', Rule::enum(ReferralSource::class)],
|
||||
'privacyAccepted' => ['accepted'],
|
||||
];
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Models\Booking;
|
||||
use App\Support\Settings;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Mail\Mailables\Address;
|
||||
@@ -33,7 +34,7 @@ public function envelope(): Envelope
|
||||
default => "Zahlungserinnerung zu Ihrer Buchung {$this->booking->reference}",
|
||||
},
|
||||
replyTo: [new Address(config('fewo.owner.email'), config('fewo.owner.name'))],
|
||||
bcc: $this->kind === self::BALANCE_REQUEST ? [] : [new Address(config('fewo.notification_email'))],
|
||||
bcc: $this->kind === self::BALANCE_REQUEST ? [] : array_map(fn (string $address): Address => new Address($address), Settings::notificationRecipients()),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
'hold_hours',
|
||||
'check_in_time',
|
||||
'check_out_time',
|
||||
'changeover_weekday',
|
||||
'min_stay_fill_gaps',
|
||||
'min_stay_until_changeover',
|
||||
'min_stay_absolute',
|
||||
'is_active',
|
||||
])]
|
||||
class Property extends Model
|
||||
@@ -39,10 +43,25 @@ class Property extends Model
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
/**
|
||||
* Defaults of the minimum stay rules (as in the migration), also before the model is reloaded.
|
||||
*
|
||||
* @var array<string, mixed>
|
||||
*/
|
||||
protected $attributes = [
|
||||
'min_stay_fill_gaps' => true,
|
||||
'min_stay_until_changeover' => false,
|
||||
'min_stay_absolute' => 2,
|
||||
];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'is_active' => 'boolean',
|
||||
'min_stay_fill_gaps' => 'boolean',
|
||||
'min_stay_until_changeover' => 'boolean',
|
||||
'changeover_weekday' => 'integer',
|
||||
'min_stay_absolute' => 'integer',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Attributes\Fillable;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* One operational setting (key → value), read through App\Support\Settings.
|
||||
*/
|
||||
#[Fillable(['key', 'value'])]
|
||||
class Setting extends Model {}
|
||||
@@ -40,8 +40,7 @@ public function calculate(Property $property, StayRequest $stay, ?CarbonImmutabl
|
||||
$offers = $this->applicableOffers($property, $stay, $nightSeasons, $bookedAt);
|
||||
|
||||
$arrivalSeason = $nightSeasons[0];
|
||||
$minimumStayWaived = $offers->contains(fn (SpecialOffer $offer): bool => $offer->waives_min_stay && $offer->kind === OfferKind::GapFiller);
|
||||
if ($nights < $arrivalSeason->min_nights && ! $minimumStayWaived) {
|
||||
if ($nights < $arrivalSeason->min_nights && ! $this->minimumStayRelaxed($property, $stay, $offers)) {
|
||||
throw QuoteException::minimumStay($arrivalSeason->min_nights, $arrivalSeason->name);
|
||||
}
|
||||
|
||||
@@ -125,6 +124,30 @@ private function accommodationLines(array $nightSeasons): array
|
||||
), $runs);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether a stay shorter than the season's minimum is still allowed: an applicable offer waives it, or –
|
||||
* never below the property's absolute minimum – the stay fills a calendar gap completely, or it ends on the
|
||||
* typical changeover day (so the following week stays bookable).
|
||||
*
|
||||
* @param Collection<int, SpecialOffer> $offers
|
||||
*/
|
||||
private function minimumStayRelaxed(Property $property, StayRequest $stay, Collection $offers): bool
|
||||
{
|
||||
if ($offers->contains(fn (SpecialOffer $offer): bool => $offer->waives_min_stay)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($stay->nights() < max(1, (int) $property->min_stay_absolute)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($property->min_stay_until_changeover && $property->changeover_weekday !== null && $stay->departure->isoWeekday() === $property->changeover_weekday) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $property->min_stay_fill_gaps && $this->gaps->gapContaining($property, $stay->arrival, $stay->departure) === $stay->nights();
|
||||
}
|
||||
|
||||
/**
|
||||
* Active offers whose conditions the stay meets. The calendar gap is only looked up if a gap filler exists.
|
||||
*
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Support\Settings;
|
||||
use App\Support\StripImageMetadata;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
@@ -23,6 +24,10 @@ public function register(): void
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
// Test mode (System › Betrieb, default until switched live): every e-mail goes to the test recipient only.
|
||||
Settings::applyAddressOverrides();
|
||||
Settings::applyMailRouting();
|
||||
|
||||
// Photos: remove metadata (GPS position, camera data) from uploaded originals, which stay downloadable.
|
||||
Event::listen(MediaHasBeenAddedEvent::class, fn (MediaHasBeenAddedEvent $event) => StripImageMetadata::strip($event->media));
|
||||
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
use Filament\PanelProvider;
|
||||
use Filament\Support\Colors\Color;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\View\PanelsRenderHook;
|
||||
use Filament\Widgets\AccountWidget;
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
|
||||
use Illuminate\Cookie\Middleware\EncryptCookies;
|
||||
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
|
||||
@@ -58,6 +60,8 @@ public function panel(Panel $panel): Panel
|
||||
}),
|
||||
])
|
||||
->brandName('FeWo Stommer · Verwaltung')
|
||||
// As long as the site is not switched live, every page shows where the e-mails go.
|
||||
->renderHook(PanelsRenderHook::BODY_START, fn (): View => view('filament.test-mode-banner'))
|
||||
->navigationGroups(['Vermietung', 'Webseite', 'System'])
|
||||
->colors([
|
||||
'primary' => Color::Sky,
|
||||
|
||||
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support;
|
||||
|
||||
use App\Models\Setting;
|
||||
use Illuminate\Mail\MailManager;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Throwable;
|
||||
|
||||
/**
|
||||
* Operational settings from the admin (System › Betrieb), cached. The most important one: the operating mode.
|
||||
* In **test mode** (the default until the site is switched live) every e-mail goes to the test recipient only,
|
||||
* whatever address was entered on the website.
|
||||
*/
|
||||
class Settings
|
||||
{
|
||||
public const MODE = 'operations.mode';
|
||||
|
||||
public const TEST_RECIPIENT = 'operations.test_recipient';
|
||||
|
||||
/** Comma-separated: who is informed about new requests, answered offers, portal events … */
|
||||
public const NOTIFICATION_RECIPIENTS = 'addresses.notifications';
|
||||
|
||||
/** Contact address shown on the website and in the contract; reply-to of guest mails. */
|
||||
public const CONTACT_EMAIL = 'addresses.contact';
|
||||
|
||||
public const SENDER_EMAIL = 'addresses.sender_email';
|
||||
|
||||
public const SENDER_NAME = 'addresses.sender_name';
|
||||
|
||||
public const MODE_TEST = 'test';
|
||||
|
||||
public const MODE_LIVE = 'live';
|
||||
|
||||
private const CACHE_KEY = 'settings.all';
|
||||
|
||||
public static function get(string $key, ?string $default = null): ?string
|
||||
{
|
||||
try {
|
||||
$values = Cache::rememberForever(self::CACHE_KEY, fn (): array => Setting::query()->pluck('value', 'key')->all());
|
||||
} catch (Throwable) {
|
||||
return $default; // e.g. before the migrations ran
|
||||
}
|
||||
|
||||
return $values[$key] ?? $default;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, ?string> $values
|
||||
*/
|
||||
public static function save(array $values): void
|
||||
{
|
||||
foreach ($values as $key => $value) {
|
||||
Setting::query()->updateOrCreate(['key' => $key], ['value' => $value]);
|
||||
}
|
||||
|
||||
Cache::forget(self::CACHE_KEY);
|
||||
self::applyAddressOverrides();
|
||||
self::applyMailRouting();
|
||||
}
|
||||
|
||||
/**
|
||||
* The recipients of internal notifications (admin setting, else FEWO_NOTIFICATION_EMAIL).
|
||||
*
|
||||
* @return list<string>
|
||||
*/
|
||||
public static function notificationRecipients(): array
|
||||
{
|
||||
return self::addressList(self::get(self::NOTIFICATION_RECIPIENTS) ?: (string) config('fewo.notification_email'));
|
||||
}
|
||||
|
||||
/**
|
||||
* "a@x.de, b@y.de; c@z.de" → valid addresses only.
|
||||
*
|
||||
* @return list<string>
|
||||
*/
|
||||
public static function addressList(?string $value): array
|
||||
{
|
||||
return array_values(array_filter(
|
||||
array_map('trim', preg_split('/[,;\s]+/', (string) $value) ?: []),
|
||||
fn (string $address): bool => filter_var($address, FILTER_VALIDATE_EMAIL) !== false,
|
||||
));
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin settings for the contact address and the sender override the .env values for this request.
|
||||
*/
|
||||
public static function applyAddressOverrides(): void
|
||||
{
|
||||
$overrides = array_filter([
|
||||
'fewo.owner.email' => self::get(self::CONTACT_EMAIL),
|
||||
'mail.from.address' => self::get(self::SENDER_EMAIL),
|
||||
'mail.from.name' => self::get(self::SENDER_NAME),
|
||||
]);
|
||||
|
||||
if ($overrides !== []) {
|
||||
config($overrides);
|
||||
}
|
||||
}
|
||||
|
||||
public static function isLive(): bool
|
||||
{
|
||||
return self::get(self::MODE, self::MODE_TEST) === self::MODE_LIVE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Where all e-mails go instead of their real recipients, or null when mails are delivered normally.
|
||||
* FEWO_MAIL_REDIRECT_TO in .env always wins (hard override for test servers).
|
||||
*/
|
||||
public static function mailRedirect(): ?string
|
||||
{
|
||||
$override = config('fewo.mail_redirect_to');
|
||||
if (filled($override)) {
|
||||
return (string) $override;
|
||||
}
|
||||
|
||||
if (self::isLive()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return self::get(self::TEST_RECIPIENT) ?: (self::notificationRecipients()[0] ?? null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Applies the redirect to the mailer; called at boot and after saving.
|
||||
*/
|
||||
public static function applyMailRouting(): void
|
||||
{
|
||||
$manager = Mail::getFacadeRoot();
|
||||
if (! $manager instanceof MailManager) {
|
||||
return; // Mail::fake() in tests
|
||||
}
|
||||
|
||||
$redirect = self::mailRedirect();
|
||||
$manager->purge();
|
||||
|
||||
if (filled($redirect)) {
|
||||
$manager->alwaysTo($redirect);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -50,6 +50,25 @@
|
||||
| Further retention periods (docs/LOESCHKONZEPT.md). The defaults are PROPOSALS – please have them
|
||||
| confirmed according to the general legal opinion (tax advisor / legal advice) and adjust here.
|
||||
*/
|
||||
// Hard override: every e-mail goes to this address only, regardless of the operating mode in the admin
|
||||
// (System › Betrieb). Empty = the admin setting decides (test mode → test recipient, live → real recipients).
|
||||
'mail_redirect_to' => env('FEWO_MAIL_REDIRECT_TO'),
|
||||
|
||||
// Protection of the booking form against bots (no external captcha service – GDPR). Every request holds
|
||||
// the dates for the hold time, so automated requests could block the calendar.
|
||||
'spam' => [
|
||||
// Faster than this after opening the page = bot; silently ignored.
|
||||
'min_seconds' => (int) env('FEWO_SPAM_MIN_SECONDS', 4),
|
||||
'per_ip_per_hour' => (int) env('FEWO_SPAM_PER_IP_PER_HOUR', 5),
|
||||
'per_email_per_day' => (int) env('FEWO_SPAM_PER_EMAIL_PER_DAY', 3),
|
||||
// Requests/offers of one e-mail address that hold dates at the same time.
|
||||
'open_requests_per_email' => (int) env('FEWO_SPAM_OPEN_REQUESTS_PER_EMAIL', 2),
|
||||
// All website requests together (flood protection).
|
||||
'total_per_hour' => (int) env('FEWO_SPAM_TOTAL_PER_HOUR', 30),
|
||||
// Links allowed in the message.
|
||||
'max_links' => (int) env('FEWO_SPAM_MAX_LINKS', 1),
|
||||
],
|
||||
|
||||
// Daily database backup (php artisan backup:database): number of dumps kept in storage/app/private/backups.
|
||||
'backup' => [
|
||||
'keep' => (int) env('FEWO_BACKUP_KEEP', 14),
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Relaxations of the seasons' minimum stay (see Property::minimumStayRules / PriceCalculator).
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('changeover_weekday')->nullable()->after('check_out_time');
|
||||
$table->boolean('min_stay_fill_gaps')->default(true)->after('changeover_weekday');
|
||||
$table->boolean('min_stay_until_changeover')->default(false)->after('min_stay_fill_gaps');
|
||||
$table->unsignedTinyInteger('min_stay_absolute')->default(2)->after('min_stay_until_changeover');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('properties', function (Blueprint $table) {
|
||||
$table->dropColumn(['changeover_weekday', 'min_stay_fill_gaps', 'min_stay_until_changeover', 'min_stay_absolute']);
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Operational settings changed in the admin (System › Betrieb), e.g. test mode and test recipient.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('settings', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('key')->unique();
|
||||
$table->text('value')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('settings');
|
||||
}
|
||||
};
|
||||
@@ -72,15 +72,25 @@ ## 5. Konfiguration auf dem Server (`shared/.env`)
|
||||
| `FEWO_BANK_*` | leer | für Verträge/Angebote noch einzutragen |
|
||||
| `FEWO_HEALTH_TOKEN`, `FEWO_SCHEDULER_TOKEN`, `FEWO_AUTOMATION_SECRET` | gesetzt | für n8n (Überwachung, Scheduler-Ersatz, Webhooks) |
|
||||
|
||||
## 5a. E-Mail: Testbetrieb und scharf schalten
|
||||
|
||||
- **Betriebsart** in der Verwaltung: **System › Betrieb** (nur Administratoren). Jede Installation beginnt im **Testbetrieb**: alle E-Mails (an Gäste, Vermieterin, Benachrichtigungen) gehen ausschließlich an die dort eingetragene **Testadresse** (ohne Eintrag: `FEWO_NOTIFICATION_EMAIL`), egal was auf der Webseite eingetragen wurde. Ein gelber Hinweis oben in der Verwaltung zeigt das an. Erst „Scharf geschaltet“ liefert an die echten Empfänger.
|
||||
- **Adressen der internen Kommunikation** ebenfalls unter System › Betrieb: *Benachrichtigungen an* (mehrere Adressen: neue Anfragen, Angebotsantworten, Fristabläufe, Bewertungen, Portal-Mails/-Aufgaben, Kopie der Zahlungserinnerungen), *Kontakt- und Antwortadresse* (Webseite, Mietvertrag, Antwortadresse der Gäste-Mails), *Absendername/-adresse* (muss zum SMTP-Postfach `MAIL_USERNAME` passen – das Formular warnt). Ohne Eintrag gelten `FEWO_NOTIFICATION_EMAIL`, `FEWO_OWNER_EMAIL`, `MAIL_FROM_*` aus `shared/.env`.
|
||||
- `FEWO_MAIL_REDIRECT_TO` in `shared/.env` ist eine **harte Überschreibung** für Testserver (gilt auch bei „scharf“); normalerweise leer lassen.
|
||||
- **Versandweg:** Standard `MAIL_MAILER=log` – dann wird gar nichts zugestellt (auch nicht im Protokoll gespeichert). Für echten Versand in `shared/.env` `MAIL_MAILER=smtp` und `MAIL_PASSWORD=<Passwort des Postfachs info@fewo-stommer.de>` (nur selbst eintragen; Absender und SMTP-Anmeldung: `info@fewo-stommer.de`, Antwortadresse und Benachrichtigungen weiter `FEWO_OWNER_EMAIL`/`FEWO_NOTIFICATION_EMAIL` = fewo@stommer.de), dann `bash scripts/deploy.sh staging artisan optimize`.
|
||||
- **Versand prüfen:** `bash scripts/deploy.sh staging artisan mail:test` – zeigt Versandweg, Umleitung und Fehler (z. B. SMTP-Anmeldung) und schickt eine Testmail.
|
||||
- Dass jede Mail-Vorlage fehlerfrei aufgebaut wird (17 Mail-Typen, in ihrem echten Zustand), prüft `tests/Feature/MailRenderingTest.php`.
|
||||
|
||||
## 6. Erledigt / offen im Testbetrieb
|
||||
|
||||
Erledigt (22.10.2026): Ordnerstruktur, `shared/.env`, Migrationen, Grunddaten (`ProductionSeeder`: Wohnung, Saisons 2026, Inhalte, Seiten, Erscheinungsbilder), HTTPS unter stommer.info, Gesundheitscheck mit automatischem Rollback.
|
||||
Erledigt (22.10.2026): Ordnerstruktur, `shared/.env`, Migrationen, Grunddaten (`ProductionSeeder`: Wohnung, Saisons 2026, Inhalte, Seiten, Erscheinungsbilder), HTTPS unter stommer.info, Gesundheitscheck mit automatischem Rollback, Admin-Konto `lars@stommer.com` mit 2FA, 39 Fotos importiert und von Metadaten bereinigt, Ende-zu-Ende-Durchlauf Anfrage → Angebot → Annahme (Testbuchung 2026-0002, darf gelöscht werden).
|
||||
|
||||
Offen:
|
||||
- **Admin-Benutzer anlegen** (§7) und 2FA einrichten.
|
||||
- **Konto für Brigitte** anlegen: System › Benutzer, Rolle Administrator, Ansicht Einfach (§7).
|
||||
- **E-Mail im Testbetrieb** einschalten (§5a): Versandweg SMTP + Passwort; Betriebsart steht auf Testbetrieb mit Testadresse lars@stommer.com.
|
||||
- **Cronjob** (Kundenlogin › Cronjobs), jede Minute:
|
||||
`/opt/RZphp84/bin/php-cli /mnt/web508/e3/26/51539426/htdocs/test.fewo-stommer.de/current/artisan schedule:run`
|
||||
Falls Strato nicht minütlich erlaubt: n8n ruft jede Minute `https://stommer.info/automation/scheduler?token=<FEWO_SCHEDULER_TOKEN>` auf.
|
||||
Falls Strato nicht minütlich erlaubt: n8n ruft jede Minute `https://stommer.info/automation/scheduler` mit Header `Authorization: Bearer <FEWO_SCHEDULER_TOKEN>` auf.
|
||||
- Bankdaten, Vertrags- und AGB-Texte, Rechtstexte prüfen.
|
||||
|
||||
### Fotos aus dem alten WordPress übernehmen
|
||||
@@ -103,9 +113,9 @@ ## 7. Zugang zur Verwaltung (`/admin`)
|
||||
"cd test.fewo-stommer.de/current && /opt/RZphp84/bin/php-cli artisan users:create lars@stommer.com --name='Lars Stommer' --role=admin"
|
||||
```
|
||||
|
||||
Weitere Benutzer legt ein Administrator in der Verwaltung an (System › Benutzer): Name, E-Mail, **Rolle** (was die Person darf) und **Ansicht** (was das Menü zeigt), Passwort. Rollen: `admin` (alles inkl. Benutzer), `rentals` (Vermietung), `content` (Inhalte); ohne Rolle kein Zugang. Empfehlung: Lars `admin`, Brigitte `rentals` mit einfacher Ansicht.
|
||||
Weitere Benutzer legt ein Administrator in der Verwaltung an (System › Benutzer): Name, E-Mail, **Rolle** (was die Person darf) und **Ansicht** (was das Menü zeigt), Passwort. Rollen: `admin` (alles inkl. Benutzer), `rentals` (Vermietung), `content` (Inhalte); ohne Rolle kein Zugang. Festlegung 22.10.2026: Lars und Brigitte beide `admin` (dürfen alles); Brigitte mit **einfacher Ansicht** (beim Anlegen „Ansicht: Einfach“ wählen, sonst erhalten Administratoren die Expertenansicht).
|
||||
|
||||
**Ansichten:** *Einfache Ansicht* – nur Anfragen & Buchungen (inkl. Bestätigen, Mietvertrag, Zahlungen), Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen. *Expertenansicht* – alle Einstellungen, die die Rolle erlaubt (Preise, Angebote, Portale, Webseite, System). Ohne Auswahl: Administratoren Experten-, alle anderen einfache Ansicht. Umschalten jederzeit über das Benutzermenü oben rechts („Zur … Ansicht wechseln“). Die Ansicht blendet nur Menüpunkte aus; Rechte regelt allein die Rolle.
|
||||
**Ansichten:** *Einfache Ansicht* – Anfragen & Buchungen (Angebot senden, Mietvertrag, Zahlungen), Sperrzeiten, **Preise & Angebote** (Saisons, Sonderangebote/Rabattcodes, Extras), Gäste, Portal-Aufgaben, Bewertungen, Bilder. *Expertenansicht* – alle Einstellungen, die die Rolle erlaubt (Preise, Angebote, Portale, Webseite, System). Ohne Auswahl: Administratoren Experten-, alle anderen einfache Ansicht. Umschalten jederzeit über das Benutzermenü oben rechts („Zur … Ansicht wechseln“). Die Ansicht blendet nur Menüpunkte aus; Rechte regelt allein die Rolle.
|
||||
|
||||
**Passwort vergessen:** Ein Administrator vergibt unter System › Benutzer › Bearbeiten ein neues Passwort (eine Selbst-Zurücksetzung per E-Mail gibt es bewusst nicht). **Handy verloren:** dort Aktion „2FA zurücksetzen“ – die Person richtet die 2FA bei der nächsten Anmeldung neu ein.
|
||||
|
||||
@@ -129,6 +139,7 @@ ## 7a. Datensicherung, Löschfristen, Automationen
|
||||
```
|
||||
Regelmäßig z. B. per Aufgabenplanung des NAS/PC ausführen (braucht den SSH-Schlüssel aus §4).
|
||||
- **Löschfristen** (Vorschläge, rechtlich zu bestätigen – `config/fewo.php` bzw. `.env`): Gästedaten 10 Jahre nach letztem Aufenthalt (`FEWO_GUEST_RETENTION_YEARS`), nie verbindlich gewordene Anfragen/Angebote 6 Monate (`FEWO_RETENTION_INQUIRY_MONTHS`), Textauszüge von Portal-Mails 90 Tage (`FEWO_RETENTION_PORTAL_EMAIL_EXCERPT_DAYS`), Herkunftsangaben/UTM 24 Monate (`FEWO_RETENTION_ATTRIBUTION_MONTHS`). Läuft täglich 03:00. Anonymisierung ersetzt Name, Kontaktdaten, Nachrichten, Notizen, Herkunft und Bewertungs-Anzeigenamen; Buchung, Preise und Zahlungen bleiben als Beleg.
|
||||
- **Bot-Schutz der Buchungsanfrage** (ohne externen Captcha-Dienst, `config/fewo.php › spam`): verstecktes Köderfeld, Zeitsperre (Absenden schneller als 4 s nach dem Öffnen = Bot, wird still ignoriert), höchstens 5 Anfragen/Stunde je IP, 3/Tag je E-Mail-Adresse, 30/Stunde insgesamt, höchstens 2 gleichzeitig vorgemerkte Anfragen je E-Mail-Adresse (sonst könnten Bots den Kalender blockieren), keine Links in Namen und höchstens 1 Link in der Nachricht.
|
||||
- **Automationen (n8n):** Token bitte als Header `Authorization: Bearer <token>` senden (landet nicht in Server-Logs); `?token=` funktioniert übergangsweise weiter.
|
||||
- **Fotos:** Beim Hochladen werden Metadaten (GPS, Kamera) aus dem Original entfernt; bestehende Fotos einmalig: `php artisan photos:strip-metadata` (`--force` bearbeitet auch bereits markierte erneut). Hinweis: bewusst mit GD – Imagick (auf Strato installiert) behält EXIF beim Speichern.
|
||||
|
||||
@@ -144,6 +155,9 @@ ## 8. Bekannte Eigenheiten und Lösungen
|
||||
| Ersteinrichtung mit Factories schlägt fehl | Produktion ohne Dev-Pakete | `ProductionSeeder` |
|
||||
| Kein SSL für Subdomain | Paket erlaubt SSL nur für Hauptdomains | Testbetrieb auf `stommer.info` |
|
||||
| `Disk quota exceeded` beim Hochladen / Hinweis „zu viele Dateien“ | Webspace-Kontingent voll (geteilt mit allen anderen Seiten/Backups im Paket); jede Version belegt ~136 MB | Es ist die **Anzahl der Dateien** (Inode-Limit), nicht der Platz. Der Server behält nur die aktive Version (Geschichte als Git-Tags in Gitea), `vendor` wird beim Build ausgedünnt (~15.000 statt ~19.500 Dateien je Version); Reste abgebrochener Läufe räumt das nächste Deployment selbst weg. **Ordner außerhalb des Deploy-Ordners entscheidet nur Lars** (teils produktiv). |
|
||||
| Signierte Links (Angebot, Bewertung, Newsletter, Vorschau) mit 403 | Strato meldet nach der `.htaccess`-Weiterleitung den internen Pfad `/releases/<version>/public/…` in `REQUEST_URI` | `public/index.php` entfernt dieses Präfix vor dem Start von Laravel |
|
||||
| Keine E-Mails im Testbetrieb, auch nicht im Protokoll | `MAIL_MAILER=log` schreibt auf Stufe *debug*, `LOG_LEVEL=info` verwirft das | Zum Testen SMTP einschalten; `FEWO_MAIL_REDIRECT_TO` leitet dann **alle** Mails an eine Adresse (gesetzt: lars@stommer.com) |
|
||||
| Foto-Metadaten (GPS) blieben erhalten | Spatie Image nutzt Imagick, wenn installiert (Strato), und Imagick behält EXIF | `StripImageMetadata` erzwingt GD |
|
||||
| Windows: Symlinks, `php` nicht im PATH | Git Bash | Deploy nur gegen Strato testen; `export PATH="<php-ordner>:$PATH"` |
|
||||
|
||||
## 9. Nützliche Befehle
|
||||
|
||||
@@ -0,0 +1,170 @@
|
||||
# Designkonzept – neues Website-Theme
|
||||
|
||||
Stand: 23.10.2026 · Entwurf zur Entscheidung · Umsetzung: [THEME-ERSTELLUNG.md](THEME-ERSTELLUNG.md), Architektur: [THEMES.md](THEMES.md), Zusammenarbeit: [ZUSAMMENARBEIT.md](ZUSAMMENARBEIT.md)
|
||||
|
||||
> **Kurz:** Die Website richtet sich an **Paare**, vor allem ältere und gut situierte Paare mittleren Alters. Sie soll ruhig, hochwertig, sehr gut lesbar und persönlich wirken. Das neue Design entsteht als zusätzliches Theme. Was Vermieter und später ein KI-Vermarktungsassistent saisonal ändern wollen (Farben, Bilder, Texte, Angebote, Banner, Gestaltungsvarianten), wird im Admin gepflegt, nicht im Code. Dafür braucht der Konfigurator einige Erweiterungen (§7). Drei Designrichtungen stehen zur Wahl (§6). Empfehlung: **A „Brigittes Kühlungsborn“**.
|
||||
|
||||
---
|
||||
|
||||
## 1. Auftrag
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| **Was** | Ferienwohnung im Erdgeschoss einer Wohnanlage in Kühlungsborn, 53 m², 1–3 Gäste, Terrasse mit Garten, Sauna im Haus |
|
||||
| **Für wen** | Paare: ältere Paare und gut situierte Paare mittleren Alters. Keine Familien, keine Haustiere |
|
||||
| **Hauptaufgabe der Website** | Vertrauen schaffen und zur **Anfrage** führen (Buchungsweg 1: Anfrage → Angebot → Annahme). Telefonischer Kontakt ist ausdrücklich erwünscht |
|
||||
| **Nebenaufgaben** | Saisonale Aktionen und Lückenfüller bewerben, Nebensaison füllen, Stammgäste binden |
|
||||
|
||||
## 2. Zielgruppe und was daraus folgt
|
||||
|
||||
| Erwartung der Gäste | Folge für Gestaltung und Inhalt |
|
||||
|---|---|
|
||||
| Mühelos lesen und finden | Fließtext ≥ 18 px (Desktop 19–20 px), Zeilenhöhe ≥ 1,6, Zeilen ≤ 70 Zeichen. Kein dünnes Hellgrau, Kontrast ≥ 7:1 für Fließtext angestrebt (AA verlangt 4,5:1). Schaltflächen ≥ 48 px hoch, klare Beschriftung statt Symbolen. Kein Inhalt nur bei Hover oder Wischgeste |
|
||||
| Persönlich und vertrauenswürdig | Gastgeberin mit Namen, persönliche Tipps, echte Fotos. Telefonnummer in Kopf und Fuß sowie in der mobilen Buchungsleiste |
|
||||
| Keine Überraschungen | Gesamtpreis inkl. Endreinigung und Extras, Mindestaufenthalt, Storno, An- und Abreisezeiten, Hausregeln gut auffindbar („Gut zu wissen“) |
|
||||
| Ehrliche Angaben zum Zugang | Klar und ohne Beschönigung: **Erdgeschoss; eine Stufe am Eingang, über den Garten stufenlos; keine Treppen; flache Dusche mit kleiner Kante; nicht rollstuhlgerecht.** (Stufe und Duschkante vor Veröffentlichung vor Ort bestätigen) |
|
||||
| Zeit zu zweit, Ruhe, Genuss | Bilder und Texte ohne Familienszenen. Themen: Spaziergänge, Strand außerhalb der Saison, Bäderarchitektur, Restaurants, Kultur, Sauna, Terrasse |
|
||||
| Qualität wie in einem guten kleinen Hotel | Wenige, große, gute Fotos. Viel Ruhe im Layout. Bewegung nur sparsam (§5) |
|
||||
| Reisen auch im Frühjahr, Herbst und Winter | Jede Jahreszeit hat eine eigene Stimmung (Erscheinungsbilder). Aktionen und Banner reagieren auf Saison und Auslastung |
|
||||
|
||||
**Tonalität:** „Sie“, ruhig, konkret, ohne Werbesprache. Lieber „Vom Sofa sehen Sie in den Garten“ als „Erleben Sie unvergessliche Momente“. Bestehende Texte prüfen, ob sie noch von zwei Gastgebern sprechen.
|
||||
|
||||
## 3. Was die Wohnung erzählt (Inhalte, die schon da sind)
|
||||
|
||||
Aus den 39 vorhandenen Fotos und Daten:
|
||||
|
||||
- **Rückzug zu zweit:** Schlafzimmer mit Boxspringbett und Leseecke, Ledersofa vor der Terrassentür, Relaxsessel
|
||||
- **Draußen:** überdachte Terrasse mit Hortensien, Garten mit Rhododendren, Gartenteich, Sitzplatz im Grünen
|
||||
- **Wohlfühlen:** Sauna im Haus, flache Glasdusche, Arbeitsplatz (für längere Aufenthalte)
|
||||
- **Kühlungsborn:** Strandkörbe, Bootshafen, Molli, Gespensterwald, Villen der Bäderarchitektur, Ostseeallee, Backsteinkirche
|
||||
- **Überblick:** Grundriss (Foto), Luftbilder von Anlage, Wald und Ostsee
|
||||
|
||||
**Fehlt noch / wünschenswert:** Herbst- und Winterbilder (Strand, Promenade, Sauna-Abend), Detailbilder (Frühstück auf der Terrasse, Bücher, zwei Gläser – Stimmung ohne Personen), Brigittes Lieblingsorte für die Tipps. Detail- und Ortsbilder kann Brigitte selbst mit dem Handy machen. Die Website wirkt dabei über Bildausschnitt und Aufbereitung, nicht über Modelle.
|
||||
|
||||
**Gastgeberin:** Brigitte möchte nicht im Mittelpunkt stehen. Der Gastgeber-Baustein funktioniert deshalb auch **ohne Porträt**: Text in ihrer Stimme, Unterschrift, wahlweise ein Stimmungs- oder Detailbild. Ob ältere Fotos der Familie (z. B. im Strandkorb) gezeigt werden, entscheidet allein Brigitte. Das Theme braucht sie nicht.
|
||||
|
||||
## 4. Grundsätze für jedes Design
|
||||
|
||||
1. **Lesbarkeit vor Effekt** – alle Regeln aus §2, in **allen** Erscheinungsbildern (auch dunklen).
|
||||
2. **Anfrage immer in Reichweite** – „Verfügbarkeit prüfen“ und Telefonnummer auf jeder Seite, mobil als feste Leiste.
|
||||
3. **Vertrauen sichtbar machen** – Bewertungen mit Echtheitshinweis, „Gut zu wissen“, Preise transparent, Impressum leicht erreichbar.
|
||||
4. **Eigenständig, nicht austauschbar** – Gestaltung aus Kühlungsborn ableiten: Bäderarchitektur, Backstein, Sanddorn, Kiefern und Buchen, Strandkorb, Ostseelicht. Den verbreiteten „KI-Standard-Look“ vermeiden: Cremegrund mit Serifen-Headline und Terrakotta-Akzent, Großbuchstaben-Etiketten über jeder Überschrift, nummerierte Abschnitte ohne Reihenfolge, gleich aussehende Karten überall.
|
||||
5. **Saisonfähig** – alles, was sich mit Saison und Kampagne ändert, ist Daten im Admin, nicht Code (§7). Das ist die Grundlage für den späteren KI-Vermarktungsassistenten.
|
||||
6. **Mehrsprachig vorbereiten** – Layout verträgt längere deutsche und kürzere englische Texte; Platz für einen Sprachumschalter im Kopf (§8).
|
||||
7. **Datensparsam** – nichts von fremden Servern, Schriften selbst gehostet, kein Cookie-Banner nötig.
|
||||
|
||||
## 5. Bewegung
|
||||
|
||||
Höchstens **ein** ruhiger Moment pro Seite, z. B. das Titelbild blendet beim Laden langsam auf, oder die Grundriss-Räume heben sich beim Antippen hervor. Keine Einflug-Animationen pro Abschnitt, kein Parallax-Rausch, kein Autoplay-Slider. `prefers-reduced-motion` schaltet alles ab. Rollierende Angebote nur mit Pause-Knopf und langsam.
|
||||
|
||||
## 6. Drei Designrichtungen
|
||||
|
||||
Alle drei nutzen die vorhandenen Bausteine und Erscheinungsbilder. Farbwerte sind Standard-Tokens. Erscheinungsbilder überschreiben sie (Kontraste der Startwerte geprüft: Fließtext ≥ 13:1, gedämpfter Text ≥ 6:1, Akzent ≥ 5,4:1).
|
||||
|
||||
### A – „Brigittes Kühlungsborn“ (Empfehlung)
|
||||
|
||||
**Idee:** Ein ruhiges, persönliches Magazin über eine Wohnung und einen Ort. Brigitte erzählt und empfiehlt. Große, gut lesbare Typografie, Fotos wie in einem Reisemagazin, ihre Tipps als roter Faden. Passt zur Zielgruppe (Vertrauen, Genuss, Kultur) und braucht kein Porträt.
|
||||
|
||||
| Token | Wert | Herkunft |
|
||||
|---|---|---|
|
||||
| ground | `#F7F8F6` | Kreideweiß, kühl (bewusst kein Creme) |
|
||||
| ink | `#1F2B38` | Tintenblau |
|
||||
| muted | `#4F5B66` | Schiefer |
|
||||
| accent | `#9A3B2E` | Backstein (Backsteinkirche, Backsteingotik) |
|
||||
| band | `#23384A` | Ostsee am Abend |
|
||||
|
||||
**Schrift:** *Newsreader* (Überschriften und Fließtext, Zeitungs-Serife mit optischen Größen, sehr gut lesbar) + *Atkinson Hyperlegible Next* (Navigation, Formulare, Preise – entwickelt für Menschen mit eingeschränktem Sehvermögen).
|
||||
|
||||
```
|
||||
┌────────────────────────────────────────────────────────┐
|
||||
│ Ferienwohnung Stommer Wohnung Kühlungsborn Preise│
|
||||
│ ☎ 038293 … [Anfragen]│
|
||||
├──────────────────────────────┬─────────────────────────┤
|
||||
│ │ Ihr Zuhause zwischen │
|
||||
│ großes Foto (Terrasse) │ Garten und Meer │
|
||||
│ │ kurzer Text │
|
||||
│ │ [Anreise][Abreise][2 P.] │
|
||||
├──────────────────────────────┴─────────────────────────┤
|
||||
│ „Mein Lieblingsplatz ist morgens die Terrasse …“ │
|
||||
│ – Brigitte │
|
||||
├────────────────────────────────────────────────────────┤
|
||||
│ Die Wohnung Text links, 2 Fotos versetzt rechts │
|
||||
│ Grundriss zum Antippen, Fotos je Raum │
|
||||
│ Brigittes Tipps Liste: Ort · zu Fuß 8 Min · warum │
|
||||
│ Gut zu wissen Zugang, An-/Abreise, keine Haustiere │
|
||||
└────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
**Unverwechselbares Element:** Brigittes Tipps mit Gehzeiten ab der Wohnung, als Liste gesetzt wie in einem Reiseführer.
|
||||
**Ausrichtung:** linksbündig, asymmetrisch, viel Weißraum.
|
||||
|
||||
### B – „Weiße Villa“ (Bäderarchitektur, elegant)
|
||||
|
||||
**Idee:** Die Seite wirkt wie eine Villa an der Ostseeallee: hell, symmetrisch, feine Linien. Ein Ornament aus den Balkongittern der Bäderarchitektur dient als Trenner, Fotos haben oben leicht gerundete Ecken wie Fensterbögen. Wirkt am „hochwertigsten“, aber weniger persönlich.
|
||||
|
||||
| Token | Wert | Herkunft |
|
||||
|---|---|---|
|
||||
| ground | `#FFFFFF` | weiße Fassade |
|
||||
| ink | `#22313B` | Schiefer |
|
||||
| muted | `#56636D` | |
|
||||
| accent | `#2F5D50` | Verandagrün |
|
||||
| band | `#2F5D50` | |
|
||||
|
||||
**Schrift:** *Marcellus* (Überschriften, an Inschriften angelehnt) + *Hanken Grotesk* (Text).
|
||||
**Unverwechselbares Element:** Balkon-Ornament als Linie (eigene SVG im Theme-Ordner).
|
||||
**Ausrichtung:** zentriert, symmetrisch.
|
||||
|
||||
### C – „Sanddorn & Kiefer“ (natürlich, jahreszeitlich)
|
||||
|
||||
**Idee:** Natur rund um Kühlungsborn: Kiefernwald, Sanddorn, Buchen im Gespensterwald. Große Fotos über die ganze Breite, kräftige Farbbänder, die mit den Jahreszeiten am deutlichsten wechseln (Sommer Sanddorn, Herbst Buchenlaub, Winter Kiefer und Schnee). Am stärksten saisonal, am wenigsten klassisch.
|
||||
|
||||
| Token | Wert | Herkunft |
|
||||
|---|---|---|
|
||||
| ground | `#F3F5F0` | heller Dünensand, grünlich |
|
||||
| ink | `#1E2A24` | Kiefer, sehr dunkel |
|
||||
| muted | `#4B5850` | |
|
||||
| accent | `#A9460F` | Sanddorn |
|
||||
| band | `#2E4A3C` | Kiefernwald |
|
||||
|
||||
**Schrift:** *Alegreya* (Überschriften) + *Alegreya Sans* (Text) – humanistisch, warm, gut lesbar.
|
||||
**Unverwechselbares Element:** saisonale Farbbänder hinter großen Fotos.
|
||||
**Ausrichtung:** linksbündig, vollflächige Bildstrecken.
|
||||
|
||||
### Entscheidungshilfe
|
||||
|
||||
| | A Brigittes Kühlungsborn | B Weiße Villa | C Sanddorn & Kiefer |
|
||||
|---|---|---|---|
|
||||
| Persönlich | ●●● | ● | ●● |
|
||||
| Hochwertig | ●● | ●●● | ●● |
|
||||
| Lesbarkeit | ●●● | ●● | ●●● |
|
||||
| Saisonal wandelbar | ●● | ● | ●●● |
|
||||
| Ohne neue Fotos stark | ●●● | ●● | ● |
|
||||
|
||||
Kombinationen sind möglich (z. B. A mit den saisonalen Farbbändern aus C). Vor der Entscheidung: Vorbilder ansehen (Awwwards › Hotel & Restaurant, Sawday's, kleine Boutique-Hotels an Nord- und Ostsee) und notieren, was gefällt und was nicht.
|
||||
|
||||
## 7. Erweiterungen des Konfigurators
|
||||
|
||||
Ziel: kein freier Seiten-Editor, sondern **Stellschrauben, die das Theme anbietet** – jede Kombination sieht gut aus. Pflege in der **Expertenansicht**; die einfache Ansicht bleibt bei Inhalten.
|
||||
|
||||
| # | Erweiterung | Admin | Nutzen |
|
||||
|---|---|---|---|
|
||||
| 1 | **Theme-Optionen** in `theme.json › options` (Auswahl/Schalter, z. B. Titelbereich vollflächig/geteilt, Bewegung an/aus, Bildrahmen) | Websites › Theme (Standard) und Erscheinungsbilder (Überschreiben) – erscheinen automatisch wie die Farbfelder | Saisonale Wirkung ohne Code; Grundlage für KI-Assistent |
|
||||
| 2 | **Darstellungsvarianten je Baustein** (`theme.json › variants`, z. B. Galerie: Mosaik/Filmstreifen; Text mit Bild: ruhig/Magazin) | Seiten-Baukasten: Feld „Darstellung“ mit den Varianten des aktiven Themes | Mehr Abwechslung bei gleicher Qualität |
|
||||
| 3 | **Baustein „Grundriss“** – SVG-Grundriss + Räume (Name, Text, Fotos) | Seiten-Baukasten | Orientierung, Zugang verständlich machen |
|
||||
| 4 | **Baustein „Tipps der Gastgeberin“** – Orte mit Kategorie, Gehzeit/Entfernung, Text, Foto, OpenStreetMap-Link; saisonal filterbar | eigene Liste (Webseite › Tipps), Baustein wählt Kategorien | Persönlichkeit ohne Porträt, Inhalte für Nebensaison |
|
||||
| 5 | **Baustein „Gut zu wissen“** – Zugang/Barrieren, An- und Abreise, Haustiere, Rauchen, Parken; strukturiert statt Fließtext | Wohnung › Eigenschaften + Baustein | Vertrauen, weniger Rückfragen; Daten wiederverwendbar (Angebot, Mails, JSON-LD) |
|
||||
| 6 | Gastgeber-Baustein: **Porträt optional**, Unterschrift/Name, Bild beliebig | bestehender Baustein | passt zu Brigittes Wunsch |
|
||||
| 7 | *später:* Video-Baustein (selbst gehostet), Wetter/Wassertemperatur (Lizenz klären), Erzählstrecke „Ein Tag an der Ostsee“ | | |
|
||||
|
||||
Kampagnen sind schon gut abgedeckt (Erscheinungsbilder mit Farben/Bildern/Texten, Sonderangebote mit Hervorhebung, Banner). Das Theme gestaltet diese Flächen als vollwertige Elemente: Angebot im Titelbereich, Banner, Angebotsbaustein in allen drei Darstellungen.
|
||||
|
||||
## 8. Mehrsprachigkeit (Vorbereitung)
|
||||
|
||||
Primär Deutsch. Englisch (und weitere Sprachen) erst, wenn auch die Gästekommunikation (Mails, Angebot, Vertrag, später KI-Antworten) in der Sprache funktioniert. Fürs Design jetzt schon: Sprachumschalter-Platz im Kopf, keine Texte in Grafiken, Layout mit ±30 % Textlänge testen. Für die Anwendung später: übersetzbare Inhalte je Seite/Baustein, Sprach-URLs (`/en/…`), `hreflang`, Sprache am Gast für Mails.
|
||||
|
||||
## 9. Nächste Schritte
|
||||
|
||||
1. **Lars/Brigitte:** Vorbilder ansehen, Richtung wählen (A, B, C oder Kombination); Stufe und Duschkante bestätigen; Brigittes Tipps sammeln (Name, warum, Gehzeit).
|
||||
2. **Entwurf:** für die gewählte Richtung Startseite und Wohnungsseite als Theme auf Branch `theme/<key>`, Vorschau per `themes:preview`, Screenshots auf Handy/Tablet/Desktop.
|
||||
3. **Konfigurator:** Erweiterungen 1, 2, 5, 6 (Grundlage), dann 3 und 4 – auf `feature/theme-options`, mit Tests, Vertragsänderungen in ZUSAMMENARBEIT.md §6.
|
||||
4. **Feinschliff:** alle Bausteine, alle Erscheinungsbilder, Angebots- und Bewertungsseite, Checkliste THEME-ERSTELLUNG.md §10.
|
||||
@@ -57,7 +57,8 @@ ## 5. Verwaltungssystem (Admin)
|
||||
|
||||
- **Dashboard:** nächste An-/Abreisen, offene Anfragen, fällige Zahlungen, Auslastung/Umsatz pro Jahr.
|
||||
- **Kalender:** alle Buchungen + Portal-Blockierungen + manuelle Sperrzeiten (Eigennutzung, Renovierung).
|
||||
- **Saisons & Preise:** pro Saison Zeitraum, Preis/Nacht, Mindestaufenthalt, optional An-/Abreisetage. Jahr kopieren („Preise 2027 = 2026“) mit einem Klick.
|
||||
- **Saisons & Preise:** pro Saison Zeitraum, Preis/Nacht, Mindestaufenthalt, optional An-/Abreisetage. Jahr kopieren („Preise 2027 = 2026“) mit einem Klick – optional mit **Saisonbeginn auf einen Wochentag** (z. B. Samstag; aneinandergrenzende Saisons bleiben lückenlos).
|
||||
- **Ausnahmen vom Mindestaufenthalt** (je Wohnung, „Preise & Angebote › Saisons › Regeln Mindestaufenthalt“): kürzer erlaubt, wenn die Buchung eine Kalenderlücke vollständig füllt oder am typischen Anreisetag endet; Sonderangebote jeder Art können ihn aufheben; absolute Untergrenze für alle Ausnahmen (Standard 2 Nächte).
|
||||
- **Preisbestandteile (konfigurierbar):** Endreinigung/Service (108 €), Zusatzperson ab 3. Person (7,50 €/Nacht), Extras (Bettwäsche 14 €, Handtücher 11 €, Paket 23 €), Kurtaxe (Hinweis, vor Ort), Anzahlungsquote 35 %, Restzahlungsfrist 4 Wochen.
|
||||
- Darstellung wahlweise wie heute („erste Nacht inkl. Endreinigung“) oder transparent getrennt – die Berechnung ist identisch.
|
||||
- **Sonderangebote & Sonderkonditionen:** werden bei jeder Preisberechnung automatisch geprüft (siehe 5a).
|
||||
@@ -126,6 +127,7 @@ ### 6b. Weitere Festlegungen (22.10.2026)
|
||||
- **Lösch- und Aufbewahrungsfristen** nach allgemeiner Rechtsauffassung festlegen (fachkundig bestätigen lassen); technisch als Einstellungen umsetzen (Vorschläge: docs/LOESCHKONZEPT.md).
|
||||
- **Auftragsverarbeitung mit Strato:** Strato stellt dafür nach unserem Kenntnisstand einen Standardvertrag im Kundenbereich bereit – dort prüfen/abschließen.
|
||||
- **Portalgäste** = Gäste, die über ein Buchungsportal (FeWo-direkt u. a.) buchen; ihre Daten erreichen uns nur über die Portal-Benachrichtigungen. Wir betreiben selbst kein Portal.
|
||||
- **Testbetrieb vs. scharf geschaltet** (System › Betrieb): bis zum Scharfschalten gehen alle E-Mails nur an eine einstellbare Testadresse. **Bot-Schutz** der Anfrage ohne externe Dienste (DSGVO).
|
||||
- **Verwaltung:** mehrere Verwalter-Konten (mindestens Lars und Brigitte Stommer); **einfache Ansicht** (Anfragen/Buchungen/Verträge, Sperrzeiten, Gäste, Portal-Aufgaben, Bewertungen) und **Expertenansicht** (alle Einstellungen), umschaltbar je Benutzer – umgesetzt.
|
||||
- Die Dokumente BUCHUNGSPROZESS, DATENMODELL-KONZEPT, GAP-DELTA, GO-LIVE-CHECKLISTE, LOESCHKONZEPT und DATENSCHUTZ-* wurden von einem Analyse-Agenten erstellt; die dort genannten „verbindlichen Entscheidungen E1–E7“ sind **dessen Annahmen**. Maßgeblich sind die Festlegungen in diesem Dokument.
|
||||
|
||||
@@ -177,11 +179,11 @@ ## 9. Hosting & Deployment (Strato)
|
||||
## 10. Umsetzungsphasen
|
||||
|
||||
1. **Fundament:** Laravel + Filament, Datenmodell, Saisons/Preise, Preisberechnung (mit Tests). ✅
|
||||
2. **Kalender & Anfrage:** Belegung, Anfrageformular, Auto-Angebot per Mail, Vorreservierung mit Haltezeit, Sonderangebote, Sperrzeiten, Buchungsverwaltung. ✅
|
||||
3. **Buchungsworkflow:** Bestätigung, Mietvertrag-PDF, Zahlungsfristen & Erinnerungen, Anreiseinfos. ✅ (Mietbedingungen/Storno noch als Muster)
|
||||
4. **Webseite:** Theme-System, Bausteine, Erscheinungsbilder, Seiten, SEO ✅ · Basis-Theme „Ostsee-Licht“ funktionsfähig; gestalterische Überarbeitung offen (Übergabe: docs/THEMES.md §10).
|
||||
5. **Connectoren:** iCal-Import/-Export, Sync-Log, Konfliktwarnung.
|
||||
6. **Go-Live:** Strato-Deployment, Umleitungen, Inhalte/Rechtstexte, Testbuchungen.
|
||||
2. **Kalender & Anfrage:** Belegung, Anfrageformular, Vorreservierung mit Haltezeit, Sonderangebote (Rabattaktion, fester Termin, Lückenfüller), Mindestaufenthalt mit Ausnahmen, Sperrzeiten, Buchungsverwaltung. ✅
|
||||
3. **Buchungsworkflow:** Buchungsweg 1 Anfrage → Angebot → Annahme durch den Gast (§6a), Mietvertrag-PDF, Zahlungsfristen & Erinnerungen, Anreiseinfos. ✅ (Mietbedingungen/Storno/Angebotstexte noch als Muster)
|
||||
4. **Webseite:** Theme-System, Bausteine, Erscheinungsbilder (Bilder je Baustein, saisonale Bausteine), Seiten, SEO, Markengrafiken ✅ · neues Design-Theme in eigener Session (docs/ZUSAMMENARBEIT.md, docs/THEME-ERSTELLUNG.md).
|
||||
5. **Connectoren:** iCal-Import/-Export, Sync-Log, Konfliktwarnung, Portal-E-Mails. ✅ (echte Portal-Mails zur Feinabstimmung des Parsers fehlen)
|
||||
6. **Go-Live:** Strato-Deployment und Testbetrieb ✅ · offen: Cronjob, Produktion, Umleitungen, Rechtstexte, echte Testbuchungen (Stand: docs/STATUS.md).
|
||||
|
||||
## 11. Offene Punkte / benötigte Inhalte
|
||||
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
# Mandantenfähigkeit – Anforderungen
|
||||
|
||||
Stand: 23.10.2026 · Anforderungen, noch keine Planung · Planung und Umbau in einer eigenen Sitzung · Grundlage: [KONZEPT.md](KONZEPT.md) („Mehrfähigkeit offen halten“), [DESIGN-KONZEPT.md](DESIGN-KONZEPT.md) §7
|
||||
|
||||
> **Kurz:** Kein Portal und kein Marktplatz. Das Produkt ist **„die individuelle Website mit Vermieter-Funktionen“**. Einige Vermieter aus dem Bekanntenkreis sollen das System für ihre **eigene** Website nutzen können, mit eigenem Admin-Bereich und eigenen Diensten. Außerdem sollen weitere **eigene** Wohnungen unter fewo-stommer.de angeboten werden können. Das Datenmodell ist dafür nur zur Hälfte vorbereitet (§4). Der Umbau soll jetzt sauber geplant werden, solange es nur einen Vermieter gibt.
|
||||
|
||||
---
|
||||
|
||||
## 1. Szenarien
|
||||
|
||||
| # | Szenario | Beispiel | Zeitpunkt |
|
||||
|---|---|---|---|
|
||||
| S1 | **Ein Vermieter, eine Website, eine Wohnung** | heute: Brigitte, fewo-stommer.de, Strandstraße 15 | jetzt |
|
||||
| S2 | **Ein Vermieter, eine Website, mehrere Wohnungen** | weitere Wohnung der Familie unter fewo-stommer.de, evtl. an einem anderen Ort (z. B. Berge) | möglich |
|
||||
| S3 | **Weitere Vermieter mit eigener Website und Domain** | Bekannte in Kühlungsborn nutzen das System als SaaS für ihre eigene Website | möglich, wenige Mandanten |
|
||||
| – | *Kein Ziel:* gemeinsame Suche über alle Vermieter, Portal, Provisionsmodell | | |
|
||||
|
||||
## 2. Begriffe
|
||||
|
||||
| Begriff | Bedeutung |
|
||||
|---|---|
|
||||
| **Mandant (Vermieter)** | rechtlich und organisatorisch eigenständiger Vermieter. Besitzt Daten, Benutzer, Einstellungen, Dienste |
|
||||
| **Website** | Domain mit Theme, Bildwelt, Seiten, Erscheinungsbildern; gehört genau einem Mandanten. Ein Mandant kann mehrere Websites haben |
|
||||
| **Wohnung** | vermietbare Einheit; gehört genau einem Mandanten und wird auf einer (oder mehreren) seiner Websites gezeigt |
|
||||
| **Betreiber** | wir (Lars): betreiben das System für alle Mandanten |
|
||||
|
||||
## 3. Anforderungen
|
||||
|
||||
### 3.1 Trennung der Daten
|
||||
|
||||
- A1 Jeder Mandant sieht und bearbeitet **nur seine eigenen** Daten: Wohnungen, Preise, Kalender, Buchungen, Zahlungen, Gäste, Bewertungen, Portale, Texte, Fotos, Seiten, Einstellungen.
|
||||
- A2 **Gästekartei je Mandant.** Jeder Vermieter ist datenschutzrechtlich selbst Verantwortlicher; dieselbe Person kann bei zwei Mandanten zwei getrennte Gästeeinträge haben.
|
||||
- A3 Die Trennung ist **technisch erzwungen** (automatische Filter, Richtlinien, Tests), nicht nur durch die Oberfläche.
|
||||
- A4 Öffentliche Website, Buchungsformular, Angebots- und Bewertungslinks, iCal-Feeds und Cronjobs arbeiten jeweils im Kontext des richtigen Mandanten.
|
||||
|
||||
### 3.2 Admin-Bereich
|
||||
|
||||
- A5 **Eigener Admin-Bereich je Mandant**, mit dem gewohnten Aufbau (einfache Ansicht und Expertenansicht, 2FA für alle).
|
||||
- A6 **Rollen je Mandant**, wie heute: **Mandanten-Administrator**, Vermietung, Inhalte. Der Mandanten-Administrator verwaltet seinen Mandanten vollständig, aber nur diesen.
|
||||
- A6a Der **Mandanten-Administrator legt selbst Benutzer** für seinen Admin-Bereich an, vergibt und ändert Rollen, sperrt Konten, setzt 2FA zurück und vergibt Passwörter neu (wie heute Admin › Benutzer). Er kann **keine** Rechte über seinen Mandanten hinaus vergeben.
|
||||
- A6b **Benutzer können mehreren Mandanten angehören**, mit einer eigenen Rolle je Mandant (Beispiel: Lars ist Administrator bei Stommer und Vermietung bei einem Bekannten). Ein Konto, eine 2FA; Mandantenwechsel im Benutzermenü.
|
||||
- A6c Die **einfache/Expertenansicht** bleibt eine Einstellung je Benutzer (ggf. je Mandant), unabhängig von der Rolle; Rechte entscheiden weiterhin Rollen und Richtlinien.
|
||||
- A6d Rollen sind so angelegt, dass später **weitere Rollen** ergänzt werden können (z. B. Reinigung/Hausmeister mit Lesezugriff auf den Belegungskalender, Steuerberater mit Lesezugriff auf Zahlungen), ohne den Umbau zu wiederholen.
|
||||
- A7 **Betreiber-Bereich** für uns (Rolle **Betreiber**, außerhalb der Mandanten): Mandanten anlegen und sperren, den ersten Mandanten-Administrator anlegen, Dienste je Mandant freischalten, Domains zuordnen, in einen Mandanten wechseln (Support, protokolliert), Systemzustand (Cron, Mail, Backups) über alle Mandanten.
|
||||
- A8 Mandanten können Themes nur **auswählen**, nicht hochladen (Vorlagen sind ausführbarer Code). Logos dürfen sie hochladen (PNG oder geprüftes SVG).
|
||||
|
||||
### 3.3 Pro Mandant einstellbar (heute global)
|
||||
|
||||
- A9 **Vermieterdaten:** Name, Anschrift, Telefon, E-Mail, Impressum, Bankverbindung, Steuerangaben. Heute in der `.env` (`FEWO_OWNER_*`, `FEWO_BANK_*`).
|
||||
- A10 **Texte:** Mietbedingungen, Storno, Datenschutz, Mailtexte, Vertragsvorlage, FAQ, Hinweis-Banner.
|
||||
- A11 **Kommunikation:** Absenderadresse, Benachrichtigungsadressen, Postfach für Portal-Mails, Betriebsart (Test / scharf).
|
||||
- A12 **Regeln:** Fristen, Mindestaufenthalt-Regeln, Anzahlung, Löschfristen (innerhalb gesetzlicher Grenzen), Bot-Schutz-Grenzen.
|
||||
- A13 **Buchungsnummern** je Mandant (eigener Nummernkreis, z. B. `2026-0001` je Vermieter).
|
||||
- A14 **Marke:** Logo, Favicon, Logo für Mails und Vertrags-PDF – je Mandant, optional je Website abweichend.
|
||||
|
||||
### 3.4 Dienste
|
||||
|
||||
- A15 Dienste sind **je Mandant ein- und ausschaltbar**, z. B. KI-Angebotsentwürfe, KI-Vermarktungsassistent, KI-Gästekommunikation (mehrsprachig), Portal-Synchronisation, Mail-Schnellweg.
|
||||
- A16 Verbrauchsabhängige Dienste (KI) sind **je Mandant messbar** (Grundlage für spätere Abrechnung); eigene API-Schlüssel je Mandant sollen möglich sein.
|
||||
- A17 Abrechnung ist **kein** Teil des ersten Umbaus, die Datengrundlage soll aber entstehen.
|
||||
|
||||
### 3.5 Website und Design
|
||||
|
||||
- A18 Jede Website wählt **Theme** und **Bildwelt** (Grafik-Set: Bänder, Vignetten, Ornamente). Bildwelten sind Pakete wie Themes (Ordner mit Manifest und SVGs), z. B. „Ostsee“, später „Berge“.
|
||||
- A19 Themes sind **ortsneutral**: sie greifen nur auf Bildwelt-Plätze zu (Trenner, Abschlussband, Vignette je Tipp-Kategorie …), nie direkt auf eine Ostsee-Grafik.
|
||||
- A20 Bildwelt **je Wohnung überschreibbar** (S2: Berg-Wohnung unter fewo-stommer.de).
|
||||
- A21 Für S2: Bausteine können eine **Wohnung wählen** (heute immer die Hauptwohnung), die Suche kann mehrere Wohnungen anbieten, die Startseite kann eine Übersicht zeigen.
|
||||
- A22 Markengrafiken liegen nicht mehr global in `public/brand/`, sondern bei Mandant/Website (Marke) bzw. in der Bildwelt.
|
||||
|
||||
### 3.6 Betrieb
|
||||
|
||||
- A23 **Strato bleibt vorerst** (wenige Mandanten). Eigene Domains der Mandanten werden von Hand bei Strato eingerichtet (Domain, SSL, Weiterleitung auf die Anwendung). Die Anwendung erkennt den Mandanten über die Domain (wie heute die Website).
|
||||
- A24 Bei Wachstum **Umzug auf einen eigenen Server**. Nichts im Umbau darf Strato-Besonderheiten fest einbauen; Umzug ohne Datenmodelländerung.
|
||||
- A25 **Eine Datenbank für alle Mandanten** (Spalte je Mandant), kein eigener Datenbankserver je Mandant. Backups weiterhin gesamt; Export und Löschung **eines** Mandanten müssen möglich sein (Kündigung, DSGVO).
|
||||
- A26 Bestehende Daten werden **ohne Ausfall** dem Mandanten „Stommer“ zugeordnet; für Brigitte ändert sich in der Bedienung nichts.
|
||||
|
||||
### 3.7 Recht (nicht technisch, aber Voraussetzung für S3)
|
||||
|
||||
- A27 Vertrag zur Auftragsverarbeitung (AVV) mit jedem Mandanten; Nutzungsbedingungen; Unterauftragsverarbeiter (Strato, ggf. KI-Anbieter) benennen.
|
||||
- A28 Impressum und Datenschutzerklärung jeder Website sind die des Mandanten; der Betreiber erscheint nur als Dienstleister.
|
||||
|
||||
## 4. Ist-Stand (Prüfung vom 23.10.2026)
|
||||
|
||||
**Schon vorbereitet:** Tabelle `sites` (Domain, Theme); `pages` und `appearances` mit `site_id`; `properties.site_id`; Saisons, Extras, Buchungen, Sperrzeiten, Angebote, Fotos, Ausstattung, Bewertungen, Kanäle hängen an der Wohnung. Themes und Portal-Anbindung sind als austauschbare Pakete gebaut. Filament bietet eingebaute Mandantenfähigkeit (Mandantenwechsel, automatische Filter).
|
||||
|
||||
**Noch global (umzubauen):**
|
||||
|
||||
| Bereich | Ort |
|
||||
|---|---|
|
||||
| Benutzer und Rollen | `users.role` (eine Rolle systemweit; `App\Enums\UserRole`), Benutzerverwaltung nur für systemweite Administratoren |
|
||||
| Gästekartei | `guests` |
|
||||
| Einstellungen | `settings` (Schlüssel/Wert, ohne Zuordnung) |
|
||||
| Texte, FAQ, Hinweis-Banner | `content_blocks`, `faqs`, `notices` |
|
||||
| Vermieterdaten, Bank, Mail-Umleitung | `config/fewo.php` ← `.env` |
|
||||
| Portal-Postfach, Absender | `.env` / `config` |
|
||||
| Portal-Mails, Sync-Logs, Aufgaben | `portal_emails` (global), `channel_sync_logs`, `channel_tasks` (über Kanal → Wohnung, prüfen) |
|
||||
| Zahlungen | `payments` (über Buchung, prüfen) |
|
||||
| Buchungsnummern | ein Nummernkreis |
|
||||
| Markengrafiken | `public/brand/` |
|
||||
| Bausteine | nutzen immer `$theme->property()` (Hauptwohnung) |
|
||||
|
||||
## 5. Abgrenzung
|
||||
|
||||
- Kein Portal, keine gemeinsame Suche, keine Provisionen, keine Selbstregistrierung von Mandanten (der Betreiber legt sie an).
|
||||
- Keine Abrechnung im ersten Schritt (A17).
|
||||
- Kein eigener Server je Mandant (A25).
|
||||
|
||||
## 6. Abhängigkeiten zur Design-Arbeit
|
||||
|
||||
- Theme A (Designkonzept) kann **parallel** entstehen; es muss nur A19 einhalten (Bildwelt-Plätze statt fester Grafiken).
|
||||
- **Marke** (A14, A22) und **Bildwelt** (A18, A20) bauen auf dem Mandanten bzw. der Website auf und kommen nach dem Grundumbau.
|
||||
- Bis dahin liegen die neuen Grafiken als Quelle in `styles/satz3/svg/`.
|
||||
|
||||
## 7. Offene Fragen für die Planung
|
||||
|
||||
1. Mandant und Website trennen oder anfangs 1:1 zusammenlegen?
|
||||
2. Wohnungen mehreren Websites eines Mandanten zuordnen (n:m) oder genau einer?
|
||||
3. Welche Einstellungen bleiben bewusst global (z. B. Sicherheitsgrenzen, Backup)?
|
||||
4. Portal-Postfach je Mandant: eigenes Postfach oder ein Sammelpostfach mit Zuordnung?
|
||||
5. KI-Dienste: zentraler API-Schlüssel des Betreibers mit Verbrauchszählung, eigene Schlüssel der Mandanten oder beides?
|
||||
6. Reihenfolge: Mandant → Marke/Bildwelt → mehrere Wohnungen je Website (S2)?
|
||||
@@ -0,0 +1,103 @@
|
||||
# Projektstand
|
||||
|
||||
Stand: 22.10.2026, spätabends · ausgelieferter Stand: siehe neuester Git-Tag `deploy/staging/*` · 200 Tests grün
|
||||
|
||||
> Dieses Dokument ist der Einstieg für jede neue Arbeitssitzung. Bitte bei größeren Änderungen fortschreiben (Abschnitte „Fertig“, „Offen“, „Nächste Schritte“).
|
||||
|
||||
## 1. Fertig (umgesetzt, getestet, auf stommer.info)
|
||||
|
||||
**Vermietung**
|
||||
- **Preise:** Saisons mit Preis/Nacht und Mindestnächten; Preisrechner; Extras (Bettwäsche, Handtücher); Endreinigung, Zusatzperson, Anzahlungsquote, Restzahlungsfrist je Wohnung. In Folgejahr kopieren, optional mit Saisonbeginn auf einem Wochentag. *(Code: `app/Pricing`, `CopySeasonsToNextYear`)*
|
||||
- **Mindestaufenthalt mit Ausnahmen:** Kalenderlücke vollständig gefüllt; Abreise am typischen Anreisetag; Sonderangebot hebt auf; absolute Untergrenze. *(`PriceCalculator::minimumStayRelaxed`, Einstellungen „Regeln Mindestaufenthalt“)*
|
||||
- **Sonderangebote:** Rabattaktion, fester Termin (auch Pauschalpreis) und Lückenfüller (erkennt Lücken selbst). Dazu Aktionscodes, Priorität und „Hervorheben“. Die Webseite bewirbt Angebote nach eigenen Regeln (`OfferShowcase`), nebeneinander, als Liste oder rollierend. *(KONZEPT §5a)*
|
||||
- **Buchungsweg 1 – Anfrage → Angebot → Annahme** (KONZEPT §6a):
|
||||
1. Der Gast fragt unverbindlich an; der Zeitraum ist für die Haltezeit vorgemerkt.
|
||||
2. Die Vermieterin öffnet „Angebot senden“ und passt bei Bedarf Termin, Personen, Rabattcode, Preis, Gültigkeit, Nachricht und Gastdaten an.
|
||||
3. Der Gast erhält eine E-Mail mit Vertragsentwurf (PDF) und einem signierten Link.
|
||||
4. Auf der Angebotsseite nimmt er an (Annahmenachweis ohne IP) oder lehnt ab.
|
||||
5. Nach der Annahme: Bestätigung und Mietvertrag, Zahlungsfristen laufen.
|
||||
|
||||
Die Angebotsfrist verfällt automatisch. „Direkt bestätigen“ gibt es für telefonisch vereinbarte Buchungen. *(`SendOffer`, `AcceptOffer`, `RejectOffer`, `OfferController`, `resources/views/offer.blade.php`)*
|
||||
- **Zahlungen:** manuell erfassen, Erinnerungen an Anzahlung und Rest, Anreiseinformationen, Bewertungsanfrage nach Abreise.
|
||||
- **Gästekartei:** Notizen, Tags, CSV-Export, Werbe-Einwilligung mit Bestätigung per E-Mail (Double-Opt-in). Eine neue Anfrage überschreibt keine Stammdaten.
|
||||
- **Portale:** iCal-Import und -Export, Überwachung, Portal-E-Mails als schneller Weg, Aufgaben für manuelle Sperren. *(PORTALE.md)*
|
||||
- **Bewertungen:** Einladung per E-Mail, Freigabe im Admin, Anzeige mit Pflichthinweis zur Echtheit.
|
||||
|
||||
**Verwaltung (Admin)**
|
||||
- **Rollen:** Administrator, Vermietung, Inhalte.
|
||||
- **Ansichten:** Die **einfache Ansicht** zeigt Anfragen & Buchungen, Sperrzeiten, **Preise & Angebote**, Gäste, Portal-Aufgaben, Bewertungen und Bilder. Die **Expertenansicht** zeigt alles. Umschalten im Benutzermenü.
|
||||
- **Sicherheit:** 2FA ist für **alle** Konten Pflicht; Administratoren können die 2FA eines anderen Kontos zurücksetzen und Passwörter neu vergeben.
|
||||
|
||||
**Webseite**
|
||||
- **Theme-System:** Basis-Theme „Ostsee-Licht“, 15 Bausteine, Seiten-Baukasten.
|
||||
- **Erscheinungsbilder** für Standard, Sommer, Winter, Weihnachten und Silvester:
|
||||
- Bilder je Baustein, Bausteine nur in bestimmten Erscheinungsbildern,
|
||||
- Vorschau-Links, Bildauswahl mit Vorschaubild.
|
||||
- **Markengrafiken** im Theme: Logo, Favicon, Symbole, Wellenband, Illustration. *(`public/brand`, `partials/brand`)*
|
||||
- **Theme-Werkzeuge:** `themes:make`, `themes:check`, `themes:preview`; Anleitung in THEME-ERSTELLUNG.md.
|
||||
- **Fotos:** 39 Fotos aus dem alten WordPress importiert, GPS- und Kameradaten entfernt.
|
||||
|
||||
**Betrieb und Datenschutz**
|
||||
- **Deployment:** atomare Versionen auf Strato, Gesundheitscheck mit automatischem Zurückschalten; Versionsgeschichte als Git-Tags. Nur die aktive Version liegt auf dem Server (Strato-Dateilimit).
|
||||
- **Datenbank-Backup:** täglich; `scripts/backup-pull.sh` holt es samt Dateien aufs NAS.
|
||||
- **Datenschutz:**
|
||||
- Anonymisierung und Löschfristen (Vorschläge) laufen täglich.
|
||||
- Sicherheits-Header sind gesetzt; Automations-Tokens werden per Header übergeben.
|
||||
- Keine externen Quellen (Schriften selbst gehostet).
|
||||
- **Betriebsart** (System › Betrieb): Testbetrieb (Standard) schickt alle Mails nur an eine Testadresse, „scharf geschaltet“ an die echten Empfänger; Hinweisbanner in der Verwaltung. `mail:test` prüft den Versand; alle 17 Mail-Typen werden in Tests vollständig aufgebaut.
|
||||
- **Bot-Schutz der Buchungsanfrage:** Köderfeld, Zeitsperre, Begrenzungen je IP/E-Mail/gesamt, höchstens 2 gleichzeitige Vormerkungen je E-Mail, keine Links (ohne externen Captcha-Dienst).
|
||||
- **Testbetrieb:** `noindex`.
|
||||
|
||||
## 2. Stand auf stommer.info (Testbetrieb)
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Konten | `lars@stommer.com` (Administrator); Konto für Brigitte noch anzulegen (Administrator, **einfache Ansicht**) |
|
||||
| Daten | Wohnung, Preise 2026, 39 Fotos, Seiten, 5 Erscheinungsbilder; **Testbuchung 2026-0002** („E2E Testgast“, angenommenes Angebot) – darf gelöscht werden |
|
||||
| E-Mail | Betriebsart **Testbetrieb** (System › Betrieb), Testadresse `lars@stommer.com` – alle Mails gingen nur dorthin. Versandweg aber noch `log` (nichts wird zugestellt): `MAIL_MAILER=smtp` + `MAIL_PASSWORD` (Postfach **info@fewo-stommer.de** = Absender) in `shared/.env` selbst eintragen, dann `artisan mail:test` (BETRIEB.md §5a) |
|
||||
| Cronjob | **noch nicht eingerichtet** – ohne ihn laufen Fristabläufe, Erinnerungen, Kalenderabgleich, Backups nicht automatisch (BETRIEB.md §6) |
|
||||
| Typischer Anreisetag | noch nicht eingetragen (Preise & Angebote › Saisons › Regeln Mindestaufenthalt) |
|
||||
|
||||
## 3. Offen
|
||||
|
||||
**Entscheidungen und Inhalte (Betreiber)**
|
||||
- Impressum und Datenschutzerklärung werden separat erstellt; dann unter Webseite › Texte › Rechtliches eintragen.
|
||||
- Mietbedingungen, Storno-Regeln, AGB; Texte zu Angebot und Annahme, einschließlich der Beschriftung des Annahme-Buttons, fachkundig freigeben lassen (Webseite › Texte).
|
||||
- Löschfristen nach allgemeiner Rechtsauffassung bestätigen (BETRIEB.md §7a); Auftragsverarbeitung mit Strato im Kundenbereich prüfen.
|
||||
- Bankverbindung (`FEWO_BANK_*`), Preise 2027, Meldeschein: Ob der Ferienservice Balu ihn übernimmt, ist noch zu klären; die Kurabgabe erledigt Balu vor Ort.
|
||||
- Sprachen: nur Deutsch oder auch Englisch?
|
||||
|
||||
**Technik**
|
||||
- Cronjob auf Strato einrichten (BETRIEB.md §6).
|
||||
- Neues Design-Theme: läuft in einer eigenen Session auf dem privaten Rechner (ZUSAMMENARBEIT.md, THEME-ERSTELLUNG.md).
|
||||
- Logo in E-Mails und im Vertrags-PDF (`public/brand/logo-600.png` liegt bereit).
|
||||
- Content-Security-Policy: braucht wegen Livewire/Filament Nonces und einen sorgfältigen Test.
|
||||
- Produktion `www.fewo-stommer.de` vorbereiten:
|
||||
- eigener Deploy-Ordner, Datenbank und `.env`,
|
||||
- Umleitungen von der alten WordPress-Seite,
|
||||
- echte Testbuchungen (GO-LIVE-CHECKLISTE.md).
|
||||
- Später:
|
||||
- Buchungsweg 2 (verbindliche Direktbuchung), erst bei verlässlicher Synchronisation mit FeWo-direkt,
|
||||
- Portalbuchungen als vollwertige Buchungen (DATENMODELL-KONZEPT.md),
|
||||
- Stornoformular für Gäste, KI-Angebotsentwürfe, Marketing und Social Media.
|
||||
- SSH-Schlüssel des Firmen-Laptops vom Server entfernen, sobald der private PC eingerichtet ist (BETRIEB.md §4).
|
||||
|
||||
## 4. Nächste Schritte (Vorschlag)
|
||||
|
||||
1. Cronjob einrichten; SMTP einschalten und mit `mail:test` prüfen (Mails landen wegen Testbetrieb nur bei Lars); Konto für Brigitte anlegen.
|
||||
1a. Vor dem Go-Live: System › Betrieb auf „scharf geschaltet“ stellen – erst dann erhalten Gäste die Mails. Beim Go-Live außerdem unter System › Betrieb › Adressen Kontakt-/Antwortadresse und Benachrichtigungen von fewo@stommer.de auf **info@fewo-stommer.de** umstellen (Entscheidung 23.10.2026; Absender ist bereits info@fewo-stommer.de).
|
||||
2. Brigitte probt Anfrage → Angebot → Annahme mit einem eigenen Test (Angebotslink über die Aktion „Angebotslink“).
|
||||
3. Design-Theme auf dem privaten Rechner (eigene Session, siehe ZUSAMMENARBEIT.md).
|
||||
4. Rechtstexte und Bedingungen einpflegen, Produktion einrichten, Umzug von WordPress.
|
||||
|
||||
## 5. Schnellreferenz Code
|
||||
|
||||
| Bereich | Ort |
|
||||
|---|---|
|
||||
| Geschäftsabläufe | `app/Actions/*` (CreateReservation, SendOffer, AcceptOffer, RejectOffer, ConfirmBooking, DeclineBooking, ExpireReservations, RecordPayment, SyncChannel, ProcessPortalMail, AnonymizeGuests …) |
|
||||
| Preise/Angebote | `app/Pricing/*` (PriceCalculator, OfferShowcase, AdvertisedOffer), `app/Availability/*` (AvailabilityChecker, GapFinder) |
|
||||
| Verwaltung | `app/Filament/**` (Ansichten: `App\Enums\AdminMode`, Trait `FollowsAdminMode`) |
|
||||
| Webseite | `app/Themes/**`, `resources/themes/ostsee-licht/**`, `config/themes.php` |
|
||||
| Befehle | `users:create`, `photos:import`, `photos:strip-metadata`, `backup:database`, `themes:make/check/preview`, `channels:sync`, `bookings:expire-holds` |
|
||||
| Zeitpläne | `routes/console.php` (jede Minute Postfach, alle 5 Min. Fristen/Abgleich, täglich Erinnerungen, Bewertungen, Anonymisierung 03:00, Backup 02:30) |
|
||||
| Einstellungen | `config/fewo.php` (Frist, Löschfristen, Backup, Mail-Umleitung), `config/content.php` (bearbeitbare Texte) |
|
||||
@@ -2,6 +2,8 @@ # Neues Theme erstellen – verbindliche Bauanleitung
|
||||
|
||||
Stand: 22.10.2026 · gilt für jede Design-Sitzung (z. B. auf dem privaten Rechner mit dem Skill/Plugin `frontend-design`) · Architektur und Datenverträge: [THEMES.md](THEMES.md)
|
||||
|
||||
> **Vor dem Start:** [ZUSAMMENARBEIT.md](ZUSAMMENARBEIT.md) lesen – die Design-Session arbeitet auf dem Branch `theme/<key>` und nur im eigenen Theme-Ordner; Wünsche an die Anwendung gehen in ZUSAMMENARBEIT.md §5, Änderungen am Vorlagen-Vertrag stehen in §6.
|
||||
|
||||
> **Kurz:** Ein neues Design entsteht als **zusätzliches Theme** in einem eigenen Ordner `resources/themes/<key>/`. Das vorhandene Theme **„Ostsee-Licht“ wird nicht verändert**. Das neue Theme erbt alles, was es nicht selbst mitbringt, wird mit `php artisan themes:check <key>` geprüft, per Vorschau-Link angesehen und erst dann im Admin für die Website ausgewählt. Zurück geht es jederzeit durch Auswahl des alten Themes.
|
||||
|
||||
---
|
||||
@@ -19,7 +21,7 @@ ## 1. Grundregeln (nicht verhandelbar)
|
||||
## 2. Schnellstart
|
||||
|
||||
```bash
|
||||
git pull # aktuellen Stand holen
|
||||
git checkout main && git pull && git checkout -b theme/<key> # eigener Branch (ZUSAMMENARBEIT.md §2)
|
||||
composer install && npm ci # einmalig auf dem Rechner
|
||||
cp .env.example .env && php artisan key:generate # einmalig, lokale SQLite-Datenbank …
|
||||
touch database/database.sqlite # … als leere Datei anlegen (PowerShell: New-Item database/database.sqlite)
|
||||
@@ -199,6 +201,18 @@ ## 7. Schriften, Bilder, Icons, Bewegung
|
||||
- **Icons:** Inline-SVG; Heroicons sind über Blade verfügbar (`<x-heroicon-o-sparkles class="size-5" />`, kommt mit Filament).
|
||||
- **Bewegung:** nur mit Zweck; `@media (prefers-reduced-motion: no-preference)` und `@supports (animation-timeline: view())` als Verbesserung. Ohne Animation und ohne JS muss alles vollständig funktionieren. Kein Autoplay-Video mit Ton; Video nur stumm, mit Standbild und nicht bei `prefers-reduced-data`.
|
||||
|
||||
## 7a. Markengrafiken
|
||||
|
||||
Logo, Favicon, Symbole und Wellenband liegen als saubere SVGs in `public/brand/` (Beschreibung und Farben: `styles/README.md`). In Vorlagen inline einbinden – dann färben sie sich über CSS-Variablen:
|
||||
|
||||
```blade
|
||||
@include('theme::partials.brand', ['name' => 'mark', 'class' => 'h-11 w-auto']) {{-- Bildmarke --}}
|
||||
@include('theme::partials.brand', ['name' => 'wave-divider', 'class' => 'w-full h-auto']) {{-- Trenner --}}
|
||||
@include('theme::partials.brand', ['name' => 'icon-location', 'class' => 'size-10', 'label' => 'Lage'])
|
||||
```
|
||||
|
||||
Verfügbar: `mark`, `logo`, `wave-divider`, `icon-apartment`, `icon-sea`, `icon-terrace`, `icon-location`. Farben: `--brand-navy` (Standard = Textfarbe `--ink`, damit dunkle Erscheinungsbilder funktionieren), `--brand-teal`, `--brand-wave`, `--brand-sun` – im eigenen `theme.css` oder lokal (`class="[--brand-navy:var(--band-ink)]"`) überschreibbar. Favicon/App-Symbol bindet das Layout ein (`asset('brand/favicon.svg')`). Grafiken nicht verändern (Marke); eigene dekorative Grafiken gehören in den Theme-Ordner.
|
||||
|
||||
## 8. Qualität
|
||||
|
||||
Es gelten [THEMES.md](THEMES.md) §8:
|
||||
@@ -213,7 +227,7 @@ ## 9. Prüfen, ansehen, einbinden
|
||||
1. **Prüfen:** `php artisan themes:check <key>`. Rote Punkte (✗) sind Fehler und müssen behoben werden, gelbe (!) sind Hinweise.
|
||||
2. **Ansehen, ohne etwas umzuschalten:** `php artisan themes:preview <key>` gibt für jede Seite signierte Links aus: „heute“ und je Erscheinungsbild (Standard, Sommer, Winter, Weihnachten, Silvester). Im Admin geht das auch unter System › Websites › Theme: Theme wählen, dann **„Vorschau“** (öffnet einen neuen Tab), noch nicht speichern. Vorschauseiten sind `noindex`. Klickt man in der Vorschau auf einen Menülink, verlässt man sie; deshalb für jede Seite den eigenen Link verwenden.
|
||||
3. **Bauen und testen:** `npm run build` und `php artisan test --compact`. Der Test `test_installed_themes_fulfil_the_theme_contract` lässt die Suite rot werden, wenn ein Theme die Prüfung nicht besteht.
|
||||
4. **Einreichen:** Commit (nur `resources/themes/<key>/**`, ggf. `package*.json`) und Push nach Gitea.
|
||||
4. **Einreichen:** Commit (nur `resources/themes/<key>/**`, ggf. `package*.json`) auf `theme/<key>`, Push nach Gitea, Merge-Request nach `main` (ZUSAMMENARBEIT.md §2). Ausgeliefert wird nur aus `main`.
|
||||
5. **Ausliefern:** `bash scripts/deploy.sh staging deploy` (Testbetrieb https://stommer.info, siehe [BETRIEB.md](BETRIEB.md)). Die Vorschau-Links funktionieren dort genauso (`php artisan themes:preview <key>` über `bash scripts/deploy.sh staging artisan themes:preview <key>`).
|
||||
6. **Auswählen:** Admin › System › Websites › Website bearbeiten › **Theme** wählen › Speichern. Die Farbfelder darunter zeigen jetzt die Tokens des neuen Themes.
|
||||
7. **Zurück:** dort das vorherige Theme wählen. Alle Themes bleiben installiert; es wird nichts überschrieben.
|
||||
@@ -223,6 +237,7 @@ ## 10. Checkliste vor Abschluss
|
||||
- [ ] Theme mit `themes:make` angelegt; `resources/themes/ostsee-licht/**` unverändert (`git status`)
|
||||
- [ ] `themes:check <key>` ohne Fehler; Warnungen bewertet
|
||||
- [ ] Alle Seiten (`/`, `/wohnung`, `/kuehlungsborn`, `/buchen`, `/kontakt`, `/impressum`, `/datenschutz`) auf Handy (360 px), Tablet und Desktop geprüft
|
||||
- [ ] Seiten außerhalb der Bausteine im neuen Layout geprüft: **Angebotsseite** des Gastes (Admin › Buchung › „Angebot senden“, dann „Angebotslink“) und **Bewertungsseite**
|
||||
- [ ] Alle 5 Erscheinungsbilder über `themes:preview` geprüft (Silvester ist dunkel, Kontraste!)
|
||||
- [ ] Buchungsablauf in der Vorschau durchgespielt: Termin wählen → Preis erscheint → Anfrage absenden
|
||||
- [ ] Sonderangebote in allen drei Darstellungen (Baustein-Einstellung) angesehen
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
# Zusammenarbeit – parallele Sessions ohne Konflikte
|
||||
|
||||
Stand: 22.10.2026 · gilt für alle Arbeitssitzungen (Mensch oder KI), die gleichzeitig am Projekt arbeiten
|
||||
|
||||
## 1. Wer arbeitet woran
|
||||
|
||||
| Session | Rechner | Aufgabe | Branch | Darf ändern |
|
||||
|---|---|---|---|---|
|
||||
| **A – Anwendung** | Firmen-Laptop (oder jeder andere) | Funktionen, Verwaltung, Abläufe, Betrieb, Deployment | `main` (größere Vorhaben: `feature/<thema>`) | alles **außer** `resources/themes/<neues-theme>/**` |
|
||||
| **B – Design** | privater PC, Plugin `frontend-design` | ein **neues, zusätzliches Theme** | `theme/<key>` (z. B. `theme/ostsee-nacht`) | nur `resources/themes/<key>/**`, `package.json`/`package-lock.json` (nur `@fontsource`-Schriften), `docs/STATUS.md` (eigener Abschnitt) |
|
||||
|
||||
Session B ändert **nicht**: `app/**`, `config/**`, `database/**`, `routes/**`, `resources/views/**` (auch nicht die Livewire-Formulare), `resources/themes/ostsee-licht/**`, `public/brand/**`, andere Dokumente. Braucht das Theme etwas aus diesen Bereichen (neue Daten in einem Baustein, ein neuer Baustein, eine Schrift-Lizenzfrage …), trägt Session B den Wunsch in §5 ein. Session A setzt ihn um.
|
||||
|
||||
## 2. Ablauf Session B (Design)
|
||||
|
||||
```bash
|
||||
git clone https://gitea.stommer.de/Lars/fewo-stommer.git && cd fewo-stommer # einmalig
|
||||
git checkout main && git pull
|
||||
git checkout -b theme/<key> # einmalig
|
||||
php artisan themes:make <key> --name="…" --description="…"
|
||||
# … arbeiten (docs/THEME-ERSTELLUNG.md) …
|
||||
git add resources/themes/<key> package.json package-lock.json && git commit -m "Theme <key>: …"
|
||||
git push -u origin theme/<key>
|
||||
```
|
||||
|
||||
**Täglich vor der Arbeit** den Stand der Anwendung übernehmen, damit Vorlagen-Vertrag und Tests aktuell sind:
|
||||
|
||||
```bash
|
||||
git fetch origin && git merge origin/main # Konflikte kann es nur in package-lock.json geben, siehe §4
|
||||
php artisan migrate && npm ci && php artisan test --compact
|
||||
```
|
||||
|
||||
**Zusammenführen:** Sobald `php artisan themes:check <key>` ohne Fehler und `php artisan test --compact` grün ist, Merge-Request in Gitea von `theme/<key>` nach `main` – oder lokal `git checkout main && git pull && git merge --no-ff theme/<key> && git push`. Ein unfertiges Theme darf zusammengeführt werden. Es ist installiert, aber nicht aktiv, solange es niemand unter Admin › Websites auswählt. Zusammenführen hilft sogar, weil dann die Vorschau auf stommer.info möglich ist.
|
||||
|
||||
## 3. Ausliefern (Deployment)
|
||||
|
||||
- **Nur aus `main`, nur nach `git pull`, nur mit grünen Tests.** Das Skript baut den letzten Commit des **lokalen** Stands. Wer aus einem Feature- oder Theme-Branch ausliefert, nimmt alle Änderungen der anderen Session vom Server.
|
||||
- Theme-Vorschau auf stommer.info: erst nach dem Zusammenführen in `main`, dann `bash scripts/deploy.sh staging deploy` und `bash scripts/deploy.sh staging artisan themes:preview <key>` (gibt die Vorschau-Links aus).
|
||||
- Das neue Theme aktivieren (Admin › System › Websites › Theme) entscheidet Lars, nach Sichtung der Vorschau.
|
||||
- `shared/.env` auf dem Server ändert nur Lars (Passwörter); Sessions ändern dort höchstens nicht geheime Werte und dokumentieren das in BETRIEB.md.
|
||||
- Jede Session braucht ihren **eigenen SSH-Schlüssel** für Strato (BETRIEB.md §4); keine Schlüssel kopieren.
|
||||
|
||||
## 4. Konflikte vermeiden
|
||||
|
||||
| Datei/Bereich | Regel |
|
||||
|---|---|
|
||||
| `package.json`, `package-lock.json` | Während der Theme-Phase installiert nur Session B neue npm-Pakete (Schriften). Bei Konflikt: Version von `main` übernehmen, dann eigene Pakete neu installieren: `git checkout --theirs package-lock.json && npm install @fontsource/<schrift>` |
|
||||
| Vorlagen-Vertrag (`app/Themes/**`, Bausteine, Basis-Theme `ostsee-licht`, THEMES.md §4/§5, THEME-ERSTELLUNG.md §6) | Ändert nur Session A – und trägt jede Änderung in §6 ein, damit Session B sie nachzieht |
|
||||
| `docs/STATUS.md` | Beide dürfen schreiben – Session B nur in einem eigenen Abschnitt „Design-Theme“ |
|
||||
| `public/build` | Wird nicht committet (Build-Ergebnis); nie von Hand ändern |
|
||||
| Datenbank-Migrationen | Nur Session A |
|
||||
|
||||
## 4a. Automatische Synchronisation (optional, je Rechner)
|
||||
|
||||
`scripts/git-autosync.ps1` zieht alle 5 Minuten neue Commits von Gitea – nur per Vorspulen (`--ff-only`), nie bei lokalen, nicht committeten Änderungen an versionierten Dateien und nie, wenn beide Seiten neue Commits haben (dann Hinweis im Protokoll, bitte von Hand `git pull`). Protokoll: `storage/logs/git-autosync.log`, inklusive Hinweis, wenn danach `npm ci && npm run build`, `composer install` oder `php artisan migrate` nötig ist.
|
||||
|
||||
```powershell
|
||||
scripts\git-autosync.ps1 -Register # einrichten (Windows-Aufgabenplanung, aktueller Benutzer)
|
||||
scripts\git-autosync.ps1 -Unregister # entfernen
|
||||
scripts\git-autosync.ps1 # einmal von Hand
|
||||
```
|
||||
|
||||
Eingerichtet auf: Firmen-Laptop (23.10.2026).
|
||||
|
||||
**Lock-Datei:** Nach jeder Paketänderung `npm install` ausführen und `package-lock.json` mit committen; vor dem Push prüfen, dass `npm ci` fehlerfrei durchläuft – das Deploy-Skript und die CI bauen mit `npm ci` und brechen sonst ab (am 23.10. passiert: Lock-Datei passte nicht zu package.json).
|
||||
|
||||
## 5. Wünsche der Design-Session an die Anwendung
|
||||
|
||||
*(Session B trägt hier ein, was sie braucht; Session A erledigt es und vermerkt „erledigt in <commit>“.)*
|
||||
|
||||
| Datum | Wunsch | Status |
|
||||
|---|---|---|
|
||||
| 23.10.2026 | **Theme-Optionen** in `theme.json › options` (Auswahl/Schalter, z. B. Titelbild Bogen/Rechteck, Bewegung an/aus), im Admin unter Websites und je Erscheinungsbild überschreibbar (DESIGN-KONZEPT §7 Nr. 1) | offen |
|
||||
| 23.10.2026 | **Darstellungsvarianten je Baustein** (`theme.json › variants`), Feld „Darstellung“ im Seiten-Baukasten (DESIGN-KONZEPT §7 Nr. 2) | offen |
|
||||
| 23.10.2026 | **Baustein „Tipps der Gastgeberin“**: Orte mit Kategorie (Strand, Seebrücke, Bahn, Rad, Wald …), Weg/Gehzeit, Text, Foto, Karten-Link; saisonal filterbar. Seebad zeigt je Kategorie eine Vignette der Bildwelt (DESIGN-KONZEPT §7 Nr. 4) | offen |
|
||||
| 23.10.2026 | **Baustein „Gut zu wissen“**: strukturierte Angaben (Zugang/Stufen, Dusche, Rollstuhl, Haustiere, An-/Abreisezeiten, Parken) an der Wohnung; Seebad stellt ihn in der Kartusche dar (DESIGN-KONZEPT §7 Nr. 5) | offen |
|
||||
| 23.10.2026 | **Bildwelt-System** (MANDANTEN-ANFORDERUNGEN A18–A20): Seebad nutzt schon Plätze über `partials/motif` (`mark`, `divider`, `closing`, `crest`, `gulls`, `vignette.*`) | offen |
|
||||
| 23.10.2026 | Hilfetext „*Wort* wird hervorgehoben“ im Titelbereich ist theme-abhängig (Seebad hebt nicht hervor) – Hinweis neutral formulieren | offen |
|
||||
|
||||
## 6. Änderungsprotokoll Vorlagen-Vertrag
|
||||
|
||||
*(Session A trägt hier jede Änderung ein, die Theme-Vorlagen betrifft.)*
|
||||
|
||||
| Datum | Änderung | Betrifft |
|
||||
|---|---|---|
|
||||
| 22.10.2026 | `theme-base.css` (Schriften, Token-Mapping, Basis-Klassen) von `theme.css` getrennt – Child-Themes importieren `theme-base.css` | theme.css |
|
||||
| 22.10.2026 | Markengrafiken: `@include('theme::partials.brand', ['name' => 'mark', 'class' => '…'])` (mark, logo, wave-divider, icon-apartment/-sea/-terrace/-location); Farben über `--brand-navy/-teal/-wave/-sun` (navy = Textfarbe) | header, footer, facts, location, image |
|
||||
| 22.10.2026 | `hero`: `$featuredOffer` (wichtigstes hervorgehobenes Angebot oder null) | sections/hero |
|
||||
| 22.10.2026 | `offers`: `$display` (grid/list/rotating), `$offers` = `AdvertisedOffer` (Termin, Preis, `bookingUrl()`); rollierend über `data-rotator*` | sections/offers |
|
||||
| 22.10.2026 | Seiten außerhalb der Bausteine, die das Theme-Layout nutzen: Angebotsseite `resources/views/offer.blade.php`, Bewertung `resources/views/review.blade.php` – beim Theme-Test mitprüfen | layouts/app |
|
||||
@@ -4,6 +4,10 @@
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"@fontsource/atkinson-hyperlegible-next": "^5.3.0",
|
||||
"@fontsource/newsreader": "^5.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@fontsource/cormorant-garamond": "^5.3.0",
|
||||
"@fontsource/figtree": "^5.3.0",
|
||||
@@ -44,6 +48,15 @@
|
||||
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/atkinson-hyperlegible-next": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/atkinson-hyperlegible-next/-/atkinson-hyperlegible-next-5.3.0.tgz",
|
||||
"integrity": "sha512-8p1tHVoPDo6oYwSO3sMw5snGwFwSf3TmeSF9Gcj792GXdsg6oqvhoItbj6Hj/XZIk0Xs+Cwu6pkLBAl3Q5HrwA==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/cormorant-garamond": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/cormorant-garamond/-/cormorant-garamond-5.3.0.tgz",
|
||||
@@ -64,6 +77,15 @@
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource/newsreader": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource/newsreader/-/newsreader-5.3.0.tgz",
|
||||
"integrity": "sha512-AFR6ZKY89GNL+9qBI2P2+66NhD5bhOj/v6fsLnFYLM4E0JnMB1yKb+Ro8cA64i1hwAWoBfTq5CHJGWH1toLDkw==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@jridgewell/gen-mapping": {
|
||||
"version": "0.3.13",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
|
||||
@@ -259,9 +281,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -279,9 +298,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -299,9 +315,6 @@
|
||||
"ppc64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -319,9 +332,6 @@
|
||||
"s390x"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -339,9 +349,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -359,9 +366,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -562,9 +566,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -582,9 +583,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -602,9 +600,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -622,9 +617,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -664,6 +656,72 @@
|
||||
"node": ">=14.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/core": {
|
||||
"version": "1.11.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@emnapi/wasi-threads": "1.2.2",
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime": {
|
||||
"version": "1.11.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/wasi-threads": {
|
||||
"version": "1.2.2",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@napi-rs/wasm-runtime": {
|
||||
"version": "1.1.4",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"@tybys/wasm-util": "^0.10.1"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/Brooooooklyn"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@emnapi/core": "^1.7.1",
|
||||
"@emnapi/runtime": "^1.7.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/@tybys/wasm-util": {
|
||||
"version": "0.10.2",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "MIT",
|
||||
"optional": true,
|
||||
"dependencies": {
|
||||
"tslib": "^2.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-wasm32-wasi/node_modules/tslib": {
|
||||
"version": "2.8.1",
|
||||
"dev": true,
|
||||
"inBundle": true,
|
||||
"license": "0BSD",
|
||||
"optional": true
|
||||
},
|
||||
"node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
|
||||
"version": "4.3.3",
|
||||
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.3.tgz",
|
||||
@@ -1377,9 +1435,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -1401,9 +1456,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -1425,9 +1477,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -1449,9 +1498,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -2176,9 +2222,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -2200,9 +2243,6 @@
|
||||
"arm64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -2224,9 +2264,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"glibc"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
@@ -2248,9 +2285,6 @@
|
||||
"x64"
|
||||
],
|
||||
"dev": true,
|
||||
"libc": [
|
||||
"musl"
|
||||
],
|
||||
"license": "MPL-2.0",
|
||||
"optional": true,
|
||||
"os": [
|
||||
|
||||
@@ -17,5 +17,9 @@
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@laravel/multiplex": "^0.4.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/atkinson-hyperlegible-next": "^5.3.0",
|
||||
"@fontsource/newsreader": "^5.3.0"
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,16 @@
|
||||
// Register the Composer autoloader...
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
// Strato: the domain points at the deployment folder and .htaccess forwards to releases/<version>/public,
|
||||
// and the web server then reports the rewritten path in REQUEST_URI/SCRIPT_NAME. Laravel would see
|
||||
// "/releases/…/public/angebot/2" instead of "/angebot/2" (signed links would fail). The site is always
|
||||
// served from the domain root, so the internal prefix is removed here.
|
||||
if (preg_match('~^/(?:releases/[^/?]+|current)/public(?=[/?]|$)~', $_SERVER['REQUEST_URI'] ?? '', $internalPrefix)) {
|
||||
$path = substr($_SERVER['REQUEST_URI'], strlen($internalPrefix[0]));
|
||||
$_SERVER['REQUEST_URI'] = str_starts_with($path, '/') ? $path : '/'.$path;
|
||||
$_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF'] = '/index.php';
|
||||
}
|
||||
|
||||
// Bootstrap Laravel and handle the request...
|
||||
/** @var Application $app */
|
||||
$app = require_once __DIR__.'/../bootstrap/app.php';
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
# Theme „Seebad“ (`seebad`)
|
||||
|
||||
Child-Theme von `ostsee-licht`, Richtung A aus [docs/DESIGN-KONZEPT.md](../../../docs/DESIGN-KONZEPT.md): ruhiges Magazin für Paare, große und gut lesbare Schrift, Titelbild mit Bogen, Bildwelt „Ostsee“. Vorlagen, die hier fehlen, kommen vom Eltern-Theme.
|
||||
|
||||
- Anleitung und Vorlagen-Vertrag: `docs/THEME-ERSTELLUNG.md`, `docs/THEMES.md` §5
|
||||
- Prüfen: `php artisan themes:check seebad`
|
||||
- Ansehen ohne Umschalten: `php artisan themes:preview seebad` oder Admin › System › Websites › Theme „Seebad“ › „Vorschau“
|
||||
|
||||
## Gestaltung
|
||||
|
||||
| | |
|
||||
|---|---|
|
||||
| Schriften | Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung) – selbst gehostet über `@fontsource` |
|
||||
| Logo | Bildmarke aus `styles/satz4` (vektorisiert: `styles/satz4/svg/logo-*.svg`, für die Website als WebP 360/720/1440 in `img/`), Favicon = vereinfachter Eckbau mit Rundbogengaube (`img/favicon.svg`) |
|
||||
| Farben | aus dem Logo: Navy `#13294B` (Schrift, Bänder), Dach-Terrakotta abgedunkelt `#A8432A` (Akzent), Wellen `#1E5F94`/`#2BB7D6`, Sonne `#F6C356`; Grund Kreideweiß `#F7F8F6` |
|
||||
| Grundgröße | 18 px, ab 1024 px 19 px; Schaltflächen und Felder mindestens 48 px hoch |
|
||||
| Bogen | nur das Titelbild (`.arch`): Rundbogen wie die Gaube des Hauses, mit Fasche (weiße Umrandung + feine Linie) und Schlussstein (`.keystone`) |
|
||||
| Kartusche | Doppelrahmen (`.cartouche`) mit Rundbogengaube als Kopf und Kopfbändern der Terrassen als Eckkonsolen |
|
||||
| Geländer | Balkongeländer des Hauses als Band am oberen Rand des dunklen Zitat-Bands (auf hellem Grund zu unruhig) |
|
||||
| Bewegung | Wellenbänder treiben langsam (`.motif-drift`), Möwen gleiten (`.motif-glide`); aus bei „Bewegung reduzieren“ |
|
||||
| Hervorhebung | `*Wort*` im Titel wird bewusst **nicht** kursiv gesetzt (ruhigere Überschrift) |
|
||||
|
||||
## Bildwelt
|
||||
|
||||
Grafiken liegen in `motifs/` (Quelle: `styles/satz3/svg/`) und werden nur über Plätze eingebunden:
|
||||
`@include('theme::partials.motif', ['slot' => 'divider', 'class' => '…'])`. Plätze: `divider`, `closing`, `crest` (Rundbogengaube), `railing` (Balkongeländer), `bracket` (Kopfband), `gulls`, `vignette.beach|pier|train|bike|forest`. Die Bildmarke des Logos kommt als Bild über `partials/logo` (Illustration – als Inline-SVG zu groß). Die Zuordnung Platz → Datei steht nur in `partials/motif.blade.php`, damit ein späteres Bildwelt-System (MANDANTEN-ANFORDERUNGEN A18/A19) sie ersetzen kann. Farben über `--brand-navy` (= Textfarbe), `--brand-paper` (= Flächen), `--brand-teal`, `--brand-wave`, `--brand-sun`, `--brand-reed`, `--brand-brick`.
|
||||
|
||||
## Eigene Vorlagen
|
||||
|
||||
| Datei | Zweck |
|
||||
|---|---|
|
||||
| `layouts/app` | Grundgerüst (größere Grundschrift, Lightbox mit großer Schließen-Fläche) |
|
||||
| `partials/header` | Logo-Bildmarke, Menü, Telefon (ab 1536 px), „Verfügbarkeit prüfen“; Handy-Menü als dunkle Tafel mit großen Links, Anruf-Taste und Seebrücken-Band |
|
||||
| `partials/footer` | Seebrücken-Band, Bildmarke, Kontakt, Rechtliches |
|
||||
| `partials/banner` | Hinweis-Banner mit Möwen |
|
||||
| `partials/mobile-booking-bar` | „Verfügbarkeit prüfen“ und Anruf-Taste |
|
||||
| `partials/motif` | Bildwelt-Grafiken inline nach Platz |
|
||||
| `partials/logo` | Bildmarke als responsives WebP (`Vite::asset`, `theme.js` lädt `img/**`) |
|
||||
| `sections/hero` | Titelbild mit Bogen, Titel, Suche im Kasten, hervorgehobenes Angebot; darunter Wellenband mit Sonne |
|
||||
| `sections/facts` | Eckdaten in großer Serifenschrift, ohne Symbole |
|
||||
| `sections/text_image` | Magazin-Raster (großes Bild + zwei kleine) |
|
||||
| `sections/location` | Lage auf weißer Fläche, Fotos mit Bildunterschrift in Serifenschrift |
|
||||
| `sections/host` | Zitat der Gastgeberin auf dunklem Band, gleitende Möwen; Porträt optional |
|
||||
| `sections/cta` | Abschluss in der Kartusche mit Rundbogengaube und Kopfbändern, Foto optional daneben |
|
||||
| `sections/amenities` | Ausstattung mit Bereichs-Überschriften in Serifenschrift und Häkchen |
|
||||
| `sections/prices` | Nebenkosten als Liste, Saisontabelle mit großer Schrift; auf dem Handy Zeitraum unter der Saison |
|
||||
| `sections/gallery` | Raster mit großem Titelfoto, Bildbeschreibung beim Antippen/Fokus, Lightbox |
|
||||
| `sections/offers` | Angebote als Rahmen mit Kopfband-Konsolen; Vorteil, Termin, Bedingungen mit Häkchen, Preis groß; alle drei Darstellungen |
|
||||
| `sections/reviews` | Durchschnitt groß, Kategorien, Zitate in Serifen-Kursiv; Echtheitshinweis (§ 5b UWG) in normaler Textgröße |
|
||||
| `sections/faq` | Fragen in Serifenschrift, große Plus-Schaltfläche |
|
||||
| `sections/contact` | zwei Kartuschen mit Kopfbändern |
|
||||
| `sections/booking` | zusätzlich „Lieber persönlich?“ mit Telefonnummer |
|
||||
| `sections/rich_text` | Fließtext mit Zwischenüberschriften (Impressum, Datenschutz) |
|
||||
|
||||
Menü: ausgeschrieben ab 1280 px, darunter Menü-Taste (sonst überdeckt der Name das Menü).
|
||||
|
||||
Damit hat Seebad alle 15 Bausteine selbst. Vom Eltern-Theme kommen nur noch `page` und `partials/image`; die Buchungs- und Bewertungsformulare sind für alle Themes gemeinsam.
|
||||
|
After Width: | Height: | Size: 6.0 KiB |
@@ -0,0 +1,18 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Ferienwohnung Stommer">
|
||||
<title>Ferienwohnung Stommer</title>
|
||||
<circle cx="51" cy="36" r="11" fill="var(--brand-sun, #F6C356)"/>
|
||||
<g stroke="var(--brand-navy, #13294B)" stroke-width="1.8" stroke-linejoin="round">
|
||||
<path d="M10 31 L18 28 L18 54 L10 51 Z" fill="var(--brand-shade, #DCD5C4)"/>
|
||||
<rect x="18" y="28" width="26" height="26" fill="var(--brand-paper, #F6F1E4)"/>
|
||||
<path d="M7 33 L16 28 L23 12 L19 13 Z" fill="var(--brand-roof-shade, #A2412C)"/>
|
||||
<path d="M16 29 L23 12 L39 12 L47 29 Z" fill="var(--brand-roof, #C9553A)"/>
|
||||
<path d="M26 27 V22 A5 5 0 0 1 36 22 V27 Z" fill="var(--brand-paper, #F6F1E4)" stroke-width="1.5"/>
|
||||
</g>
|
||||
<g fill="var(--brand-navy, #13294B)">
|
||||
<rect x="22" y="33" width="7" height="8"/>
|
||||
<rect x="33" y="33" width="7" height="8"/>
|
||||
<path d="M12 36 L16 35 L16 42 L12 43 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-teal, #1E5F94)" d="M2 54 C14 46 28 46 40 51 C48 54 56 53 62 49 C57 58 47 61 37 59 C26 57 14 54 2 54 Z"/>
|
||||
<path fill="var(--brand-wave, #2BB7D6)" d="M8 61 C18 57 28 57 38 60 C46 62 54 61 60 58 C54 63 44 64 36 63 C26 62 17 61 8 61 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 213 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 79 KiB |
@@ -0,0 +1,20 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
|
||||
<defs><clipPath id="band-pier-horizon"><rect x="1160" y="20" width="140" height="78"/></clipPath></defs>
|
||||
<circle cx="1230" cy="98" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-pier-horizon)"/>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<rect x="1100" y="92" width="380" height="6" rx="1"/>
|
||||
<rect x="1100" y="80" width="300" height="2.5"/>
|
||||
<path d="M1108 80 V92 M1126 80 V92 M1144 80 V92 M1162 80 V92 M1180 80 V92 M1198 80 V92 M1216 80 V92 M1234 80 V92 M1252 80 V92 M1270 80 V92 M1288 80 V92 M1306 80 V92 M1324 80 V92 M1342 80 V92 M1360 80 V92 M1378 80 V92" stroke="var(--brand-navy, #0B2E55)" stroke-width="2"/>
|
||||
<path d="M1112 98 H1117 V112 H1112 Z M1150 98 H1155 V112 H1150 Z M1188 98 H1193 V112 H1188 Z M1226 98 H1231 V112 H1226 Z M1264 98 H1269 V112 H1264 Z M1302 98 H1307 V112 H1302 Z M1340 98 H1345 V112 H1340 Z M1378 98 H1383 V112 H1378 Z M1416 98 H1421 V112 H1416 Z M1454 98 H1459 V112 H1454 Z"/>
|
||||
<rect x="1410" y="72" width="44" height="20"/>
|
||||
<path d="M1404 74 L1432 50 L1460 74 Z"/>
|
||||
<path d="M1430 50 L1432 34 L1434 50 Z"/>
|
||||
<rect x="1160" y="56" width="2" height="24"/>
|
||||
<path d="M1162 56 L1174 60 L1162 64 Z"/>
|
||||
<rect x="1380" y="60" width="2" height="20"/>
|
||||
<path d="M1382 60 L1392 64 L1382 68 Z"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M1060 44 Q1068 36 1076 44 Q1084 34 1094 40 M1020 64 Q1025 59 1030 64 Q1035 58 1041 61"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 70 400 68 600 90 C800 112 1000 112 1200 106 C1350 102 1480 96 1590 80 C1440 130 1260 126 1100 120 C900 114 760 120 600 108 C400 88 200 92 10 104 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 102 420 104 600 120 C800 136 1000 130 1200 124 C1340 120 1460 116 1540 110 C1400 142 1220 142 1060 136 C900 132 760 136 600 130 C420 118 240 116 60 122 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
|
||||
<defs><clipPath id="band-sonne-horizon"><rect x="740" y="20" width="120" height="78"/></clipPath></defs>
|
||||
<circle cx="800" cy="98" r="44" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-sonne-horizon)"/>
|
||||
<path fill="var(--brand-sun, #F2C27A)" d="M760 104 H840 A3 3 0 0 1 840 110 H760 A3 3 0 0 1 760 104 Z M776 118 H824 A3 3 0 0 1 824 124 H776 A3 3 0 0 1 776 118 Z"/>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(744 100) scale(-1 1)">
|
||||
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
|
||||
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
|
||||
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
|
||||
</g>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(856 100)">
|
||||
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
|
||||
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
|
||||
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 66 400 64 600 88 C690 98 750 104 800 100 C850 96 910 88 1000 88 C1200 88 1400 112 1590 74 C1420 128 1220 120 1000 108 C910 104 850 112 800 114 C750 116 690 114 600 106 C400 84 200 88 10 104 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 100 420 102 600 118 C690 126 750 128 800 126 C850 124 910 116 1000 116 C1180 116 1360 134 1540 110 C1380 142 1200 140 1000 130 C910 126 850 134 800 136 C750 138 690 136 600 130 C420 116 240 114 60 122 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 66" role="img" aria-label="Rundbogengaube">
|
||||
<title>Rundbogengaube</title>
|
||||
<path fill="var(--brand-navy, #13294B)" d="M6 64 V54 A54 54 0 0 1 114 54 V64 Z"/>
|
||||
<path fill="var(--brand-paper, #F6F1E4)" d="M13 62 V54 A47 47 0 0 1 107 54 V62 Z"/>
|
||||
<path fill="var(--brand-glass, #9FD3E6)" d="M20 60 V54 A40 40 0 0 1 100 54 V60 Z"/>
|
||||
<path fill="none" stroke="var(--brand-paper, #F6F1E4)" stroke-width="3.2" stroke-linecap="square" d="M60 14 V60 M20 52 H100 M60 52 L32 25 M60 52 L88 25"/>
|
||||
<path fill="var(--brand-navy, #13294B)" d="M54 2 H66 L64 12 H56 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #13294B)" stroke-width="2.5" stroke-linecap="round" d="M0 64 H120"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 739 B |
@@ -0,0 +1,16 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="34" role="presentation" aria-hidden="true">
|
||||
<defs>
|
||||
<pattern id="gelaender-feld" patternUnits="userSpaceOnUse" width="132" height="34">
|
||||
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #13294B)" stroke-width="1.2">
|
||||
<rect x="14" y="9" width="4" height="17"/><rect x="26" y="9" width="4" height="17"/><rect x="38" y="9" width="4" height="17"/>
|
||||
<rect x="50" y="9" width="4" height="17"/><rect x="62" y="9" width="4" height="17"/><rect x="74" y="9" width="4" height="17"/>
|
||||
<rect x="86" y="9" width="4" height="17"/><rect x="98" y="9" width="4" height="17"/><rect x="110" y="9" width="4" height="17"/>
|
||||
<rect x="0.6" y="3" width="8" height="30" rx="1"/>
|
||||
<rect x="0.6" y="5" width="132" height="4"/>
|
||||
<rect x="0.6" y="26" width="132" height="3.5"/>
|
||||
<rect x="-1" y="1" width="12" height="3" rx="1"/>
|
||||
</g>
|
||||
</pattern>
|
||||
</defs>
|
||||
<rect width="100%" height="34" fill="url(#gelaender-feld)"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" role="presentation" aria-hidden="true">
|
||||
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #13294B)" stroke-width="1.6" stroke-linejoin="round">
|
||||
<path d="M1 1 H47 V7 H7 V47 H1 Z"/>
|
||||
<path d="M7 30 L30 7 H38 L7 38 Z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 314 B |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50" role="presentation" aria-hidden="true">
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M8 26 Q20 12 32 24 Q46 6 62 16 M70 40 Q78 32 86 40 Q94 30 104 36 M88 14 Q93 9 98 14 Q103 8 110 11"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 332 B |
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Bäderbahn Molli">
|
||||
<title>Bäderbahn Molli</title>
|
||||
<g fill="var(--brand-wave, #6DBFC2)">
|
||||
<circle cx="66" cy="54" r="14"/><circle cx="84" cy="44" r="16"/><circle cx="104" cy="40" r="13"/><circle cx="120" cy="34" r="11"/><circle cx="80" cy="60" r="10"/>
|
||||
</g>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<path d="M58 62 H74 L72 70 V92 H60 V70 Z"/>
|
||||
<rect x="44" y="90" width="66" height="30" rx="8"/>
|
||||
<rect x="104" y="76" width="34" height="44" rx="2"/>
|
||||
<rect x="100" y="72" width="42" height="6" rx="2"/>
|
||||
<rect x="80" y="82" width="10" height="10" rx="5"/>
|
||||
</g>
|
||||
<rect x="112" y="84" width="18" height="14" fill="var(--brand-paper, #F6F1E4)"/>
|
||||
<rect x="40" y="118" width="102" height="8" fill="var(--brand-brick, #A63A2B)"/>
|
||||
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5">
|
||||
<rect x="146" y="86" width="74" height="34" rx="3"/>
|
||||
</g>
|
||||
<rect x="146" y="108" width="74" height="12" fill="var(--brand-brick, #A63A2B)"/>
|
||||
<path fill="var(--brand-navy, #0B2E55)" d="M142 82 H224 V88 H142 Z M154 92 H166 V102 H154 Z M172 92 H184 V102 H172 Z M190 92 H202 V102 H190 Z M206 92 H216 V102 H206 Z"/>
|
||||
<g fill="var(--brand-brick, #A63A2B)" stroke="var(--brand-navy, #0B2E55)" stroke-width="3">
|
||||
<circle cx="60" cy="132" r="9"/><circle cx="84" cy="132" r="9"/><circle cx="108" cy="132" r="9"/>
|
||||
<circle cx="160" cy="128" r="6"/><circle cx="206" cy="128" r="6"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M60 132 H108 M24 142 H228"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 156 C50 136 98 132 142 142 C178 150 208 150 234 140 C216 160 182 168 142 164 C102 160 62 150 6 156 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 170 C62 158 106 160 142 168 C174 176 202 174 228 166 C208 178 174 180 138 176 C102 172 66 166 22 170 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Mit dem Rad an der Küste">
|
||||
<title>Mit dem Rad an der Küste</title>
|
||||
<defs><clipPath id="rad-horizon"><rect x="120" y="20" width="110" height="88"/></clipPath></defs>
|
||||
<circle cx="172" cy="104" r="40" fill="var(--brand-sun, #F2C27A)" clip-path="url(#rad-horizon)"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M118 108 H234 V118 H118 Z"/>
|
||||
<path fill="var(--brand-navy, #0B2E55)" d="M200 92 H205 V122 H200 Z M212 96 H217 V122 H212 Z"/>
|
||||
<path fill="var(--brand-sun, #F2C27A)" opacity="0.55" d="M8 150 C60 128 110 120 160 124 C190 126 214 132 234 140 V150 Z"/>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(26 138)">
|
||||
<path d="M0 0 C-4 -16 -10 -30 -22 -40 C-12 -28 -6 -14 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -18 0 -34 -6 -50 C0 -32 0 -16 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -14 14 -26 24 -36 C16 -24 10 -12 8 0 Z"/>
|
||||
</g>
|
||||
<g fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="76" cy="116" r="22"/>
|
||||
<circle cx="146" cy="116" r="22"/>
|
||||
<path d="M76 116 L100 88 L134 88 L146 116 M100 88 L112 116 L76 116 M112 116 L134 88 M94 78 L108 78 M134 88 L130 74 L142 72"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M150 48 Q158 40 166 48 Q174 38 184 44"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Seebrücke">
|
||||
<title>Seebrücke</title>
|
||||
<defs><clipPath id="pier-horizon"><rect x="60" y="20" width="140" height="106"/></clipPath></defs>
|
||||
<circle cx="128" cy="122" r="52" fill="var(--brand-sun, #F2C27A)" clip-path="url(#pier-horizon)"/>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<rect x="22" y="114" width="196" height="7" rx="1"/>
|
||||
<rect x="22" y="100" width="150" height="3"/>
|
||||
<path d="M30 100 V114 M48 100 V114 M66 100 V114 M84 100 V114 M102 100 V114 M120 100 V114 M138 100 V114 M156 100 V114" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5"/>
|
||||
<path d="M34 121 H40 V146 H34 Z M64 121 H70 V146 H64 Z M94 121 H100 V146 H94 Z M124 121 H130 V146 H124 Z M154 121 H160 V146 H154 Z M184 121 H190 V146 H184 Z M206 121 H212 V146 H206 Z"/>
|
||||
<rect x="176" y="92" width="38" height="22"/>
|
||||
<path d="M170 94 L195 72 L220 94 Z"/>
|
||||
<path d="M193 72 L195 56 L197 72 Z"/>
|
||||
<rect x="58" y="74" width="2.5" height="26"/>
|
||||
<path d="M60.5 74 L74 78 L60.5 82 Z"/>
|
||||
<rect x="148" y="78" width="2.5" height="22"/>
|
||||
<path d="M150.5 78 L162 82 L150.5 86 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-paper, #F6F1E4)" d="M182 98 H190 V108 H182 Z M200 98 H208 V108 H200 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M34 50 Q42 42 50 50 Q58 40 68 46"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 124 98 118 142 132 C178 144 208 142 234 128 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Strand mit Sonne">
|
||||
<title>Strand mit Sonne</title>
|
||||
<defs><clipPath id="strand-horizon"><rect x="90" y="30" width="140" height="102"/></clipPath></defs>
|
||||
<circle cx="150" cy="128" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#strand-horizon)"/>
|
||||
<path fill="var(--brand-sun, #F2C27A)" d="M112 138 H188 A3 3 0 0 1 188 144 H112 A3 3 0 0 1 112 138 Z M128 150 H172 A3 3 0 0 1 172 156 H128 A3 3 0 0 1 128 150 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M156 54 Q164 46 172 54 Q180 44 190 50 M180 76 Q185 71 190 76 Q195 70 201 73"/>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(46 150) scale(1.5)">
|
||||
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
|
||||
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 120 98 114 142 130 C178 143 208 142 234 126 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
@@ -0,0 +1,24 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Küstenwald">
|
||||
<title>Küstenwald</title>
|
||||
<defs><clipPath id="wald-horizon"><rect x="140" y="40" width="96" height="84"/></clipPath></defs>
|
||||
<circle cx="190" cy="120" r="38" fill="var(--brand-sun, #F2C27A)" clip-path="url(#wald-horizon)"/>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<path d="M58 140 L62 70 L66 140 Z"/>
|
||||
<path d="M92 140 L95 56 L99 140 Z"/>
|
||||
<path d="M124 140 L127 76 L131 140 Z"/>
|
||||
<path d="M150 140 L152 92 L155 140 Z"/>
|
||||
<path d="M95 92 L78 80 M95 80 L112 70 M62 96 L48 88 M127 100 L142 90" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g fill="var(--brand-teal, #0286A2)">
|
||||
<ellipse cx="62" cy="70" rx="26" ry="16"/><ellipse cx="44" cy="84" rx="18" ry="11"/>
|
||||
<ellipse cx="96" cy="52" rx="30" ry="18"/><ellipse cx="120" cy="66" rx="20" ry="12"/>
|
||||
<ellipse cx="128" cy="78" rx="24" ry="14"/><ellipse cx="152" cy="92" rx="16" ry="10"/>
|
||||
</g>
|
||||
<g fill="var(--brand-navy, #0B2E55)" opacity="0.85">
|
||||
<ellipse cx="74" cy="62" rx="16" ry="10"/><ellipse cx="104" cy="44" rx="16" ry="9"/><ellipse cx="136" cy="72" rx="12" ry="8"/>
|
||||
</g>
|
||||
<path fill="var(--brand-reed, #C9A15E)" d="M30 140 C60 132 140 130 200 136 C214 138 226 140 234 142 V146 H30 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M196 70 Q202 64 208 70 Q214 62 222 66"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Theme „Seebad“ – Child von „ostsee-licht“ (Anleitung: docs/THEME-ERSTELLUNG.md, Konzept: docs/DESIGN-KONZEPT.md, Richtung A).
|
||||
* theme-base.css des Eltern-Themes bringt Token-Mapping, Formular-Grundstile und Basis-Klassen; hier stehen nur Abweichungen.
|
||||
*/
|
||||
@import 'tailwindcss';
|
||||
@import '../ostsee-licht/theme-base.css';
|
||||
|
||||
/* Selbst gehostete Schriften: Newsreader (Überschriften, Zitate), Atkinson Hyperlegible Next (Text, Bedienung). */
|
||||
@import '@fontsource/newsreader/400.css';
|
||||
@import '@fontsource/newsreader/400-italic.css';
|
||||
@import '@fontsource/newsreader/500.css';
|
||||
@import '@fontsource/atkinson-hyperlegible-next/400.css';
|
||||
@import '@fontsource/atkinson-hyperlegible-next/600.css';
|
||||
|
||||
/* Vorlagen, deren Klassen gebaut werden: geerbte, Buchungsformulare, eigene. */
|
||||
@source '../ostsee-licht/views';
|
||||
@source '../../views/livewire';
|
||||
@source './views';
|
||||
|
||||
@theme inline {
|
||||
--font-display: 'Newsreader', Georgia, serif;
|
||||
--font-sans: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
/*
|
||||
* Bildwelt „Ostsee“ (motifs/*.svg, inline über partials/motif): Navy folgt der Textfarbe, damit die Grafiken in
|
||||
* dunklen Erscheinungsbildern sichtbar bleiben; die Fassade folgt den Flächen.
|
||||
*/
|
||||
:root {
|
||||
--brand-navy: var(--ink);
|
||||
--brand-paper: var(--surface);
|
||||
--brand-teal: #1e5f94;
|
||||
--brand-wave: #2bb7d6;
|
||||
--brand-sun: #f6c356;
|
||||
--brand-reed: #d8b25e;
|
||||
--brand-brick: #a63a2b;
|
||||
--brand-roof: #c9553a;
|
||||
--brand-glass: #9fd3e6;
|
||||
}
|
||||
|
||||
@layer base {
|
||||
body {
|
||||
font-size: 1.125rem;
|
||||
line-height: 1.65;
|
||||
}
|
||||
|
||||
@media (min-width: 64rem) {
|
||||
body {
|
||||
font-size: 1.1875rem;
|
||||
}
|
||||
}
|
||||
|
||||
input:not([type='checkbox']):not([type='radio']),
|
||||
select,
|
||||
textarea {
|
||||
min-height: 3rem;
|
||||
border-color: var(--muted);
|
||||
border-radius: 0.375rem;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
/* Kleine Überschrift in normaler Schreibweise statt gesperrter Großbuchstaben (besser lesbar). */
|
||||
.eyebrow {
|
||||
@apply mb-3 text-base font-semibold tracking-normal text-accent normal-case;
|
||||
}
|
||||
|
||||
.heading-display {
|
||||
@apply font-display text-[2.375rem] leading-[1.1] font-normal tracking-[-0.01em] sm:text-5xl;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
@apply inline-flex min-h-12 items-center justify-center rounded-md bg-ink px-6 py-3 text-base font-semibold text-ground transition hover:opacity-90;
|
||||
}
|
||||
|
||||
.btn-accent {
|
||||
@apply inline-flex min-h-12 items-center justify-center rounded-md bg-accent px-6 py-3 text-base font-semibold text-accent-ink transition hover:opacity-90;
|
||||
}
|
||||
|
||||
.btn-outline {
|
||||
@apply inline-flex min-h-12 items-center justify-center rounded-md border-2 border-current px-6 py-3 text-base font-semibold transition hover:bg-ink/5;
|
||||
}
|
||||
|
||||
.prose-theme {
|
||||
@apply max-w-[68ch];
|
||||
}
|
||||
|
||||
/*
|
||||
* Titelbild wie die Rundbogengaube des Hauses: Bogen mit Fasche (weiße Fensterumrandung, feine Linie)
|
||||
* und Schlussstein – bewusst nur hier eingesetzt.
|
||||
*/
|
||||
.arch {
|
||||
border-radius: 50% 50% 0.25rem 0.25rem / 7.5rem 7.5rem 0.25rem 0.25rem;
|
||||
box-shadow: 0 0 0 0.375rem var(--surface), 0 0 0 0.5rem var(--line);
|
||||
}
|
||||
|
||||
.keystone {
|
||||
@apply absolute top-0 left-1/2 h-6 w-8 -translate-x-1/2 -translate-y-2 bg-ink lg:h-7 lg:w-9;
|
||||
clip-path: polygon(0 0, 100% 0, 80% 100%, 20% 100%);
|
||||
}
|
||||
|
||||
@media (min-width: 64rem) {
|
||||
.arch {
|
||||
border-radius: 50% 50% 0.25rem 0.25rem / 11rem 11rem 0.25rem 0.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Kartusche: Doppelrahmen, Rundbogengaube als Kopf, Kopfbänder der Terrassen als Eckkonsolen. */
|
||||
.cartouche {
|
||||
@apply relative border-2 border-ink bg-surface outline outline-1 -outline-offset-[10px] outline-[var(--brand-reed)];
|
||||
}
|
||||
}
|
||||
|
||||
/* Ruhige Bewegung der Bildwelt – nur ohne „Bewegung reduzieren“. */
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.motif-drift {
|
||||
animation: motif-drift 16s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.motif-glide {
|
||||
animation: motif-glide 22s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes motif-drift {
|
||||
from {
|
||||
transform: translateX(-1.5rem);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateX(1.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes motif-glide {
|
||||
50% {
|
||||
transform: translate(2.5rem, -0.6rem);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Theme „Seebad“: übernimmt Lightbox, Verfügbarkeitssuche und rollierende Angebote vom Eltern-Theme.
|
||||
* Eigene Verbesserungen darunter – alles muss auch ohne JavaScript funktionieren.
|
||||
*/
|
||||
import '../ostsee-licht/theme.js';
|
||||
|
||||
// Logo, favicon (resources/themes/seebad/img) – addressed in Blade via Vite::asset().
|
||||
import.meta.glob(['./img/**'], { eager: true, query: '?url' });
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"key": "seebad",
|
||||
"name": "Seebad",
|
||||
"version": "0.3.0",
|
||||
"parent": "ostsee-licht",
|
||||
"description": "Ruhiges Magazin für Paare: Logo und Bäderstil-Details des Hauses (Rundbogengaube, Balkongeländer, Kopfbänder), große gut lesbare Schrift",
|
||||
"assets": {
|
||||
"css": "resources/themes/seebad/theme.css",
|
||||
"js": "resources/themes/seebad/theme.js"
|
||||
},
|
||||
"tokens": {
|
||||
"ground": {
|
||||
"label": "Hintergrund",
|
||||
"default": "#F7F8F6"
|
||||
},
|
||||
"surface": {
|
||||
"label": "Flächen (Karten, Formulare)",
|
||||
"default": "#FFFFFF"
|
||||
},
|
||||
"ink": {
|
||||
"label": "Text",
|
||||
"default": "#13294B"
|
||||
},
|
||||
"muted": {
|
||||
"label": "Text, gedämpft",
|
||||
"default": "#4A5868"
|
||||
},
|
||||
"line": {
|
||||
"label": "Linien",
|
||||
"default": "#D9DDDF"
|
||||
},
|
||||
"accent": {
|
||||
"label": "Akzent (Buttons, Hervorhebungen)",
|
||||
"default": "#A8432A"
|
||||
},
|
||||
"accent-ink": {
|
||||
"label": "Text auf Akzent",
|
||||
"default": "#FFFFFF"
|
||||
},
|
||||
"band": {
|
||||
"label": "Dunkles Band (Zitat, Menü auf dem Handy)",
|
||||
"default": "#13294B"
|
||||
},
|
||||
"band-ink": {
|
||||
"label": "Text auf dunklem Band",
|
||||
"default": "#F7F8F6"
|
||||
},
|
||||
"band-muted": {
|
||||
"label": "Text auf dunklem Band, gedämpft",
|
||||
"default": "#B9C6D6"
|
||||
},
|
||||
"banner": {
|
||||
"label": "Hinweis-Banner",
|
||||
"default": "#13294B"
|
||||
},
|
||||
"banner-ink": {
|
||||
"label": "Text im Banner",
|
||||
"default": "#F7F8F6"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
@php
|
||||
/** @var \App\Themes\Theme $theme */
|
||||
$theme = app(\App\Themes\Theme::class);
|
||||
$pageTitle = isset($title) && $title ? $title.' · '.$theme->site->name : $theme->site->name;
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ $theme->site->locale ?? 'de' }}" data-appearance="{{ $theme->appearanceKey() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{{ $pageTitle }}</title>
|
||||
@isset($description)
|
||||
<meta name="description" content="{{ $description }}">
|
||||
<meta property="og:description" content="{{ $description }}">
|
||||
@endisset
|
||||
<meta property="og:title" content="{{ $pageTitle }}">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ url()->current() }}">
|
||||
@isset($ogImage)
|
||||
<meta property="og:image" content="{{ $ogImage }}">
|
||||
@endisset
|
||||
<link rel="canonical" href="{{ url()->current() }}">
|
||||
<link rel="icon" href="{{ Vite::asset('resources/themes/seebad/img/favicon.svg') }}" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="{{ Vite::asset('resources/themes/seebad/img/apple-touch-icon.png') }}">
|
||||
@if ($theme->isPreview || ! app()->isProduction())
|
||||
<meta name="robots" content="noindex">
|
||||
@endif
|
||||
@vite($theme->assets())
|
||||
<style>{!! $theme->cssVariables() !!}</style>
|
||||
@livewireStyles
|
||||
@stack('head')
|
||||
</head>
|
||||
<body class="min-h-screen overflow-x-hidden font-sans antialiased">
|
||||
<a href="#inhalt" class="sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-50 focus:rounded focus:bg-surface focus:px-4 focus:py-2">Zum Inhalt springen</a>
|
||||
|
||||
@if ($theme->isPreview)
|
||||
<div class="bg-ink py-2 text-center text-sm text-ground">Vorschau · Theme „{{ $theme->manifest()->name }}“ · Erscheinungsbild „{{ $theme->appearance?->name ?? 'Standard' }}“</div>
|
||||
@endif
|
||||
|
||||
@include('theme::partials.banner')
|
||||
@include('theme::partials.header')
|
||||
|
||||
<main id="inhalt">
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
@include('theme::partials.footer')
|
||||
@include('theme::partials.mobile-booking-bar')
|
||||
|
||||
<dialog id="lightbox" class="m-auto max-h-[92vh] max-w-[92vw] bg-transparent p-0 backdrop:bg-black/80" aria-label="Bild vergrößert">
|
||||
<figure class="relative">
|
||||
<img src="" alt="" class="max-h-[85vh] max-w-[92vw] object-contain">
|
||||
<figcaption data-caption class="mt-2 text-center text-base text-white"></figcaption>
|
||||
<button type="button" data-close class="absolute top-2 right-2 min-h-11 min-w-11 rounded-full bg-black/60 px-3 text-white" aria-label="Schließen">✕</button>
|
||||
</figure>
|
||||
</dialog>
|
||||
|
||||
@livewireScripts
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,12 @@
|
||||
@php($bannerText = $theme->text('banner.text', \App\Models\Notice::query()->visible()->latest()->value('text')))
|
||||
@if ($bannerText)
|
||||
<div class="bg-banner text-banner-ink [--brand-navy:var(--banner-ink)]" role="status">
|
||||
<div class="mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-x-5 gap-y-1 px-4 py-2.5 text-center text-base sm:px-8">
|
||||
@include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'hidden h-5 w-auto opacity-80 sm:block'])
|
||||
<span>{{ $bannerText }}</span>
|
||||
@if ($theme->text('banner.link_label'))
|
||||
<a href="{{ $theme->text('banner.link_url', route('booking.create')) }}" class="font-semibold underline underline-offset-4">{{ $theme->text('banner.link_label') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,27 @@
|
||||
@php($phone = (string) config('fewo.owner.phone'))
|
||||
<div class="mt-20 overflow-hidden" aria-hidden="true">
|
||||
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[50%] block h-auto w-[200%] max-w-none sm:mx-auto sm:w-full sm:max-w-6xl'])
|
||||
</div>
|
||||
<footer class="border-t border-line">
|
||||
<div class="mx-auto flex max-w-7xl flex-wrap items-start justify-between gap-x-16 gap-y-8 px-4 py-14 sm:px-8">
|
||||
<div class="flex items-center gap-4">
|
||||
@include('theme::partials.logo', ['class' => 'h-20 w-auto shrink-0', 'sizes' => '12rem'])
|
||||
<div>
|
||||
<p class="font-display text-2xl">{{ $theme->site->name }}</p>
|
||||
@if ($theme->property()?->address)<p class="text-muted">{{ $theme->property()->address }}</p>@endif
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p>{{ config('fewo.owner.name') }}</p>
|
||||
@if ($phone)<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="block hover:text-accent">{{ $phone }}</a>@endif
|
||||
<a href="mailto:{{ config('fewo.owner.email') }}" class="block hover:text-accent">{{ config('fewo.owner.email') }}</a>
|
||||
</div>
|
||||
<nav aria-label="Rechtliches">
|
||||
<ul class="flex flex-wrap gap-6">
|
||||
@foreach ($theme->menu('footer') as $item)
|
||||
<li><a href="{{ $item->url() }}" class="underline-offset-4 hover:underline">{{ $item->label() }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
@@ -0,0 +1,51 @@
|
||||
@php($phone = (string) config('fewo.owner.phone'))
|
||||
<header class="relative z-20">
|
||||
<div class="mx-auto flex max-w-7xl items-center justify-between gap-6 px-4 py-4 sm:px-8 lg:py-5">
|
||||
<a href="{{ route('home') }}" class="flex min-w-0 items-center gap-3 sm:shrink-0" aria-label="{{ $theme->site->name }} – Startseite">
|
||||
@include('theme::partials.logo', ['class' => 'h-12 w-auto shrink-0 lg:h-16', 'sizes' => '(min-width: 1024px) 9.5rem, 7rem'])
|
||||
<span class="font-display text-[1.375rem] leading-tight font-medium sm:text-[1.75rem] sm:whitespace-nowrap">{{ $theme->site->name }}</span>
|
||||
</a>
|
||||
|
||||
<nav aria-label="Hauptnavigation" class="hidden xl:block">
|
||||
<ul class="flex gap-6 text-lg whitespace-nowrap xl:gap-7">
|
||||
@foreach ($theme->menu('main') as $item)
|
||||
<li><a href="{{ $item->url() }}" @class(['underline-offset-8 hover:underline', 'underline decoration-accent decoration-2' => url()->current() === $item->url()]) @if (url()->current() === $item->url()) aria-current="page" @endif>{{ $item->label() }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="flex items-center gap-2 sm:gap-4">
|
||||
@if ($phone)
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="hidden items-center gap-2 font-semibold whitespace-nowrap hover:text-accent 2xl:flex">
|
||||
<x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}
|
||||
</a>
|
||||
@endif
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent hidden whitespace-nowrap sm:inline-flex">Verfügbarkeit prüfen</a>
|
||||
|
||||
<details class="group xl:hidden">
|
||||
<summary class="flex size-12 cursor-pointer list-none items-center justify-center rounded-md border border-line bg-surface [&::-webkit-details-marker]:hidden" aria-label="Menü">
|
||||
<x-heroicon-o-bars-3 class="size-6 group-open:hidden" aria-hidden="true" />
|
||||
<x-heroicon-o-x-mark class="hidden size-6 group-open:block" aria-hidden="true" />
|
||||
</summary>
|
||||
<div class="absolute inset-x-0 top-full overflow-hidden bg-band text-band-ink shadow-lg [--brand-navy:var(--band-ink)]">
|
||||
<ul class="px-5 pt-2">
|
||||
@foreach ($theme->menu('main') as $item)
|
||||
<li class="border-b border-band-muted/30 last:border-0"><a href="{{ $item->url() }}" class="block py-3.5 font-display text-[1.75rem]">{{ $item->label() }}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<div class="flex flex-col gap-3 px-5 py-4">
|
||||
<a href="{{ route('booking.create') }}" class="inline-flex min-h-12 items-center justify-center rounded-md bg-band-ink px-6 font-semibold text-band">Verfügbarkeit prüfen</a>
|
||||
@if ($phone)
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex min-h-12 items-center justify-center gap-2 rounded-md border-2 border-band-ink px-6 font-semibold">
|
||||
<x-heroicon-o-phone class="size-5" aria-hidden="true" />Anrufen: {{ $phone }}
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="bg-ground pt-1" aria-hidden="true">
|
||||
@include('theme::partials.motif', ['slot' => 'closing', 'class' => 'motif-drift -ml-[45%] block h-auto w-[150%] max-w-none'])
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
@@ -0,0 +1,7 @@
|
||||
{{--
|
||||
Picture mark of the logo (styles/satz4: traced master SVG, WebP renditions for the web).
|
||||
Variables: $class, $sizes (default: 10rem), $label (optional; without it the mark is decorative next to the name).
|
||||
--}}
|
||||
<img src="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }}"
|
||||
srcset="{{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-360.webp') }} 360w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-720.webp') }} 720w, {{ Vite::asset('resources/themes/seebad/img/logo-bildmarke-1440.webp') }} 1440w"
|
||||
sizes="{{ $sizes ?? '10rem' }}" width="360" height="154" alt="{{ $label ?? '' }}" decoding="async" class="{{ $class ?? '' }}">
|
||||
@@ -0,0 +1,12 @@
|
||||
@unless (request()->routeIs('booking.create'))
|
||||
@php($phone = (string) config('fewo.owner.phone'))
|
||||
<div class="fixed inset-x-0 bottom-0 z-30 flex gap-3 border-t border-line bg-surface/95 p-3 backdrop-blur sm:hidden">
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent flex-1">Verfügbarkeit prüfen</a>
|
||||
@if ($phone)
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="flex size-12 shrink-0 items-center justify-center rounded-md border-2 border-ink" aria-label="Anrufen: {{ $phone }}">
|
||||
<x-heroicon-o-phone class="size-6" aria-hidden="true" />
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
<div class="h-20 sm:hidden" aria-hidden="true"></div>
|
||||
@endunless
|
||||
@@ -0,0 +1,31 @@
|
||||
{{--
|
||||
Inline graphic of the theme's picture world ("Bildwelt", docs/DESIGN-KONZEPT.md §7, MANDANTEN-ANFORDERUNGEN A18/A19).
|
||||
Templates ask for a slot, never for a file, so a later picture-world system can replace the mapping below.
|
||||
Variables: $slot (divider, closing, crest, railing, bracket, gulls, vignette.beach|pier|train|bike|forest), $class (optional),
|
||||
$label (optional; without it the graphic is decorative).
|
||||
--}}
|
||||
@php
|
||||
$motifFiles = [
|
||||
'divider' => 'band-sonne',
|
||||
'closing' => 'band-seebruecke',
|
||||
'crest' => 'gaube',
|
||||
'railing' => 'gelaender',
|
||||
'bracket' => 'kopfband',
|
||||
'gulls' => 'moewen',
|
||||
'vignette.beach' => 'vignette-strand',
|
||||
'vignette.pier' => 'vignette-seebruecke',
|
||||
'vignette.train' => 'vignette-molli',
|
||||
'vignette.bike' => 'vignette-rad',
|
||||
'vignette.forest' => 'vignette-wald',
|
||||
];
|
||||
static $motifSvgs = [];
|
||||
$motifFile = $motifFiles[$slot] ?? null;
|
||||
$motifPath = $motifFile ? resource_path("themes/seebad/motifs/{$motifFile}.svg") : null;
|
||||
$motifSvgs[$slot] ??= $motifPath && is_file($motifPath) ? file_get_contents($motifPath) : '';
|
||||
$motifUid = 'm'.\Illuminate\Support\Str::lower(\Illuminate\Support\Str::random(6));
|
||||
$motifSvg = preg_replace(['/\s(role|aria-label|aria-hidden)="[^"]*"/', '/<title>.*?<\/title>/s'], '', $motifSvgs[$slot]);
|
||||
$motifSvg = preg_replace(['/id="([^"]+)"/', '/url\(#([^)]+)\)/'], ['id="$1-'.$motifUid.'"', 'url(#$1-'.$motifUid.')'], $motifSvg);
|
||||
$motifAttributes = 'class="'.e($class ?? '').'" '.(isset($label) ? 'role="img" aria-label="'.e($label).'"' : 'aria-hidden="true" focusable="false"');
|
||||
$motifSvg = preg_replace('/<svg\s/', '<svg '.$motifAttributes.' ', $motifSvg, 1);
|
||||
@endphp
|
||||
{!! $motifSvg !!}
|
||||
@@ -0,0 +1,17 @@
|
||||
@if ($groups->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h2>
|
||||
<div class="grid gap-x-12 gap-y-10 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($groups as $area => $amenities)
|
||||
<div class="reveal">
|
||||
<h3 class="mb-3 border-b border-line pb-2 font-display text-[1.625rem]">{{ $area }}</h3>
|
||||
<ul class="space-y-2">
|
||||
@foreach ($amenities as $amenity)
|
||||
<li class="flex gap-3"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $amenity->name }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,18 @@
|
||||
<section class="mx-auto max-w-7xl px-4 py-12 sm:px-8 sm:py-16" aria-labelledby="{{ $sectionId }}-title">
|
||||
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>@endif
|
||||
@if ($text)<p class="mt-4 max-w-[62ch] text-muted">{{ $text }}</p>@endif
|
||||
@php($phone = (string) config('fewo.owner.phone'))
|
||||
@if ($phone)
|
||||
<p class="mt-4 flex flex-wrap items-center gap-x-3 gap-y-1">
|
||||
<span class="text-muted">Lieber persönlich?</span>
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', $phone) }}" class="inline-flex items-center gap-2 font-semibold underline underline-offset-4 hover:text-accent"><x-heroicon-o-phone class="size-5" aria-hidden="true" />{{ $phone }}</a>
|
||||
</p>
|
||||
@endif
|
||||
<div class="mt-10">
|
||||
@if ($property)
|
||||
<livewire:booking-request :property="$property" />
|
||||
@else
|
||||
<p class="text-muted">Derzeit ist keine Wohnung buchbar.</p>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,27 @@
|
||||
<section class="mx-auto max-w-5xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h1 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h1>
|
||||
@if ($text)<p class="mt-4 max-w-[60ch] text-muted">{{ $text }}</p>@endif
|
||||
<div class="mt-14 grid gap-12 sm:grid-cols-2 sm:gap-8">
|
||||
<div class="cartouche px-7 pt-12 pb-8">
|
||||
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
|
||||
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
|
||||
<h2 class="eyebrow">Gastgeberin</h2>
|
||||
<p class="font-display text-[1.75rem] leading-tight">{{ $owner['name'] }}</p>
|
||||
<p class="mt-1 text-muted">{{ $owner['street'] }}<br>{{ $owner['city'] }}</p>
|
||||
<p class="mt-6 space-y-2">
|
||||
<a href="tel:{{ preg_replace('/[^0-9+]/', '', (string) $owner['phone']) }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-phone class="size-5 text-accent" aria-hidden="true" />{{ $owner['phone'] }}</a>
|
||||
<a href="mailto:{{ $owner['email'] }}" class="flex items-center gap-3 font-semibold hover:text-accent"><x-heroicon-o-envelope class="size-5 text-accent" aria-hidden="true" />{{ $owner['email'] }}</a>
|
||||
</p>
|
||||
</div>
|
||||
@if ($address)
|
||||
<div class="cartouche px-7 pt-12 pb-8">
|
||||
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
|
||||
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-10'])</span>
|
||||
<h2 class="eyebrow">Ferienwohnung</h2>
|
||||
<p class="font-display text-[1.75rem] leading-tight">{{ $theme->site->name }}</p>
|
||||
<p class="mt-1 text-muted">{{ $address }}</p>
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent mt-6">Freie Termine und Preise</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,17 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-14 gap-y-12 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
|
||||
@if ($photo)
|
||||
<div class="min-w-0 flex-[1_1_24rem]">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 45vw, 100vw', 'class' => 'h-72 w-full rounded object-cover sm:h-[26rem]'])
|
||||
</div>
|
||||
@endif
|
||||
<div @class(['cartouche min-w-0 flex-[1_1_24rem] px-6 pt-14 pb-10 text-center sm:px-12', 'mx-auto max-w-3xl' => ! $photo])>
|
||||
<span class="absolute -top-9 left-1/2 -translate-x-1/2 bg-ground px-3" aria-hidden="true">
|
||||
@include('theme::partials.motif', ['slot' => 'crest', 'class' => 'h-14 w-auto'])
|
||||
</span>
|
||||
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-11'])</span>
|
||||
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-11'])</span>
|
||||
<h2 id="{{ $sectionId }}-title" class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $title }}</h2>
|
||||
@if ($text)<p class="mx-auto mt-4 max-w-[40ch] text-muted">{{ $text }}</p>@endif
|
||||
<a href="{{ $buttonUrl }}" class="btn-accent mt-8">{{ $buttonLabel }}</a>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,17 @@
|
||||
<section class="mx-auto max-w-7xl px-4 pt-10 pb-8 sm:px-8 sm:pt-12" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Eckdaten" @endif>
|
||||
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>@endif
|
||||
<dl class="grid grid-cols-2 gap-x-6 gap-y-8 lg:grid-cols-4">
|
||||
@if ($property?->size_sqm)
|
||||
<div class="flex flex-col-reverse"><dt class="text-muted">Wohnfläche</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">{{ $property->size_sqm }} m²</dd></div>
|
||||
@endif
|
||||
@if ($property)
|
||||
<div class="flex flex-col-reverse"><dt class="text-muted">Gäste</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">1 bis {{ $property->max_guests }}</dd></div>
|
||||
@endif
|
||||
@if ($fromPrice)
|
||||
<div class="flex flex-col-reverse"><dt class="text-muted">pro Nacht</dt><dd class="font-display text-[2rem] leading-tight sm:text-[2.5rem]">ab {{ \App\Support\Money::format((int) $fromPrice) }}</dd></div>
|
||||
@endif
|
||||
@if ($highlights->isNotEmpty())
|
||||
<div class="col-span-2 flex flex-col-reverse lg:col-span-1"><dt class="text-muted">{{ $highlights->skip(1)->take(2)->implode(', ') }}</dt><dd class="font-display text-[1.625rem] leading-tight sm:text-[2rem]">{{ $highlights->first() }}</dd></div>
|
||||
@endif
|
||||
</dl>
|
||||
</section>
|
||||
@@ -0,0 +1,24 @@
|
||||
@if ($faqs->isNotEmpty())
|
||||
<section class="mx-auto max-w-4xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display mb-8">{{ $heading }}</h2>
|
||||
<div class="divide-y divide-line border-y-2 border-ink">
|
||||
@foreach ($faqs as $faq)
|
||||
<details class="group">
|
||||
<summary class="flex min-h-16 cursor-pointer list-none items-center justify-between gap-6 py-4 font-display text-[1.375rem] leading-snug [&::-webkit-details-marker]:hidden">
|
||||
{{ $faq->question }}
|
||||
<span aria-hidden="true" class="flex size-10 shrink-0 items-center justify-center rounded-full border-2 border-accent text-accent transition group-open:rotate-45"><x-heroicon-o-plus class="size-5" /></span>
|
||||
</summary>
|
||||
<div class="prose-theme pb-6">{{ $answers[$faq->id] }}</div>
|
||||
</details>
|
||||
@endforeach
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@push('head')
|
||||
<script type="application/ld+json">{!! json_encode([
|
||||
'@context' => 'https://schema.org',
|
||||
'@type' => 'FAQPage',
|
||||
'mainEntity' => $faqs->map(fn ($faq) => ['@type' => 'Question', 'name' => $faq->question, 'acceptedAnswer' => ['@type' => 'Answer', 'text' => strip_tags($faq->answer)]])->values(),
|
||||
], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG) !!}</script>
|
||||
@endpush
|
||||
@endif
|
||||
@@ -0,0 +1,22 @@
|
||||
@if ($photos->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @else aria-label="Bildergalerie" @endif>
|
||||
<div class="mb-8 flex flex-wrap items-end justify-between gap-x-8 gap-y-2">
|
||||
@if ($heading)<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>@endif
|
||||
<p class="text-muted">{{ $photos->count() }} {{ $photos->count() === 1 ? 'Foto' : 'Fotos' }}, zum Vergrößern antippen</p>
|
||||
</div>
|
||||
<ul class="grid auto-rows-[9.5rem] grid-cols-2 gap-3 sm:auto-rows-[12rem] sm:gap-4 lg:grid-cols-4">
|
||||
@foreach ($photos as $index => $photo)
|
||||
<li @class(['reveal', 'col-span-2 row-span-2' => $index === 0, 'lg:row-span-2' => $index === 5])>
|
||||
<a href="{{ $photo->url('lg') }}" data-lightbox data-alt="{{ $photo->alt_text }}" class="group relative block h-full overflow-hidden rounded">
|
||||
@include('theme::partials.image', [
|
||||
'photo' => $photo,
|
||||
'sizes' => $index === 0 ? '(min-width: 1024px) 50vw, 100vw' : '(min-width: 1024px) 25vw, 50vw',
|
||||
'class' => 'h-full w-full object-cover transition duration-500 group-hover:scale-[1.03]',
|
||||
])
|
||||
<span class="pointer-events-none absolute inset-x-0 bottom-0 bg-black/55 px-3 py-2 text-[0.9375rem] leading-snug text-white opacity-0 transition group-hover:opacity-100 group-focus-visible:opacity-100">{{ $photo->alt_text }}</span>
|
||||
</a>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,50 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-stretch gap-x-12 gap-y-7 px-4 pt-2 pb-6 sm:px-8" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="relative min-w-0 flex-[999_1_28rem] p-2">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 1024px) 60vw, 100vw', 'class' => 'arch h-[21rem] w-full object-cover sm:h-[30rem] lg:h-[38rem]', 'eager' => true])
|
||||
<span class="keystone" aria-hidden="true"></span>
|
||||
</div>
|
||||
|
||||
<div class="flex min-w-0 flex-[1_1_24rem] flex-col justify-center gap-6">
|
||||
@if ($eyebrow)<p class="eyebrow mb-0">{{ $eyebrow }}</p>@endif
|
||||
<h1 id="{{ $sectionId }}-title" class="font-display text-[2.5rem] leading-[1.06] font-normal tracking-[-0.01em] sm:text-[3.25rem] lg:text-[3.75rem]">{{ str_replace('*', '', $title) }}</h1>
|
||||
@if ($text)<p class="max-w-[36ch] text-lg text-muted sm:text-xl">{{ $text }}</p>@endif
|
||||
|
||||
@if ($featuredOffer ?? null)
|
||||
<a href="{{ $featuredOffer->bookingUrl() }}" class="flex items-center gap-4 rounded-md border border-accent bg-surface p-4 hover:bg-accent/5">
|
||||
<span class="rounded bg-accent px-2.5 py-1 font-semibold whitespace-nowrap text-accent-ink">{{ $featuredOffer->advantage }}</span>
|
||||
<span>
|
||||
<strong class="block">{{ $featuredOffer->title }}</strong>
|
||||
@if ($featuredOffer->arrival)
|
||||
<span class="text-muted">{{ $featuredOffer->arrival->format('d.m.') }} bis {{ $featuredOffer->departure->format('d.m.') }}</span>
|
||||
@endif
|
||||
</span>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if ($showSearch)
|
||||
<form action="{{ route('booking.create') }}" method="get" data-availability-search aria-label="Verfügbarkeit prüfen"
|
||||
class="relative grid grid-cols-2 items-end gap-3.5 border-2 border-ink bg-surface p-5 pt-7 sm:p-7 sm:pt-8">
|
||||
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
|
||||
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
|
||||
<label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Anreise
|
||||
<input type="date" name="anreise" min="{{ today()->toDateString() }}" class="w-full min-w-0 font-normal" required>
|
||||
</label>
|
||||
<label class="flex min-w-0 flex-col gap-1.5 text-base font-semibold">Abreise
|
||||
<input type="date" name="abreise" min="{{ today()->addDay()->toDateString() }}" class="w-full min-w-0 font-normal" required>
|
||||
</label>
|
||||
<label class="col-span-2 flex min-w-0 flex-col gap-1.5 text-base font-semibold sm:col-span-1">Personen
|
||||
<select name="personen" class="w-full font-normal">
|
||||
@for ($count = 1; $count <= ($property?->max_guests ?? 3); $count++)
|
||||
<option value="{{ $count }}" @selected($count === 2)>{{ $count }} {{ $count === 1 ? 'Person' : 'Personen' }}</option>
|
||||
@endfor
|
||||
</select>
|
||||
</label>
|
||||
<button type="submit" class="btn-accent col-span-2 w-full px-4 whitespace-nowrap sm:col-span-1">Preis anzeigen</button>
|
||||
</form>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="overflow-hidden" aria-hidden="true">
|
||||
@include('theme::partials.motif', ['slot' => 'divider', 'class' => 'motif-drift -ml-[40%] block h-auto w-[180%] max-w-none sm:mx-auto sm:w-full sm:max-w-7xl'])
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<section class="relative overflow-hidden bg-band text-band-ink [--brand-navy:var(--band-ink)] [--brand-paper:var(--band)]" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="opacity-70" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'railing', 'class' => 'block h-[34px] w-full'])</div>
|
||||
@include('theme::partials.motif', ['slot' => 'gulls', 'class' => 'motif-glide absolute top-10 right-[8%] h-10 w-auto opacity-50 sm:h-12'])
|
||||
<div class="mx-auto flex max-w-6xl flex-wrap items-center gap-12 px-5 py-16 sm:px-8 sm:py-24">
|
||||
@if ($photo)
|
||||
<div class="w-full max-w-xs flex-[0_1_18rem]">
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '18rem', 'class' => 'aspect-[4/5] w-full rounded object-cover'])
|
||||
</div>
|
||||
@endif
|
||||
<figure class="min-w-0 flex-[1_1_28rem]">
|
||||
@if ($heading)<p class="mb-4 font-semibold text-band-muted" id="{{ $sectionId }}-title">{{ $heading }}</p>@endif
|
||||
@if ($quote)<blockquote class="font-display text-[1.75rem] leading-[1.3] italic sm:text-[2.5rem]">„{{ $quote }}“</blockquote>@endif
|
||||
<figcaption class="mt-6 text-band-muted">{{ $name }}</figcaption>
|
||||
@if ($text)<div class="mt-4 max-w-[60ch] text-band-muted [&_a]:underline [&_p]:mb-3">{{ $text }}</div>@endif
|
||||
</figure>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,32 @@
|
||||
<section class="border-y border-line bg-surface" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-24">
|
||||
<div class="flex flex-wrap items-end justify-between gap-x-16 gap-y-6">
|
||||
<div class="min-w-0 flex-[1_1_26rem]">
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
</div>
|
||||
<div class="min-w-0 flex-[1_1_24rem]">
|
||||
@if ($text)<div class="prose-theme [&_p]:mb-3">{{ $text }}</div>@endif
|
||||
@if ($address)
|
||||
<p class="mt-3 flex items-start gap-3">
|
||||
<x-heroicon-o-map-pin class="mt-1 size-6 shrink-0 text-accent" aria-hidden="true" />
|
||||
<span>{{ $address }}<br>
|
||||
<a href="{{ $mapUrl }}" class="font-semibold underline underline-offset-4 hover:text-accent" rel="noopener" target="_blank">Auf der Karte ansehen</a></span>
|
||||
</p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@if ($photos->isNotEmpty())
|
||||
<ul class="mt-12 grid grid-cols-1 gap-x-8 gap-y-10 sm:grid-cols-3">
|
||||
@foreach ($photos->take(3) as $photo)
|
||||
<li class="reveal">
|
||||
<figure>
|
||||
@include('theme::partials.image', ['photo' => $photo, 'sizes' => '(min-width: 640px) 30vw, 100vw', 'class' => 'h-60 w-full rounded object-cover sm:h-72'])
|
||||
<figcaption class="mt-3 font-display text-[1.5rem] leading-snug">{{ $photo->caption ?: $photo->alt_text }}</figcaption>
|
||||
</figure>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,76 @@
|
||||
{{-- Contract: $heading, $display (grid|list|rotating), $offers (Collection of App\Pricing\AdvertisedOffer) --}}
|
||||
@if ($offers->isNotEmpty())
|
||||
@php($layout = $display === 'rotating' && $offers->count() === 1 ? 'grid' : $display)
|
||||
@php($rotating = $layout === 'rotating')
|
||||
@php($wide = $layout === 'list' || $rotating)
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title"
|
||||
@if ($rotating) data-rotator aria-roledescription="Karussell" @endif>
|
||||
<div class="mb-10 flex items-end justify-between gap-4">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($rotating)
|
||||
<div class="flex gap-2">
|
||||
<button type="button" data-rotator-prev class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Vorheriges Angebot"><x-heroicon-o-chevron-left class="size-5" aria-hidden="true" /></button>
|
||||
<button type="button" data-rotator-next class="flex size-12 items-center justify-center rounded-md border-2 border-ink hover:bg-ink/5" aria-label="Nächstes Angebot"><x-heroicon-o-chevron-right class="size-5" aria-hidden="true" /></button>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<ul @class([
|
||||
'grid gap-8 sm:grid-cols-2 lg:grid-cols-3' => $layout === 'grid',
|
||||
'grid gap-8' => $layout === 'list',
|
||||
'relative' => $rotating,
|
||||
]) @if ($rotating) data-rotator-track aria-live="polite" @endif>
|
||||
@foreach ($offers as $advertised)
|
||||
<li data-offer="{{ $advertised->key() }}" @class([
|
||||
'reveal relative flex flex-col border-2 border-ink bg-surface px-6 pt-9 pb-7 sm:px-8',
|
||||
'sm:flex-row sm:items-center sm:gap-10' => $wide,
|
||||
]) @if ($rotating) data-rotator-slide @if (! $loop->first) hidden @endif aria-label="Angebot {{ $loop->iteration }} von {{ $offers->count() }}" @endif>
|
||||
<span class="absolute -top-0.5 -left-0.5" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
|
||||
<span class="absolute -top-0.5 -right-0.5 -scale-x-100" aria-hidden="true">@include('theme::partials.motif', ['slot' => 'bracket', 'class' => 'size-9'])</span>
|
||||
<div class="flex-1">
|
||||
<p class="inline-block bg-accent px-3 py-1 font-semibold text-accent-ink">{{ $advertised->advantage }}</p>
|
||||
<p class="mt-4 font-display text-[1.875rem] leading-tight">{{ $advertised->title }}</p>
|
||||
@if ($advertised->arrival)
|
||||
<p class="mt-2 font-semibold">
|
||||
{{ $advertised->arrival->locale('de')->isoFormat('dd, DD.MM.') }} bis {{ $advertised->departure->locale('de')->isoFormat('dd, DD.MM.YYYY') }}
|
||||
<span class="font-normal text-muted">({{ $advertised->nights() }} {{ $advertised->nights() === 1 ? 'Nacht' : 'Nächte' }})</span>
|
||||
</p>
|
||||
@endif
|
||||
@if ($advertised->description)<p class="mt-3 text-muted">{{ $advertised->description }}</p>@endif
|
||||
@if ($advertised->conditions)
|
||||
<ul class="mt-4 space-y-1 text-muted">
|
||||
@foreach ($advertised->conditions as $condition)
|
||||
<li class="flex gap-2"><x-heroicon-o-check class="mt-1 size-5 shrink-0 text-accent" aria-hidden="true" />{{ $condition }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
<div @class(['mt-6', 'border-t border-line pt-5' => $advertised->quote, 'sm:mt-0 sm:min-w-56 sm:border-t-0 sm:pt-0 sm:text-right' => $wide, 'sm:border-l sm:pl-10' => $wide && $advertised->quote])>
|
||||
@if ($advertised->quote)
|
||||
<p>
|
||||
<span class="font-display text-[2rem] leading-none">{{ \App\Support\Money::format($advertised->quote->total()) }}</span>
|
||||
@if ($advertised->regularTotal() > $advertised->quote->total())
|
||||
<span class="block text-muted">statt <s>{{ \App\Support\Money::format($advertised->regularTotal()) }}</s></span>
|
||||
@endif
|
||||
</p>
|
||||
<p class="text-muted">für {{ $advertised->quote->guests }} {{ $advertised->quote->guests === 1 ? 'Person' : 'Personen' }}, inkl. Endreinigung</p>
|
||||
@endif
|
||||
<a href="{{ $advertised->bookingUrl() }}" class="btn-accent mt-4">
|
||||
{{ $advertised->arrival ? 'Diesen Termin anfragen' : 'Preis berechnen' }}
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@if ($rotating)
|
||||
<div class="mt-6 flex justify-center gap-1" role="tablist" aria-label="Angebote">
|
||||
@foreach ($offers as $advertised)
|
||||
<button type="button" data-rotator-dot="{{ $loop->index }}" role="tab" aria-label="Angebot {{ $loop->iteration }}"
|
||||
aria-selected="{{ $loop->first ? 'true' : 'false' }}" class="group flex size-11 items-center justify-center"><span class="size-3 rounded-full bg-line group-aria-selected:bg-accent"></span></button>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
<p class="mt-6 text-muted">Angebote werden bei der Preisberechnung automatisch berücksichtigt – Sie erhalten immer das für Sie günstigste.</p>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,41 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-start gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="min-w-0 flex-[1_1_22rem]">
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($text)<p class="mt-6 text-muted">{{ $text }}</p>@endif
|
||||
@if ($property)
|
||||
<dl class="mt-6 space-y-2">
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>Endreinigung und Service</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->cleaning_fee) }} einmalig</dd></div>
|
||||
@if ($property->extra_guest_fee_per_night)
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>ab der {{ $property->included_guests + 1 }}. Person</dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($property->extra_guest_fee_per_night) }} pro Nacht</dd></div>
|
||||
@endif
|
||||
@foreach ($extras as $extra)
|
||||
<div class="flex justify-between gap-4 border-b border-line pb-2"><dt>{{ $extra->name }} <span class="text-muted">(auf Wunsch)</span></dt><dd class="whitespace-nowrap">{{ \App\Support\Money::format($extra->price) }}</dd></div>
|
||||
@endforeach
|
||||
<div class="flex justify-between gap-4 pb-2"><dt>Kurtaxe</dt><dd class="text-muted">vor Ort</dd></div>
|
||||
</dl>
|
||||
@endif
|
||||
<a href="{{ route('booking.create') }}" class="btn-accent mt-8">Freie Termine und Gesamtpreis</a>
|
||||
</div>
|
||||
<div class="min-w-0 flex-[1_1_32rem]">
|
||||
<table class="w-full text-left">
|
||||
<caption class="sr-only">Preise pro Nacht nach Saison</caption>
|
||||
<thead class="text-base text-muted">
|
||||
<tr><th scope="col" class="pb-3 font-semibold">Saison</th><th scope="col" class="hidden pb-3 font-semibold sm:table-cell">Zeitraum</th><th scope="col" class="pb-3 text-right font-semibold">pro Nacht</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($seasons as $season)
|
||||
<tr @class(['border-t border-line', 'bg-accent/10' => $featuredSeason && str_contains(mb_strtolower($featuredSeason), mb_strtolower($season->name))])>
|
||||
<th scope="row" class="py-4 pr-4 align-top font-semibold">
|
||||
{{ $season->name }}
|
||||
<span class="block font-normal text-muted sm:hidden">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</span>
|
||||
<span class="block font-normal text-muted">ab {{ $season->min_nights }} Nächten</span>
|
||||
</th>
|
||||
<td class="hidden py-4 pr-4 align-top text-muted sm:table-cell">{{ $season->starts_on->format('d.m.') }} bis {{ $season->ends_on->format('d.m.Y') }}</td>
|
||||
<td class="py-4 text-right align-top font-display text-[1.75rem] leading-none whitespace-nowrap">{{ \App\Support\Money::format($season->nightly_rate) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,34 @@
|
||||
@if ($reviews->isNotEmpty())
|
||||
<section class="mx-auto max-w-7xl px-4 py-16 sm:px-8 sm:py-20" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div class="flex flex-wrap items-end justify-between gap-x-10 gap-y-6">
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
<p class="flex items-center gap-4">
|
||||
<span class="font-display text-[3.5rem] leading-none">{{ number_format($average, 1, ',', '') }}</span>
|
||||
<span class="text-muted">von 5<br>{{ $count }} {{ $count === 1 ? 'Bewertung' : 'Bewertungen' }}</span>
|
||||
</p>
|
||||
</div>
|
||||
@if ($categories->isNotEmpty())
|
||||
<dl class="mt-8 grid grid-cols-2 gap-x-8 gap-y-3 border-y border-line py-5 sm:grid-cols-3 lg:grid-cols-6">
|
||||
@foreach ($categories as $category)
|
||||
<div class="flex flex-col-reverse"><dt class="text-muted">{{ $category['label'] }}</dt><dd class="font-display text-[1.75rem] leading-tight">{{ number_format($category['average'], 1, ',', '') }}</dd></div>
|
||||
@endforeach
|
||||
</dl>
|
||||
@endif
|
||||
<ul class="mt-10 grid gap-x-10 gap-y-12 sm:grid-cols-2 lg:grid-cols-3">
|
||||
@foreach ($reviews as $review)
|
||||
<li class="reveal">
|
||||
<figure class="h-full border-t-2 border-ink pt-6">
|
||||
<p class="text-xl tracking-widest text-accent" aria-label="{{ $review->rating }} von 5 Sternen">{{ str_repeat('★', $review->rating) }}<span class="text-line">{{ str_repeat('★', 5 - $review->rating) }}</span></p>
|
||||
@if ($review->title)<p class="mt-3 font-semibold">{{ $review->title }}</p>@endif
|
||||
@if ($review->body)<blockquote class="mt-3 font-display text-[1.375rem] leading-snug italic">„{{ $review->body }}“</blockquote>@endif
|
||||
<figcaption class="mt-5 font-semibold">{{ $review->display_name }}@if ($review->stayed_on)<span class="font-normal text-muted">, {{ $review->stayed_on->translatedFormat('F Y') }}</span>@endif</figcaption>
|
||||
@if ($review->response)
|
||||
<p class="mt-4 border-l-2 border-accent pl-4 text-muted"><span class="font-semibold text-ink">Antwort der Gastgeberin:</span> {{ $review->response }}</p>
|
||||
@endif
|
||||
</figure>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
<p class="mt-10 text-muted">Bewertungen über unsere Webseite können nur Gäste mit einer Buchung bei uns abgeben. Übernommene Bewertungen anderer Portale sind mit ihrer Quelle gekennzeichnet.</p>
|
||||
</section>
|
||||
@endif
|
||||
@@ -0,0 +1,8 @@
|
||||
<section class="mx-auto max-w-3xl px-4 py-16 sm:px-8 sm:py-20" @if ($heading) aria-labelledby="{{ $sectionId }}-title" @endif>
|
||||
@if ($heading)<h1 id="{{ $sectionId }}-title" class="heading-display mb-10">{{ $heading }}</h1>@endif
|
||||
@if ($text)
|
||||
<div class="prose-theme [&_h2]:mt-10 [&_h2]:text-[1.75rem] [&_h3]:mt-8 [&_li]:mb-1">{{ $text }}</div>
|
||||
@else
|
||||
<p class="text-muted">Dieser Text wird gerade überarbeitet.</p>
|
||||
@endif
|
||||
</section>
|
||||
@@ -0,0 +1,25 @@
|
||||
<section class="mx-auto flex max-w-7xl flex-wrap items-center gap-x-16 gap-y-10 px-4 py-16 sm:px-8 sm:py-24" aria-labelledby="{{ $sectionId }}-title">
|
||||
<div @class(['min-w-0 flex-[1_1_24rem]', 'order-2' => $imagePosition === 'left'])>
|
||||
@if ($eyebrow)<p class="eyebrow">{{ $eyebrow }}</p>@endif
|
||||
<h2 id="{{ $sectionId }}-title" class="heading-display">{{ $heading }}</h2>
|
||||
@if ($text)<div class="prose-theme mt-6">{{ $text }}</div>@endif
|
||||
@if ($linkLabel && $linkUrl)
|
||||
<a href="{{ $linkUrl }}" class="mt-2 inline-block border-b-2 border-accent pb-0.5 font-semibold hover:text-accent">{{ $linkLabel }}</a>
|
||||
@endif
|
||||
</div>
|
||||
@if ($photos->isNotEmpty())
|
||||
<div @class(['reveal grid min-w-0 flex-[1_1_30rem] grid-cols-5 gap-4', 'order-1' => $imagePosition === 'left'])>
|
||||
@foreach ($photos as $index => $photo)
|
||||
@include('theme::partials.image', [
|
||||
'photo' => $photo,
|
||||
'sizes' => $index === 0 ? '(min-width: 1024px) 40vw, 100vw' : '(min-width: 1024px) 20vw, 50vw',
|
||||
'class' => match (true) {
|
||||
$photos->count() === 1 => 'col-span-5 h-80 w-full rounded object-cover sm:h-[30rem]',
|
||||
$index === 0 => 'col-span-3 row-span-2 h-80 w-full rounded object-cover sm:h-[30rem]',
|
||||
default => 'col-span-2 h-[9.6rem] w-full rounded object-cover sm:h-[14.5rem]',
|
||||
},
|
||||
])
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</section>
|
||||
@@ -0,0 +1,9 @@
|
||||
@php($redirect = \App\Support\Settings::mailRedirect())
|
||||
@if ($redirect)
|
||||
<div class="fi-test-mode-banner" role="status" style="background:#fde68a;color:#422006;padding:.5rem 1rem;text-align:center;font-size:.875rem">
|
||||
<strong>Testbetrieb:</strong> Alle E-Mails gehen nur an {{ $redirect }}.
|
||||
@if (auth()->user()?->hasRole(\App\Enums\UserRole::Admin))
|
||||
<a href="{{ \App\Filament\Pages\Operations::getUrl() }}" style="text-decoration:underline">Betrieb einstellen</a>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@@ -0,0 +1,78 @@
|
||||
<#
|
||||
Keeps a local clone in sync with Gitea (e.g. every 5 minutes via Windows Task Scheduler).
|
||||
Safe by design: it only fast-forwards. Nothing happens if there are local uncommitted changes, if the
|
||||
branch has no upstream, or if local and remote both have new commits (that needs a human).
|
||||
Log: storage/logs/git-autosync.log (not committed).
|
||||
|
||||
Register (once per machine, PowerShell):
|
||||
scripts\git-autosync.ps1 -Register # every 5 minutes, as the current user
|
||||
scripts\git-autosync.ps1 -Unregister
|
||||
Run once by hand:
|
||||
scripts\git-autosync.ps1
|
||||
#>
|
||||
param(
|
||||
[switch] $Register,
|
||||
[switch] $Unregister,
|
||||
[int] $Minutes = 5
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$taskName = 'FeWo Stommer Git-Sync'
|
||||
$log = Join-Path $repo 'storage\logs\git-autosync.log'
|
||||
|
||||
if ($Register) {
|
||||
$action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument "-NoProfile -NonInteractive -WindowStyle Hidden -ExecutionPolicy Bypass -File `"$PSCommandPath`""
|
||||
$trigger = New-ScheduledTaskTrigger -Once -At (Get-Date).AddMinutes(1) -RepetitionInterval (New-TimeSpan -Minutes $Minutes)
|
||||
$settings = New-ScheduledTaskSettingsSet -StartWhenAvailable -DontStopIfGoingOnBatteries -AllowStartIfOnBatteries -ExecutionTimeLimit (New-TimeSpan -Minutes 5) -MultipleInstances IgnoreNew
|
||||
Register-ScheduledTask -TaskName $taskName -Action $action -Trigger $trigger -Settings $settings -Description "git pull --ff-only für $repo (scripts/git-autosync.ps1)" -Force | Out-Null
|
||||
Write-Output "Aufgabe '$taskName' eingerichtet: alle $Minutes Minuten. Protokoll: $log"
|
||||
exit 0
|
||||
}
|
||||
|
||||
if ($Unregister) {
|
||||
Unregister-ScheduledTask -TaskName $taskName -Confirm:$false
|
||||
Write-Output "Aufgabe '$taskName' entfernt."
|
||||
exit 0
|
||||
}
|
||||
|
||||
function Write-Log([string] $message) {
|
||||
New-Item -ItemType Directory -Force -Path (Split-Path $log) | Out-Null
|
||||
Add-Content -Path $log -Value ("{0:yyyy-MM-dd HH:mm:ss} {1}" -f (Get-Date), $message) -Encoding utf8
|
||||
}
|
||||
|
||||
function Invoke-Git([string[]] $arguments) {
|
||||
$output = & git.exe -C $repo @arguments 2>&1
|
||||
if ($LASTEXITCODE -ne 0) { throw "git $($arguments -join ' '): $output" }
|
||||
return $output
|
||||
}
|
||||
|
||||
try {
|
||||
Invoke-Git @('fetch', '--quiet', '--prune') | Out-Null
|
||||
|
||||
$branch = (Invoke-Git @('rev-parse', '--abbrev-ref', 'HEAD')).Trim()
|
||||
$upstream = & git.exe -C $repo rev-parse --abbrev-ref --symbolic-full-name '@{u}' 2>$null
|
||||
if ($LASTEXITCODE -ne 0 -or -not $upstream) { Write-Log "übersprungen: Branch $branch hat keinen Upstream"; exit 0 }
|
||||
|
||||
$counts = (Invoke-Git @('rev-list', '--left-right', '--count', "HEAD...$upstream")).Trim() -split '\s+'
|
||||
$ahead = [int] $counts[0]; $behind = [int] $counts[1]
|
||||
if ($behind -eq 0) { exit 0 } # nothing new – no log entry
|
||||
|
||||
if ((Invoke-Git @('status', '--porcelain', '--untracked-files=no')) ) { Write-Log "übersprungen: lokale Änderungen in $branch ($behind neue Commits auf $upstream warten)"; exit 0 }
|
||||
if ($ahead -gt 0) { Write-Log "nicht synchronisiert: $branch hat $ahead eigene und $behind neue Commits – bitte von Hand zusammenführen (git pull)"; exit 0 }
|
||||
|
||||
$before = (Invoke-Git @('rev-parse', 'HEAD')).Trim()
|
||||
Invoke-Git @('merge', '--ff-only', '--quiet', $upstream) | Out-Null
|
||||
$changed = Invoke-Git @('diff', '--name-only', $before, 'HEAD')
|
||||
$hints = @()
|
||||
if ($changed -match '^(package\.json|package-lock\.json)$') { $hints += 'npm ci && npm run build' }
|
||||
if ($changed -match '^composer\.(json|lock)$') { $hints += 'composer install' }
|
||||
if ($changed -match '^database/migrations/') { $hints += 'php artisan migrate' }
|
||||
if ($changed -match '^resources/(themes|css|js)/') { $hints += 'npm run build (Theme/Assets geändert)' }
|
||||
$summary = (Invoke-Git @('log', '--oneline', "$before..HEAD")) -join ' | '
|
||||
Write-Log ("aktualisiert $branch um $behind Commit(s): $summary" + ($(if ($hints) { " → bitte ausführen: " + (($hints | Select-Object -Unique) -join '; ') } else { '' })))
|
||||
}
|
||||
catch {
|
||||
Write-Log "Fehler: $($_.Exception.Message)"
|
||||
exit 1
|
||||
}
|
||||
|
After Width: | Height: | Size: 816 KiB |
|
After Width: | Height: | Size: 815 KiB |
|
After Width: | Height: | Size: 979 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 1.7 MiB |
@@ -0,0 +1,20 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
|
||||
<defs><clipPath id="band-pier-horizon"><rect x="1160" y="20" width="140" height="78"/></clipPath></defs>
|
||||
<circle cx="1230" cy="98" r="50" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-pier-horizon)"/>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<rect x="1100" y="92" width="380" height="6" rx="1"/>
|
||||
<rect x="1100" y="80" width="300" height="2.5"/>
|
||||
<path d="M1108 80 V92 M1126 80 V92 M1144 80 V92 M1162 80 V92 M1180 80 V92 M1198 80 V92 M1216 80 V92 M1234 80 V92 M1252 80 V92 M1270 80 V92 M1288 80 V92 M1306 80 V92 M1324 80 V92 M1342 80 V92 M1360 80 V92 M1378 80 V92" stroke="var(--brand-navy, #0B2E55)" stroke-width="2"/>
|
||||
<path d="M1112 98 H1117 V112 H1112 Z M1150 98 H1155 V112 H1150 Z M1188 98 H1193 V112 H1188 Z M1226 98 H1231 V112 H1226 Z M1264 98 H1269 V112 H1264 Z M1302 98 H1307 V112 H1302 Z M1340 98 H1345 V112 H1340 Z M1378 98 H1383 V112 H1378 Z M1416 98 H1421 V112 H1416 Z M1454 98 H1459 V112 H1454 Z"/>
|
||||
<rect x="1410" y="72" width="44" height="20"/>
|
||||
<path d="M1404 74 L1432 50 L1460 74 Z"/>
|
||||
<path d="M1430 50 L1432 34 L1434 50 Z"/>
|
||||
<rect x="1160" y="56" width="2" height="24"/>
|
||||
<path d="M1162 56 L1174 60 L1162 64 Z"/>
|
||||
<rect x="1380" y="60" width="2" height="20"/>
|
||||
<path d="M1382 60 L1392 64 L1382 68 Z"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M1060 44 Q1068 36 1076 44 Q1084 34 1094 40 M1020 64 Q1025 59 1030 64 Q1035 58 1041 61"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 70 400 68 600 90 C800 112 1000 112 1200 106 C1350 102 1480 96 1590 80 C1440 130 1260 126 1100 120 C900 114 760 120 600 108 C400 88 200 92 10 104 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 102 420 104 600 120 C800 136 1000 130 1200 124 C1340 120 1460 116 1540 110 C1400 142 1220 142 1060 136 C900 132 760 136 600 130 C420 118 240 116 60 122 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 150" preserveAspectRatio="xMidYMid meet" role="presentation" aria-hidden="true">
|
||||
<defs><clipPath id="band-sonne-horizon"><rect x="740" y="20" width="120" height="78"/></clipPath></defs>
|
||||
<circle cx="800" cy="98" r="44" fill="var(--brand-sun, #F2C27A)" clip-path="url(#band-sonne-horizon)"/>
|
||||
<path fill="var(--brand-sun, #F2C27A)" d="M760 104 H840 A3 3 0 0 1 840 110 H760 A3 3 0 0 1 760 104 Z M776 118 H824 A3 3 0 0 1 824 124 H776 A3 3 0 0 1 776 118 Z"/>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(744 100) scale(-1 1)">
|
||||
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
|
||||
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
|
||||
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
|
||||
</g>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(856 100)">
|
||||
<path d="M0 0 C-4 -20 -14 -38 -30 -50 C-18 -34 -10 -18 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -22 -2 -42 -12 -62 C-4 -40 -2 -20 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -18 16 -34 28 -46 C18 -30 10 -16 8 0 Z"/>
|
||||
<path d="M6 0 C14 -12 24 -22 36 -26 C26 -18 16 -8 10 0 Z"/>
|
||||
<path d="M-2 0 C-10 -10 -22 -18 -36 -20 C-22 -14 -12 -6 -6 0 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M10 104 C200 66 400 64 600 88 C690 98 750 104 800 100 C850 96 910 88 1000 88 C1200 88 1400 112 1590 74 C1420 128 1220 120 1000 108 C910 104 850 112 800 114 C750 116 690 114 600 106 C400 84 200 88 10 104 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M60 122 C240 100 420 102 600 118 C690 126 750 128 800 126 C850 124 910 116 1000 116 C1180 116 1360 134 1540 110 C1380 142 1200 140 1000 130 C910 126 850 134 800 136 C750 138 690 136 600 130 C420 116 240 114 60 122 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 50" role="presentation" aria-hidden="true">
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M8 26 Q20 12 32 24 Q46 6 62 16 M70 40 Q78 32 86 40 Q94 30 104 36 M88 14 Q93 9 98 14 Q103 8 110 11"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 332 B |
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 60" role="presentation" aria-hidden="true">
|
||||
<path fill="var(--brand-sun, #F2C27A)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linejoin="round" d="M60 52 L20 30 C24 14 40 6 60 6 C80 6 96 14 100 30 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2" stroke-linecap="round" d="M60 52 L32 16 M60 52 L46 9 M60 52 V6 M60 52 L74 9 M60 52 L88 16"/>
|
||||
<path fill="var(--brand-navy, #0B2E55)" d="M50 50 H70 L66 58 H54 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5" stroke-linecap="round" d="M2 44 H34 M86 44 H118"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 650 B |
@@ -0,0 +1,27 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Bäderbahn Molli">
|
||||
<title>Bäderbahn Molli</title>
|
||||
<g fill="var(--brand-wave, #6DBFC2)">
|
||||
<circle cx="66" cy="54" r="14"/><circle cx="84" cy="44" r="16"/><circle cx="104" cy="40" r="13"/><circle cx="120" cy="34" r="11"/><circle cx="80" cy="60" r="10"/>
|
||||
</g>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<path d="M58 62 H74 L72 70 V92 H60 V70 Z"/>
|
||||
<rect x="44" y="90" width="66" height="30" rx="8"/>
|
||||
<rect x="104" y="76" width="34" height="44" rx="2"/>
|
||||
<rect x="100" y="72" width="42" height="6" rx="2"/>
|
||||
<rect x="80" y="82" width="10" height="10" rx="5"/>
|
||||
</g>
|
||||
<rect x="112" y="84" width="18" height="14" fill="var(--brand-paper, #F6F1E4)"/>
|
||||
<rect x="40" y="118" width="102" height="8" fill="var(--brand-brick, #A63A2B)"/>
|
||||
<g fill="var(--brand-paper, #F6F1E4)" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5">
|
||||
<rect x="146" y="86" width="74" height="34" rx="3"/>
|
||||
</g>
|
||||
<rect x="146" y="108" width="74" height="12" fill="var(--brand-brick, #A63A2B)"/>
|
||||
<path fill="var(--brand-navy, #0B2E55)" d="M142 82 H224 V88 H142 Z M154 92 H166 V102 H154 Z M172 92 H184 V102 H172 Z M190 92 H202 V102 H190 Z M206 92 H216 V102 H206 Z"/>
|
||||
<g fill="var(--brand-brick, #A63A2B)" stroke="var(--brand-navy, #0B2E55)" stroke-width="3">
|
||||
<circle cx="60" cy="132" r="9"/><circle cx="84" cy="132" r="9"/><circle cx="108" cy="132" r="9"/>
|
||||
<circle cx="160" cy="128" r="6"/><circle cx="206" cy="128" r="6"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M60 132 H108 M24 142 H228"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 156 C50 136 98 132 142 142 C178 150 208 150 234 140 C216 160 182 168 142 164 C102 160 62 150 6 156 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 170 C62 158 106 160 142 168 C174 176 202 174 228 166 C208 178 174 180 138 176 C102 172 66 166 22 170 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,21 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Mit dem Rad an der Küste">
|
||||
<title>Mit dem Rad an der Küste</title>
|
||||
<defs><clipPath id="rad-horizon"><rect x="120" y="20" width="110" height="88"/></clipPath></defs>
|
||||
<circle cx="172" cy="104" r="40" fill="var(--brand-sun, #F2C27A)" clip-path="url(#rad-horizon)"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M118 108 H234 V118 H118 Z"/>
|
||||
<path fill="var(--brand-navy, #0B2E55)" d="M200 92 H205 V122 H200 Z M212 96 H217 V122 H212 Z"/>
|
||||
<path fill="var(--brand-sun, #F2C27A)" opacity="0.55" d="M8 150 C60 128 110 120 160 124 C190 126 214 132 234 140 V150 Z"/>
|
||||
<g fill="var(--brand-reed, #C9A15E)" transform="translate(26 138)">
|
||||
<path d="M0 0 C-4 -16 -10 -30 -22 -40 C-12 -28 -6 -14 -4 0 Z"/>
|
||||
<path d="M2 0 C2 -18 0 -34 -6 -50 C0 -32 0 -16 -2 0 Z"/>
|
||||
<path d="M4 0 C8 -14 14 -26 24 -36 C16 -24 10 -12 8 0 Z"/>
|
||||
</g>
|
||||
<g fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="76" cy="116" r="22"/>
|
||||
<circle cx="146" cy="116" r="22"/>
|
||||
<path d="M76 116 L100 88 L134 88 L146 116 M100 88 L112 116 L76 116 M112 116 L134 88 M94 78 L108 78 M134 88 L130 74 L142 72"/>
|
||||
</g>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M150 48 Q158 40 166 48 Q174 38 184 44"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 158 C50 140 98 136 142 146 C178 154 208 154 234 144 C216 164 182 170 142 166 C102 162 62 152 6 158 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 172 C62 160 106 162 142 170 C174 178 202 176 228 168 C208 178 174 180 138 178 C102 174 66 168 22 172 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,22 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 180" role="img" aria-label="Seebrücke">
|
||||
<title>Seebrücke</title>
|
||||
<defs><clipPath id="pier-horizon"><rect x="60" y="20" width="140" height="106"/></clipPath></defs>
|
||||
<circle cx="128" cy="122" r="52" fill="var(--brand-sun, #F2C27A)" clip-path="url(#pier-horizon)"/>
|
||||
<g fill="var(--brand-navy, #0B2E55)">
|
||||
<rect x="22" y="114" width="196" height="7" rx="1"/>
|
||||
<rect x="22" y="100" width="150" height="3"/>
|
||||
<path d="M30 100 V114 M48 100 V114 M66 100 V114 M84 100 V114 M102 100 V114 M120 100 V114 M138 100 V114 M156 100 V114" stroke="var(--brand-navy, #0B2E55)" stroke-width="2.5"/>
|
||||
<path d="M34 121 H40 V146 H34 Z M64 121 H70 V146 H64 Z M94 121 H100 V146 H94 Z M124 121 H130 V146 H124 Z M154 121 H160 V146 H154 Z M184 121 H190 V146 H184 Z M206 121 H212 V146 H206 Z"/>
|
||||
<rect x="176" y="92" width="38" height="22"/>
|
||||
<path d="M170 94 L195 72 L220 94 Z"/>
|
||||
<path d="M193 72 L195 56 L197 72 Z"/>
|
||||
<rect x="58" y="74" width="2.5" height="26"/>
|
||||
<path d="M60.5 74 L74 78 L60.5 82 Z"/>
|
||||
<rect x="148" y="78" width="2.5" height="22"/>
|
||||
<path d="M150.5 78 L162 82 L150.5 86 Z"/>
|
||||
</g>
|
||||
<path fill="var(--brand-paper, #F6F1E4)" d="M182 98 H190 V108 H182 Z M200 98 H208 V108 H200 Z"/>
|
||||
<path fill="none" stroke="var(--brand-navy, #0B2E55)" stroke-width="3" stroke-linecap="round" d="M34 50 Q42 42 50 50 Q58 40 68 46"/>
|
||||
<path fill="var(--brand-teal, #0286A2)" d="M6 152 C50 124 98 118 142 132 C178 144 208 142 234 128 C216 154 182 166 142 160 C102 154 62 140 6 152 Z"/>
|
||||
<path fill="var(--brand-wave, #6DBFC2)" d="M22 168 C62 150 106 152 142 164 C174 174 202 172 228 160 C208 176 174 180 138 174 C102 168 66 160 22 168 Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.7 KiB |