<h2><%=t(:field_vehicle)%> #<%=@vehicle.id%></h2>

<%= render partial: 'vehicles/details', locals: {vehicle: @vehicle} %>

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

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

<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)} %>
