<div class="search-results-page-form"><%= render 'search/form' %></div>

<div class="row">
  <div class="col m12">
    <p class="no-results">
      <%= @results_message %>
    </p>
  </div>
</div>
<div class="search-results">
  <% @companies.each do |company| %>
    <div class="row">
      <div class="col m3">
        <img class="company-img" src="<%= company.profile_image_url %>" alt="<%= company.name %>" />
      </div>
      <div class="col m9">
        <h5><%= link_to  company.name , company_path(company)%></h5>
        <div class="rating"><%= company.avg_rating %></div>
      </div>
    </div>
  <% end %>
</div>

<div class="search-results-page-form"><%= render 'search/form' %></div>

<div class="row">
  <div class="col m12">
    <p class="no-results">
      <%= @results_message %>
    </p>
  </div>
</div>
<div class="search-results">
  <% @companies.each do |company| %>
    <div class="row">
      <div class="col m3">
        <img class="company-img" src="<%= company.profile_image_url %>" alt="<%= company.name %>" />
      </div>
      <div class="col m9">
        <h5><%= link_to  company.name , company_path(company)%></h5>
        <div class="rating"><%= company.avg_rating %></div>
      </div>
    </div>
  <% end %>
</div>


<div class="company-data" data="<%= autocomplete_data %>"></div>

Add data to search page
Add data to search page
