<%- include('../catalogCommerce/assets.ejs') %>
<%
  const premiumTotal = counts?.[0]?.value ?? packages.length;
%>
<main class="cc-console" data-cc-console data-module="premiumPackages"
  data-filter-url="/dashboard/premiumPackages?type=filter" data-csrf="<%= typeof csrfToken !== 'undefined' ? csrfToken : '' %>">
  <%- include('../catalogCommerce/header.ejs', {
    title: i18n.__('premiumPackages.premiumPackages'),
    subtitle: i18n.__('catalogCommerce.featuredPackagesSubtitle'),
    icon: 'ti-star',
    count: premiumTotal,
    createUrl: '/dashboard/premiumPackages/create',
    hasFilters: true,
    tabs: [],
    secondaryLinks: []
  }) %>
  <%- include('../catalogCommerce/filters.ejs', { filterData, lang, i18n }) %>
  <p class="cc-error" data-cc-error hidden></p>
  <section class="cc-results-shell">
    <div class="cc-results-shell__bar">
      <strong><%= i18n.__('catalogCommerce.featuredPackagesRegistry') %></strong>
      <span><%= i18n.__('catalogCommerce.featuredPackagesRegistryDescription') %></span>
    </div>
    <div data-cc-results><%- include('./dataTable.ejs', { packages, paginationHtml, lang, i18n, moment }) %></div>
  </section>
  <%- include('../catalogCommerce/confirmModal.ejs', { lang }) %>
</main>
