<%= _("Current Subscription Totals") %>

<% unless Organization.current.present? %>

<%= _("Please select an organization to view subscription totals.") %>

<% else %> <% subscriptions = Katello::Subscription.in_organization([Organization.current]).includes(:pools) %> <% total_active_subscriptions = Organization.current.active_pools_count %> <% total_expiring_subscriptions = subscriptions.select(&:expiring_soon?).count %> <% total_recently_expired_subscriptions = subscriptions.select(&:recently_expired?).count %>
<%= _("Subscription Status") %> <%= _("Count") %>
<%= _("Active Subscriptions") %> <%= total_active_subscriptions %>
<%= _("Subscriptions Expiring in 120 Days") %> <%= total_expiring_subscriptions %>
<%= _("Recently Expired Subscriptions") %> <%= total_recently_expired_subscriptions %>
<% end %>