<.back_to_link navigate={"/#{@space.slug}"} value={"Back to #{@space.name}"} />

{@space.name}

{@space.description}

Available Time Slots

<.live_component module={SpazioSolazzoWeb.BookingCalendarLiveComponent} id="booking-calendar" selected_date={@selected_date} />

Selected day: {Calendar.strftime(@selected_date, "%A, %B %d, %Y")}

<%= if @time_slots == [] do %>
No time slots available for this date
<% else %> <%= for time_slot <- @time_slots do %> <.time_slot_card time_slot={time_slot} /> <% end %> <% end %>

<.icon name="hero-credit-card" class="w-5 h-5" /> Payment due upon arrival.

<.live_component module={SpazioSolazzoWeb.BookingFormLiveComponent} id="booking-modal" show={@show_booking_modal} selected_time_slot={@selected_time_slot} space={@space} selected_date={@selected_date} current_user={@current_user} slot_availability={ if @selected_time_slot do @selected_time_slot.booking_stats.availability_status else :available end } on_cancel={JS.push("cancel_booking")} /> <%= if @show_success_modal do %>

Request Submitted!

Your booking request is pending approval. You'll receive an email confirmation shortly.

<% end %>