<?php echo $header;?>
<div id="dashboard">
	<div class="container">
<div class="row"><br/></div>
<div class="panel">

	<div class="panel-header"><?php echo $LANG["WBS_ADMIN_STATS_TA_ADVERTISERS_STATS"];?></div>

<div class="panel-content">
<div class="col-md-12">
<!-- ADMIN QUICK STATS -->

	<?php if ( CHARTS_TYPE == 'HIGHCHARTS' ) { ?>

<!-- PUBLISHERS STATISTICS -->
<div id="publishers-users" style="width: 100%; height: 450px; margin: 0 auto"></div>

<script>
$(function () {
    $('#publishers-users').highcharts({
        chart: {
            type: 'bar'
        },
        title: {
            text: '<?php echo $LANG["WBS_ADMIN_STATS_TA_ADVERTISER_STATISTICS"];?>'
        },
        xAxis: {
            categories: ['<?php echo $LANG["WBS_ADMIN_STATS_TA_STATS"];?>'],
            title: {
                text: null
            }
        },
        yAxis: {
            min: 0,
            labels: {
                overflow: 'justify'
            }
        },
        plotOptions: {
            bar: {
                dataLabels: {
                    enabled: true
                }
            }
        },
        legend: {
            layout: 'vertical',
            align: 'right',
            verticalAlign: 'top',
            x: -10,
            y: 40,
            floating: true,
            borderWidth: 1,
            backgroundColor: ((Highcharts.theme && Highcharts.theme.legendBackgroundColor) || '#FFFFFF'),
            shadow: true
        },
        credits: {
            enabled: false
        },
        series: [
		{
            name: '<?php echo $LANG["WBS_ADMIN_STATS_TA_SPENT_MONEY"];?>',
            data: [<?php echo $sum;?>]
        },
		{
            name: '<?php echo $LANG["WBS_ADMIN_STATS_TA_CLICKS"];?>',
            data: [<?php echo $clicksCounter;?>]
        },
		{
            name: '<?php echo $LANG["WBS_ADMIN_STATS_TA_VIEWS"];?>',
            data: [<?php echo $viewsCounter;?>]
        }

		]
    });
});
</script>
<!-- END PUBLISHERS STATISTICS -->
<?php } else { ?>

	<?php echo $LANG["WBS_ADMIN_ACTIVATE_HIGHCHARTS"];?>

<?php } ?>



<!-- END ADMIN QUICK STATS -->
<div class="row"><br/></div>
</div>
<div class="row"><br/></div>
</div>

</div>
</div>
</div>
<?php echo $footer;?>