<thead>
    <tr>
		<th width="25%" align="left" valign="middle" class="sortasc" >{$language.lblLocation}</th>
		<th align="left" valign="middle"> {$language.lblViists}
		</th>
		<th align="left" valign="middle">{$language.lblSubscriptions}
		</th>
		<th align="left" valign="middle">{$language.lblRegistrations}
		</th>
		<th align="left" valign="middle">{$language.lblOrders} </th>
		<th align="left" valign="middle"> {$language.lblSales}
		</th>
		<th align="left" valign="middle">{$language.lblRevenue}
		</th>
	  </tr>
     </thead>
	 {if $demoGraphic}
<tbody>
{foreach from=$demoGraphic item="data"}
{$visitor=$visitor+$data['visitors']}
{$subscription=$subscription+$data['subscription']}
{$registration=$registration+$data['registration']}
{$sales=$sales+$data['sales']}
{$salescount=$salescount+$data['salescount']}
{$revenue=$revenue+$data['revenue']}
{$count=$count+1}
              <tr>
                <td align="left" valign="middle">{$data['location']} <br /></td>
                <td align="left" valign="middle">{$data['visitors']} </td>
                <td align="left" valign="middle"> {$data['subscription']} </td>
                <td align="left" valign="middle">{$data['registration']}</td>
				<td align="left" valign="middle">{$data['salescount']}</td>
                <td align="left" valign="middle"> {$data['sales']|price} </td>
                <td align="left" valign="middle">{$data['revenue']|price}</td>
              </tr>
{/foreach}
</tbody>
 {/if}
{if $count>0}
<tfoot>
	<tr>
		
                <td align="left" valign="middle">{$language.lblTotalAvg}</td>
                <td align="left" valign="middle">{$visitor} </td>
                <td align="left" valign="middle"> {$subscription} </td>
                <td align="left" valign="middle">{$registration}</td>
				<td align="left" valign="middle">{$salescount}</td>
                <td align="left" valign="middle">{$sales|price}  </td>
                <td align="left" valign="middle">{$revenue|price}</td>
              </tr>
			  </tfoot>
			  {/if}
			  
			 