| <%= enquiry.reference_number %> |
<%= enquiry.full_name %> |
<%= enquiry.email %> |
<%= enquiry.phone %> |
<% if enquiry.property %>
<%= link_to enquiry.property.property_number, admin_portal_property_path(enquiry.property), class: "text-decoration-none fw-medium" %>
<% else %>
N/A
<% end %>
|
<%= enquiry.agent_profile&.user&.full_name || 'N/A' %> |
<% case enquiry.status %>
<% when "pending" %>
Pending
<% when "processed" %>
Processed
<% when "rejected" %>
Rejected
<% else %>
<%= enquiry.status.capitalize %>
<% end %>
|
<%= enquiry.created_at.strftime("%d %b %Y %H:%M") %> |
<%= link_to 'View', admin_portal_enquiry_path(enquiry), class: 'btn btn-sm btn-info rounded-pill px-3 py-1 shadow-sm' %>
|