<h2><%=t(:field_customer)%> #<%= @customer.id %> - <%= @customer.name %> </h2>
  <div class="issue">

    <div class="splitcontent">

      <div class="splitcontentleft">

        <h4><%=t(:label_details)%>:</h4>

        <%= render :partial => 'customers/details', locals: {customer: @customer} %>

        <div class="splitcontent">
          <div class="splitcontentleft">
            <h4><%=t(:estimates)%>:</h4>
            <%= render :partial => 'estimates/list', locals: {customer: @customer} %>
          </div>

          <div class="splitcontentleft">
            <h4><%=t(:label_invoices)%>:</h4>
            <%= render :partial => 'invoices/list', locals: {customer: @customer} %>
          </div>
        </div>

      </div>
        
      <div class="splitcontentleft">
        <h4><%=t(:field_vehicles)%>:</h4>
        <%= render :partial => 'vehicles/list' %>
        <div style="float: right;">
          <%= button_to "New Vehicle", new_customer_vehicle_path(@customer), method: :get %>
        </div>
      </div>
    </div>

  </div>

<br/>
<h3><%=@issues.open.count%> <%=t(:label_open_issues)%>:</h3>
<%= render :partial => 'issues/list_simple', locals: {issues: @issues.open} %>

<h3><%=@closed_issues.count%> <%=t(:label_closed_issues)%>:</h3>
<%= render :partial => 'issues/list_simple', locals: {issues: @closed_issues} %>
