<?php 
/** 
 * @package JREALTIMEANALYTICS::SERVERSTATS::administrator::components::com_jrealtimeanalytics
 * @subpackage views
 * @subpackage serverstats
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2013 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html 
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
use Joomla\CMS\Language\Text;
use Joomla\CMS\Uri\Uri;
?>
<div class="lefttext_stats col-md-12 span12"> 
	<?php foreach ($this->data[NUMUSERSBROWSERGROUPED] as $browser):?>
		<span class="badge bg-primary positions">
			<img class="jr-browsericon" onerror="this.style.display='none'" src="<?php echo $this->livesite;?>administrator/components/com_jrealtimeanalytics/images/browsers/<?php echo str_replace(array(' ', '/'), '', strtolower($browser[1]));?>.svg"/>
			<?php echo $browser[1];?>
			<span class="badge rounded-pill badge-inverse-info"><?php echo $browser[0];?></span>
		</span>
	<?php endforeach;?> 
</div>

<div class="rightgraph_stats pie col-md-12 span12">
	<a title="<?php echo Text::_('COM_JREALTIME_SERVERSTATS_BROWSER');?>" class="fancybox-image" href="<?php echo Uri::root();?>administrator/components/com_jrealtimeanalytics/cache/<?php echo $this->userid . '_serverstats_pie_browser.png' . $this->nocache;?>">
		<img src="<?php echo Uri::root();?>administrator/components/com_jrealtimeanalytics/cache/<?php echo $this->userid . '_serverstats_pie_browser.png' . $this->nocache;?>" />
	</a>
</div>