<% @page_title = "Notifications" %> <% @hide_footer_frames = true %> <% content_for :header do %> <%= render "filters/menu" %>

<%= @page_title %>

<%= link_to notifications_settings_path, class: "btn" do %> <%= icon_tag "settings" %> Notification settings <% end %>
<% end %>
<% if @unread.any? %>

New for you

<%= button_to "Mark all as read", bulk_reading_path, class: "btn txt-small", form: { data: { turbo: false } }, data: { action: "badge#clear" } %>
<% else %>
Nothing new for you.
<% end %>
<%= render partial: "notifications/notification", collection: @unread, cached: true %>

Previously seen

<%= render partial: "notifications/notification", collection: @page.records, cached: true %>
<%= notifications_next_page_link(@page) if @page.records.any? %>