1 line
1.7 KiB
PHP
1 line
1.7 KiB
PHP
@extends('lodge.layout')@section('title','Availability | Cresta 31')@section('content')<div class="subhero"><div class="wrap"><h1>Your stay</h1></div></div><main class="section wrap"><div class="card"><h2>{{ $available?'Your dates are available':'These dates are unavailable' }}</h2><p>{{ $v['check_in'] }} → {{ $v['check_out'] }} · {{ $nights }} nights · {{ $v['guests'] }} guests</p>@if($available)<p class="price">£{{ number_format($total,2) }} <span class="small">estimated total</span></p><p class="small">Submit a booking request. Your booking remains pending until confirmed by the lodge owner. No payment is taken online.</p>@if($errors->any())<div class="errors">{{ $errors->first() }}</div>@endif<form method="post" action="{{ route('lodge.book') }}">@csrf<input type="hidden" name="check_in" value="{{ $v['check_in'] }}"><input type="hidden" name="check_out" value="{{ $v['check_out'] }}"><input type="hidden" name="guests" value="{{ $v['guests'] }}"><div class="form-grid"><div><label>Name</label><input name="guest_name" required value="{{ old('guest_name') }}"></div><div><label>Email</label><input name="guest_email" type="email" required value="{{ old('guest_email') }}"></div><div class="full"><label>Phone (optional)</label><input name="guest_phone" value="{{ old('guest_phone') }}"></div><div class="full"><label>Anything we should know? (optional)</label><textarea name="notes" rows="4">{{ old('notes') }}</textarea></div><div class="full"><button type="submit">Request this stay →</button></div></div></form>@else<p>Someone has already requested or booked part of this stay. Please select alternative dates.</p><a class="button" href="{{ route('home') }}#book">Choose new dates</a>@endif</div></main>@endsection |