Example #1
0
    ?>
                    <?php 
} else {
    ?>
                         --
                    <?php 
}
?>
                </h2>
                <hr class="statcard-hr">
            </div>
            <?php 
$chart_colors = array(array('fill' => 'rgba(33,150,243,.1)', 'stroke' => 'rgba(33,150,243,.8)', 'point' => 'rgba(33,150,243,.8)', 'pointStroke' => 'rgba(33,150,243,.8)'));
?>
            <?php 
echo Chart::line($current_by_date, array('height' => 94, 'width' => 378, 'options' => array('animation' => false, 'responsive' => true, 'bezierCurve' => true, 'bezierCurveTension' => '.25', 'showScale' => true, 'pointDotRadius' => 0, 'pointDotStrokeWidth' => 0, 'pointDot' => false, 'maintainAspectRatio' => true, 'scaleShowVerticalLines' => false, 'tooltipTemplate' => '<%= datasetLabel %><%= value %>', 'multiTooltipTemplate' => '<%= datasetLabel %><%= value %>', 'showTooltips' => true)), $chart_colors);
?>
        </div>
    </div>
    <div class="col-md-12">
        <div class="statcard statcard-success">
            <ul class="nav nav-pills nav-justified text-center">
                <li role="presentation">
                    <div class="p-a">
                        <span class="statcard-desc"><?php 
echo __('Current');
?>
</span>
                        <h2 class="statcard-number">
                            <?php 
if ($current_total !== NULL) {
Example #2
0
        ?>
                            --
                        <?php 
    }
    ?>
                    </h2>
                <?php 
}
?>
                <hr class="statcard-hr">
            </div>
            <?php 
$chart_colors = array(array('fill' => 'rgba(33,150,243,.1)', 'stroke' => 'rgba(33,150,243,.8)', 'point' => 'rgba(33,150,243,.8)', 'pointStroke' => 'rgba(33,150,243,.8)'));
?>
            <?php 
echo Chart::line($current_by_date, array('height' => 94, 'width' => 378, 'options' => array('responsive' => true, 'maintainAspectRatio' => true, 'scaleShowVerticalLines' => false, 'scales' => array('xAxes' => array(array('gridLines' => array('display' => false))), 'yAxes' => array(array('ticks' => array('min' => 0)))), 'legend' => array('display' => false), 'tooltipTemplate' => '<%= datasetLabel %><%= value %>', 'multiTooltipTemplate' => '<%= datasetLabel %><%= value %>')), $chart_colors);
?>
        </div>
    </div>
    <div class="col-md-12">
        <div class="statcard statcard-success">
            <ul class="nav nav-pills nav-justified text-center">
                <li role="presentation">
                    <div class="p-a">
                        <span class="statcard-desc"><?php 
echo __('Current');
?>
</span>
                        <h2 class="statcard-number">
                            <?php 
if ($current_total !== NULL) {
Example #3
0
echo __('Sales');
?>
</span>
                    <h2 class="statcard-number">
                        <?php 
echo i18n::format_currency($sales_total);
?>
                        <small class="delta-indicator <?php 
echo Num::percent_change($sales_total, $sales_total_past) < 0 ? 'delta-negative' : 'delta-positive';
?>
"><?php 
echo Num::percent_change($sales_total, $sales_total_past);
?>
</small> 
                        <small class="ago"><?php 
echo sprintf(__('%s days ago'), $days_ago);
?>
</small>
                    </h2>
                    <hr class="statcard-hr">
                </div>
                <div>
                    <?php 
echo Chart::line($sales, $chart_config, $chart_colors);
?>
                </div>
            </a>
        </div>
    </div>
</div>
Example #4
0
?>
" data-date="<?php 
echo $to_date;
?>
" data-date-format="yyyy-mm-dd">
										<span class="input-group-addon">
											<span class="glyphicon glyphicon-calendar"></span>
										</span>
								</div>
							</div>
							<button type="submit" class="btn btn-base-dark"><?php 
echo _e('Filter');
?>
</button>
							<div>
								<br>
								<strong class="text-center"><?php 
echo _e('Views and Contacts statistic');
?>
</strong>
								<?php 
echo Chart::line($stats_daily, array('height' => 400, 'width' => 400, 'options' => array('responsive' => true, 'maintainAspectRatio' => false, 'scaleShowVerticalLines' => false, 'multiTooltipTemplate' => '<%= datasetLabel %> - <%= value %>')));
?>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
Example #5
0
echo __('Tickets Closed');
?>
</span>
                    <h2 class="statcard-number">
                        <?php 
echo Num::format($tickets_closed_total, 0);
?>
                        <small class="delta-indicator <?php 
echo Num::percent_change($tickets_closed_total, $tickets_closed_total_past) < 0 ? 'delta-negative' : 'delta-positive';
?>
"><?php 
echo Num::percent_change($tickets_closed_total, $tickets_closed_total_past);
?>
</small> 
                        <small class="ago"><?php 
echo sprintf(__('%s days ago'), $days_ago);
?>
</small>
                    </h2>
                    <hr class="statcard-hr">
                </div>
                <div>
                    <?php 
echo Chart::line($tickets_closed, $chart_config, $chart_colors);
?>
                </div>
            </a>
        </div>
    </div>
</div>