<% title = @scheme.service_name %> <% content_for :title, title %> <% content_for :before_content do %> <%= govuk_back_link( text: "Back", href: "/schemes/#{@scheme.id}", ) %> <% end %> <%= 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" } %>