<%= link_to_previous_page @emails, 'Previous page', class: "ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:text-gray-500" %>
<%= link_to_next_page @emails, 'Next Page', class: "relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:text-gray-500" %>
Showing
<%= @emails.offset_value + 1 %>
to
<%= @emails.offset_value + (@emails.respond_to?(:records) ? @emails.records : @emails.to_a).size %>
of
<%= @emails.total_count %>
results
<%= paginate @emails %>