<% content_for :javascripts do %>
  <%= javascript_include_tag 'analytics/dashboards/highcharts.contracts_pie.js' %>
<% end %>

<h2>Stats: signups</h2>

<% if @service.cinstances.empty? %>
  <p>This section shows statistics on contracts, but you have no contracts yet...</p>
<% else %>

  <div class="left stats_main">

    <%= if current_account.multiple_applications_allowed?
          render 'buyers/applications/latest_signups', :cinstances => current_account.provided_cinstances.latest
        else
          render 'buyers/accounts/latest', :latest_accounts => current_account.buyer_accounts.latest
        end %>
  </div>

  <div class="right stats_side">
    <div id="pie" data-source="/admin/stats/signups" style="width: 275px; height: 185px"></div>
  </div>

<% end %>
