Welcome back, <%= current_user.full_name %> 👋

Here's an overview of system activity today.

<%= link_to "Add Agent", new_admin_portal_agent_path, class: "btn btn-primary rounded-pill px-4 shadow-sm" %> <%= link_to "Manage Projects", admin_portal_projects_path, class: "btn btn-outline-secondary rounded-pill px-4 ms-2" %>

<%= render "admin_portal/dashboard/pending_customers_count" %>

<% stats = [ { title: "Projects", count: @projects_count, icon: "fa-briefcase", color: "primary", path: admin_portal_projects_path }, { title: "Customers", count: @customers_count, icon: "fa-users", color: "success", path: admin_portal_customers_path }, { title: "Agents", count: @agents_count, icon: "fa-user-tie", color: "info", path: admin_portal_agents_path }, { title: "Reservations", count: @reservations_count, icon: "fa-calendar-check", color: "warning", path: admin_portal_reservations_path }, { title: "Enquiries", count: @enquiries_count, icon: "fa-envelope-open-text", color: "danger", path: admin_portal_enquiries_path } ] %>
<% stats.each do |stat| %>
<%= link_to stat[:path], class: "text-decoration-none" do %>
<%= stat[:title] %>

<%= stat[:count] %>

<% end %>
<% end %>
Activity Overview
Recent Enquiries
    <% @recent_enquiries.each do |enquiry| %>
  • <%= enquiry.full_name %> <%= time_ago_in_words(enquiry.created_at) %> ago
  • <% end %>
Recent Customers
    <% @recent_customers.each do |customer| %>
  • <%= customer.customer_name %> (<%= customer.email %>)
  • <% end %>