<div class='section container'>
  <div class='centered'>
    <div class='box'>
      <h2><%= @business.name %></h2>
      <h3>Neighborhood: <%= @details.address_components[2]["long_name"] %></h3>
      <p>
        <%= @details.formatted_address.split(',')[0] %></br>
        <%= @details.formatted_address.split(',')[1] %>, <%= @details.formatted_address.split(',')[2] %>
      </p>
      <p><%= @details.formatted_phone_number %></p>
      <p><%= link_to "Website", @details.website, target: "_blank", rel: "nofollow" %></p>
      <p>
        <ul>
          <% @details.opening_hours["weekday_text"].each do |weekday_hours| %>
            <li><%= weekday_hours  %></li>
          <% end %>
        </ul>
      </p>
      <div class="business-image">
        <img src="<%= @details.photos[0].fetch_url(150) %>" >
      </div>
    </div>
  </div>
</div>

<div class='section container'>
  <div class='centered'>
    <div class='box'>
      <h2><%= @business.name %></h2>
      <h3>Neighborhood: <%= @details.address_components[2]["long_name"] %></h3>
      <p>
        <%= @details.formatted_address.split(',')[0] %></br>
        <%= @details.formatted_address.split(',')[1] %>, <%= @details.formatted_address.split(',')[2] %>
      </p>
      <p><%= @details.formatted_phone_number %></p>
      <% if @details.website == nil %>
      <% else %>
        <p><%= link_to "Website", @details.website, target: "_blank", rel: "nofollow" %></p>
      <% end %>
      <p>
        <ul>
          <% if @details.opening_hours == nil %>
          <% else %>
            <% @details.opening_hours["weekday_text"].each do |weekday_hours| %>
              <li><%= weekday_hours  %></li>
            <% end %>
          <% end %>
        </ul>
      </p>
      <div class="business-image">
        <% if @details.photos[0] == nil %>
        <% else %>
          <img src="<%= @details.photos[0].fetch_url(150) %>" >
        <% end %>
      </div>
    </div>
  </div>
</div>

Add conditional logic to business show page to handle nil values in details.
Add conditional logic to business show page to handle nil values in details.
