Enquiry Details

Reference Number: <%= @enquiry.reference_number %>

Status: <%= @enquiry.status.capitalize %>

Received At: <%= @enquiry.created_at.strftime("%d %b %Y %H:%M") %>

Source: <%= @enquiry.source %>

Property: <% if @enquiry.property %> <%= link_to @enquiry.property.property_number, admin_portal_property_path(@enquiry.property), class: "fw-semibold text-decoration-none" %> <% else %> N/A <% end %>

Agent: <%= @enquiry.agent_profile&.user&.full_name || 'N/A' %>


Full Name: <%= @enquiry.full_name %>

Email: <%= @enquiry.email %>

Phone: <%= @enquiry.phone %>


Message:

<%= simple_format(@enquiry.message) %>
<%= button_to 'Send Registration Link', send_registration_link_admin_portal_enquiry_path(@enquiry), method: :post, class: 'btn btn-primary rounded-pill px-4 py-2 shadow-sm', data: { turbo: false } %> <%= link_to 'Back to List', admin_portal_enquiries_path, class: 'btn btn-secondary rounded-pill px-4 py-2 shadow-sm' %>