<% title = @scheme.service_name %> <% content_for :title, title %> <%= govuk_back_link(href: request.referer.to_s) %> <%= render partial: "organisations/headings", locals: { main: @scheme.service_name, sub: nil } %> <%= render SubNavigationComponent.new(items: scheme_items(request.path, @scheme.id, @scheme.locations.count.eql?(1) ? "1 location" : "#{@scheme.locations.count} locations")) %>
<% @locations.each do |location| %>

<%= "#{location.address_line1}, #{location.address_line2}" %>

<% location.display_attributes.each do |attribute| %>
<%= attribute[:name] %>
<%= attribute[:value] %> <% if attribute[:suffix] %> <%= attribute[:suffix] %> <% end %>
<% end %>
<% end %>
<%== render partial: "pagy/nav", locals: { pagy: @pagy, item_name: "locations" } %>