Files
fewo-stommer/resources/themes/seebad/views/sections/prices.blade.php
T
LarsandClaude Opus 5.5 5416b37dfc Theme Seebad 0.1.1: header no longer overlaps, readable amenities and prices
- Header: full menu from 1280 px, menu button below; site name never shrinks into the menu
- Hero: photo and text side by side from 1024 px
- Own amenities (serif area headings, check marks) and prices (extras as list, larger table, mobile layout)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:39:12 +02:00

42 lines
3.2 KiB
PHP

<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>