@extends('layouts.site') @section('title', 'Réserver — JavaPax au Moulleau') @section('meta_description', 'Vérifiez les disponibilités et envoyez votre demande de réservation pour l\'appartement JavaPax au Moulleau, Arcachon.') @section('content')

Réserver votre séjour

Consultez les disponibilités ci-dessous puis envoyez-nous votre demande. Nous vous répondons rapidement pour confirmer.

@if(session('reserved'))
✅ Merci, votre demande de réservation a bien été envoyée ! Nous revenons vers vous très vite pour la confirmer.
@endif
{{-- CALENDRIER --}}

Disponibilités

Libre Occupé
@foreach($months as $month) @php $first = $month->copy()->startOfMonth(); $daysInMonth = $month->daysInMonth; $startWeekday = (int) $first->isoWeekday(); // 1=lundi @endphp
{{ $month->translatedFormat('F Y') }}
@foreach(['L','M','M','J','V','S','D'] as $d)
{{ $d }}
@endforeach
@for($i = 1; $i < $startWeekday; $i++)
@endfor @for($day = 1; $day <= $daysInMonth; $day++) @php $date = $first->copy()->day($day); $key = $date->format('Y-m-d'); $isPast = $date->lt($today); $isBusy = isset($unavailable[$key]); @endphp @if($isPast)
{{ $day }}
@elseif($isBusy)
{{ $day }}
@else
{{ $day }}
@endif @endfor
@endforeach
{{-- FORMULAIRE --}}

Votre demande

@if($errors->any())
{{ $errors->first() }}
@endif
@csrf

Demande sans engagement — nous confirmons la disponibilité et le tarif par retour.

@endsection