Reservation Details
All information about your reservation at a glance.
Property: <%= @reservation.property&.property_number || "N/A" %>
Customer: <%= @reservation.customer&.firstname || "N/A" %>
Agent: <%= @reservation.created_by&.full_name || "N/A" %>
Status:
<% case @reservation.status %>
<% when "pending" %>
Pending
<% when "approved" %>
Approved
<% when "expired" %>
Expired
<% when "cancelled" %>
Cancelled
<% else %>
Unknown
<% end %>
Expires At: <%= @reservation.expires_at&.strftime("%d-%b-%Y %H:%M") || "N/A" %>
Notes: <%= @reservation.notes.presence || "No notes added." %>
<%= link_to "Back to Reservations", client_portal_reservations_path, class: "btn btn-secondary btn-lg rounded-pill px-4" %>
<% if @reservation.approved? %>
<%= button_to "Cancel Reservation",
cancel_client_portal_reservation_path(@reservation),
method: :patch,
data: { turbo: false, turbo_confirm: "Are you sure you want to cancel this reservation?" },
class: "btn btn-danger rounded-pill px-4 py-2 shadow-sm" %>
<% end %>