{config_load file="$language.conf" section="view_orders_summary"}

{literal}
<style type="text/css">
  .order_stats_label {
    margin: 0 !important;
  }

  .order_stats_label {
    display: table-cell;
    height: 30px;
    vertical-align: bottom;
    padding-bottom: 7px;
    opacity: 0.75;
    font-size: 75%;
    white-space: normal;
  }

  .order_stats_val {
    font-size: 100%;
    font-weight: bold;
    margin: 0 !important;
    padding-bottom: 5px;
  }

  .order_stats_val_sub {
    font-size: 75%;
    margin: 0 !important;
    opacity: 0.5;

  }

  .order_stats_val > .timeago {
    text-decoration: none;
  }

</style>
{/literal}
<!--
<p class="ui-li-aside">
  {#turnover#} {$turnover}
  <br/>
  <span class="ui-li-count">{$number_of_orders}</span>
</p>
-->

<p>
<div class="ui-grid-d" style="margin-top: -12px">
  <div class="ui-block-a">
    <p class="order_stats_label">{#title_first_order#}</p>

    <p class="order_stats_val">
      {$first_order_value}
    </p>

    <p class="order_stats_val_sub">
      <span class="timeago" title="{$first_order_timestamp}">{$first_order_timestamp}</span>
    </p>
  </div>

  <div class="ui-block-b">
    <p class="order_stats_label">{#title_last_order#}</p>

    <p class="order_stats_val">
      {$last_order_value}
    </p>

    <p class="order_stats_val_sub">
      <span class="timeago" title="{$last_order_timestamp}">{$last_order_timestamp}</span>
    </p>
  </div>
  <div class="ui-block-c">
    <p class="order_stats_label">{#title_total_revenue#}</p>

    <p class="order_stats_val">
      {$turnover} </p>
  </div>
  <div class="ui-block-d">
    <p class="order_stats_label">{#title_total_orders#}</p>

    <p class="order_stats_val">
      {$number_of_orders}
    </p>

  </div>
  <div class="ui-block-e">
    <p class="order_stats_label">{#title_avg_order_value#}</p>

    <p class="order_stats_val">
      {$avg_order_value}
    </p>
  </div>
</div>


<!--

{#last_order#}

{if $order->info.order_id} {#order_id#} #{$order->info.order_id}
{if $order->info.date_purchased}
({$order->info.date_purchased})
{/if}
{/if}

{if $order->info.last_modified}
{#change_date#}
{$order->info.last_modified}
{/if}

{assign var=temp value=$order->info.orders_status}

{if $temp}
{#order_status#} {$order_statuses.$temp}
{/if}

{if $order->totals[0].value}
{#order_turnover#} {$order->totals[0].text}
{/if}

{if $number_of_products}
{#number_of_products#}{$order->number_of_products}
{/if}

-->
</p>
