<?php $view->extend('::wicms.html.php') ?>

<?php $this->addGlobal('menuIsActive', $view['router']->path('wi_admin_core_analytics_index')); ?>
<?php $view['slots']->set('title', $view['translator']->trans('analytics.meta.title', [], 'analytics')); ?>

<?php $view['slots']->start('stylesheets'); ?>
<link rel="stylesheet" href="<?php echo $view['assets']->getUrl('media/Admin/WiCMS3/js/jquery/jqueryUI-datetimepicker/jquery-ui-1.12.1.custom/jquery-ui.min.css'); ?>">
<link rel="stylesheet" href="<?php echo $view['assets']->getUrl('media/Admin/WiCMS3/css/webimpuls-normalize.css'); ?><?php echo $view['config']->getParameter('vStyle'); ?>">
<link rel="stylesheet" href="<?php echo $view['assets']->getUrl('media/Admin/WiCMS3/css/ga.css'); ?><?php echo $view['config']->getParameter('vStyle'); ?>">
<?php $view['slots']->stop(); ?>

<?php $view['slots']->start('breadcrumbs'); ?>
    <li>
        <?php echo $view['translator']->trans('main-menu.administration'); ?>
    </li>
<li><a href="<?php echo $view['router']->path('wi_admin_core_analytics_index'); ?>"><?php echo $view['translator']->trans('breadcrumbs.analytics', [], 'analytics'); ?></a></li>
<?php $view['slots']->stop(); ?>

<?php $view['slots']->start('titleSite'); ?>
<?php echo $view['translator']->trans('analytics.title', [], 'analytics'); ?>
<?php $view['slots']->stop(); ?>
<?php $view['slots']->start('titleIcon') ?>
    <i class="icon-chart-bar color-menu-administration"></i>
<?php $view['slots']->stop() ?>
<?php $view['slots']->start('helpRightPanel') ?>

<?php $view['slots']->stop() ?>

<?php $view['slots']->start('body') ?>

<div class="box analyticsStatsBox">
    <div class="box-body " style="display: block;">
        <?php if(! is_null($googleToken) && ! is_null($gaViewId)): ?>
            <span id="clientIdGoogleAps" data-gaViewId="<?php echo $gaViewId; ?>" data-token="<?php echo $googleToken; ?>" data-dateStart="<?php echo $view['request']->getParameter('from') ? $view['request']->getParameter('from') : ''; ?>" data-dateEnd="<?php echo $view['request']->getParameter('to') ? $view['request']->getParameter('to') : ''; ?>"></span>
            <section id="raportGA">
                <section id="auth-button"></section>
                <section id="view-selector"></section>
                <div class="row">
                    <div class="columns large-12 text-center">
                        <h1 style="margin-top:50px;"><?php echo $view['translator']->trans('configuration.ga.report.title', [], 'analytics'); ?></h1>
                        <h4>
                            <?php echo $view['translator']->trans('configuration.ga.report.desc', [], 'analytics'); ?>
                            <br>
                        </h4>
                        <div class="przelacznikMiesiaca">
                            <div id="datepicker"></div>
                            <form action="" method="GET" class="dateFromToForm">
                                <div class="row">
                                    <div class="columns medium-3">
                                        <input type="text" id="from" name="from" value="<?php echo $view['request']->getParameter('from') ? $view['request']->getParameter('from') : ''; ?>">
                                    </div>
                                    <div class="columns medium-3">
                                        <input type="text" id="to" name="to" value="<?php echo $view['request']->getParameter('to') ? $view['request']->getParameter('to') : ''; ?>">
                                    </div>
                                    <div class="columns medium-6">
                                        <button type="submit"  class="button buttonDatePicker">
                                            <span>
                                                <?php echo $view['translator']->trans('configuration.ga.report.changeDate', [], 'analytics'); ?>
                                            </span>
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div id="calyRaportWait">
                            <div class="pleasWait  big">
                                <div class="cssload-thecube ">
                                    <div class="cssload-cube cssload-c1"></div>
                                    <div class="cssload-cube cssload-c2"></div>
                                    <div class="cssload-cube cssload-c4"></div>
                                    <div class="cssload-cube cssload-c3"></div>
                                </div>
                                <p>
                                    <?php echo $view['translator']->trans('configuration.ga.report.waitBigInfo', [], 'analytics'); ?>
                                </p>
                            </div>
                        </div>
                        <div id="calyRaportError">
                            <div class="alert-box alert radius">
                                <div>
                                    <i class="fi-x"></i>
                                </div>
                                <div>
                                    <h3>
                                        <?php echo $view['translator']->trans('configuration.ga.report.error', [], 'analytics'); ?>
                                    </h3>
                                    <br>
                                    <?php echo $view['translator']->trans('configuration.ga.report.errorDesc', [], 'analytics'); ?>
                                    <br>
                                    <?php echo $view['translator']->trans('configuration.ga.report.errorContact', [], 'analytics'); ?>
                                    <a href="https://www.webimpuls.pl/kontakt.html" title="Kontakt z WEBimpuls" target="_blank">WEBimpuls.pl</a>
                                </div>
                            </div>
                        </div>
                        <br>
                    </div>
                </div>
                <div class="row subTytul">
                    <div class="columns large-12 text-center">
                        <h2 style="margin-top:0px;"><i class="icon-users"></i>
                            <span>
                            <?php echo $view['translator']->trans('configuration.ga.report.user', [], 'analytics'); ?>
                        </span>
                        </h2>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-3 medium-6 small-12">
                        <div class="panel white sessions-liczba ikonaLiczba" title="
                    <?php echo $view['translator']->trans('configuration.ga.report.sessionDesc', [], 'analytics'); ?>
                    Odwiedziny strony: sesje">
                            <div class="row">
                                <div class="columns large-5 medium-6 small-6 ikona">
                                    <i class="icon-desktop"></i>
                                </div>
                                <div class="columns large-7 medium-6 small-6 liczba end">
                                    <h3>
                                        <?php echo $view['translator']->trans('configuration.ga.report.session', [], 'analytics'); ?>:
                                    </h3>
                                    <div id="sessions-liczba">
                                        <div class="pleasWait">
                                            <p>
                                                <?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?>
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="columns large-3 medium-6 small-12">
                        <div class="panel white users-liczba ikonaLiczba"  title="<?php echo $view['translator']->trans('configuration.ga.report.userDesc', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-5 medium-6 small-6 ikona">
                                    <i class="icon-users"></i>
                                </div>
                                <div class="columns large-7 medium-6 small-6 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.users', [], 'analytics'); ?>:</h3>
                                    <div id="users-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="columns large-3 medium-6 small-12">
                        <div class="panel white pageviews-liczba ikonaLiczba" title="
                    <?php echo $view['translator']->trans('configuration.ga.report.viewsDesc', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-5 medium-6 small-6 ikona">
                                    <i class="icon-doc"></i>
                                </div>
                                <div class="columns large-7 medium-6 small-6 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.views', [], 'analytics'); ?></h3>
                                    <div id="pageviews-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="columns large-3 medium-6 small-12">
                        <div class="panel white bounceRate-liczba ikonaLiczba"  title="<?php echo $view['translator']->trans('configuration.ga.report.bounceDesc', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-5 medium-6 small-6 ikona">
                                    <i class="icon-user-times"></i>
                                </div>
                                <div class="columns large-7 medium-6 small-6 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.bounce', [], 'analytics'); ?>:</h3>
                                    <div id="bounceRate-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-12 text-center">
                        <div class="panel white sessions-wykres">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.visitsSession', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.visitsSessionDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div id="sessions-wykres">
                                <div class="pleasWait  big">
                                    <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row subTytul">
                    <div class="columns large-12 text-center">
                        <h2 style="margin-top:0px;">
                            <i class="icon-chart-pie"></i>
                            <span><?php echo $view['translator']->trans('configuration.ga.report.source', [], 'analytics'); ?></span>
                        </h2>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-6 medium-6 small-12">
                        <div class="panel white channelGrouping-wykres">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.sourcing', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.sourcingDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div id="channelGrouping-wykres">
                                <div class="pleasWait  big">
                                    <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                </div>
                            </div>
                            <div class="legenda">
                                <strong><?php echo $view['translator']->trans('configuration.ga.report.explanation', [], 'analytics'); ?>: </strong>  <br>
                                <ul style="list-style: none;">
                                    <li>
                                        <span class="kolko szare"></span> <em><u>Direct</u></em> - <?php echo $view['translator']->trans('configuration.ga.report.explanationFirst', [], 'analytics'); ?>
                                    </li>
                                    <li>
                                        <span class="kolko zielone"></span> <em><u>Organic Search</u></em> - <?php echo $view['translator']->trans('configuration.ga.report.explanationSecond', [], 'analytics'); ?>
                                    </li>
                                    <li>
                                        <span class="kolko pomaranczowe"></span> <em><u>Referral</u></em> - <?php echo $view['translator']->trans('configuration.ga.report.explanationThird', [], 'analytics'); ?>
                                    </li>
                                    <li>
                                        <span class="kolko czerwone"></span> <em><u>Social</u></em> - <?php echo $view['translator']->trans('configuration.ga.report.explanationFourst', [], 'analytics'); ?>
                                    </li>
                            </div>
                        </div>
                        <div class="panel white channelGrouping-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.channel', [], 'analytics'); ?> </h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.channelDesc', [], 'analytics'); ?>. </h4>
                            </div>
                            <div id="channelGrouping-tabela">
                                <div class="pleasWait  big">
                                    <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                </div>
                            </div>
                            <div class="legenda">
                                <strong><?php echo $view['translator']->trans('configuration.ga.report.explanation', [], 'analytics'); ?>: </strong>  <br>
                                <ul>
                                    <li>
                                        <?php echo $view['translator']->trans('configuration.ga.report.explanationSession', [], 'analytics'); ?>
                                    </li>
                                    <li>
                                        <?php echo $view['translator']->trans('configuration.ga.report.explanationBounce', [], 'analytics'); ?>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="columns large-6 medium-6 small-12">
                        <div class="panel white campaignGrouping-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.campaign', [], 'analytics'); ?> </h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.campaignDesc', [], 'analytics'); ?>. </h4>
                            </div>
                            <div id="campaignGrouping-tabela">
                                <div class="pleasWait  big">
                                    <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                </div>
                            </div>
                            <a class="pokazKampanie"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            <a class="showUtm" href="https://support.google.com/analytics/answer/1033867?hl=pl" target="_blank"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.showUtm', [], 'analytics'); ?></span></a>
                            <div class="legenda">
                                <strong><?php echo $view['translator']->trans('configuration.ga.report.explanation', [], 'analytics'); ?>: </strong>  <br>
                                <ul>
                                    <li>
                                        <?php echo $view['translator']->trans('configuration.ga.report.explanationSession', [], 'analytics'); ?>
                                    </li>
                                    <li>
                                        <?php echo $view['translator']->trans('configuration.ga.report.explanationBounce', [], 'analytics'); ?>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel white sessionsSEO-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisits', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsSEO-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel white sessionsPaid-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisits', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsPaidTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsPaid-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel white sessionsSocial-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsSocial', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsSocialTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsSocial-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel white sessionsEmail-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsEmail', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsEmailTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsEmail-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel white sessionsDirect-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsDirect', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsDirectTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsDirect-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel white sessionsReferral-liczba ikonaLiczba" title="<?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsReferral', [], 'analytics'); ?>">
                            <div class="row">
                                <div class="columns large-2 medium-3 small-3 ikona">
                                    <i class="icon-chart-bar"></i>
                                </div>
                                <div class="columns large-10 medium-9 small-9 liczba end">
                                    <h3><?php echo $view['translator']->trans('configuration.ga.report.websiteVisitsReferralTitle', [], 'analytics'); ?>:</h3>
                                    <div id="sessionsReferral-liczba">
                                        <div class="pleasWait">
                                            <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row subTytul">
                    <div class="columns large-12 text-center">
                        <h2 style="margin-top:0px;">
                            <i class="icon-location"></i>
                            <span> <?php echo $view['translator']->trans('configuration.ga.report.location', [], 'analytics'); ?></span>
                        </h2>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-6 medium-6 small-12 text-left">
                        <div class="panel white daneGeograficzne">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.locationWorld', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.locationWorldInfo', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="usersSwiat-mapa">
                                    <div class="pleasWait  big">
                                        <div class="cssload-thecube ">
                                            <div class="cssload-cube cssload-c1"></div>
                                            <div class="cssload-cube cssload-c2"></div>
                                            <div class="cssload-cube cssload-c4"></div>
                                            <div class="cssload-cube cssload-c3"></div>
                                        </div>
                                        <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                    </div>
                                </div>
                                <hr>
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.countries', [], 'analytics'); ?> <span id="iloscPanstw"></span></h3>
                                <div id="sessionsSwiat-tabela"></div>
                                <a class="pokazPanstwa"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            </div>
                        </div>
                    </div>
                    <div class="columns large-6 medium-6 small-12  text-left">
                        <div class="panel white daneGeograficzne">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.locationPoland', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.locationPolandDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="usersPolska-mapa">
                                    <div class="pleasWait  big">
                                        <div class="cssload-thecube ">
                                            <div class="cssload-cube cssload-c1"></div>
                                            <div class="cssload-cube cssload-c2"></div>
                                            <div class="cssload-cube cssload-c4"></div>
                                            <div class="cssload-cube cssload-c3"></div>
                                        </div>
                                        <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                    </div>
                                </div>
                                <hr>
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.cities', [], 'analytics'); ?> <span id="iloscMiast"></span></h3>
                                <div id="sessionsPolska-tabela"></div>
                                <a class="pokazMiasta"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row subTytul">
                    <div class="columns large-12 text-center">
                        <h2 style="margin-top:0px;">
                            <i class="icon-desktop" style="font-size: 60px; margin:0px;"></i>
                            <i class="icon-laptop" style="font-size: 45px; margin:-20px;"></i>
                            <i class="icon-tablet" style="font-size: 30px; "></i>
                            <span> <?php echo $view['translator']->trans('configuration.ga.report.devices', [], 'analytics'); ?></span></h2>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-5 medium-6 small-12 text-left">
                        <div class="panel white devices-wykres">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.categoryD', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.categoryDDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="devices-wykres"></div>
                            </div>
                        </div>

                        <div class="panel white browser-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.browser', [], 'analytics'); ?> <span id="iloscPrzegladarek"></span></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.browserDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="browser-tabela"></div>
                                <a class="pokazPrzegladarki"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            </div>
                            <hr>
                            <div class="panelContent">
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.desktop', [], 'analytics'); ?> <span id="iloscRozdzielczosci"></span></h4>
                                <div id="browserSize-tabela"></div>
                                <a class="pokazRozdzielczosci"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            </div>
                        </div>


                    </div>
                    <div class="columns large-7 medium-6 small-12 text-left">
                        <div class="panel white devices-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.devicesTraffic', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.devicesTrafficDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="devices-tabela"></div>
                            </div>
                        </div>



                        <div class="panel white browser-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.mobile', [], 'analytics'); ?></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.mobileDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="sessionMobile-wykres"></div>
                            </div>
                        </div>

                        <div class="panel white devicesModel-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.mobileModel', [], 'analytics'); ?> <span id="iloscUrzadzen"></span></h3>
                                <h4><?php echo $view['translator']->trans('configuration.ga.report.mobileModelDesc', [], 'analytics'); ?></h4>
                            </div>
                            <div class="panelContent">
                                <div id="devicesModel-tabela"></div>
                                <a class="pokazUrzadzenia"><span class="label"><?php echo $view['translator']->trans('configuration.ga.report.seeAll', [], 'analytics'); ?></span></a>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row subTytul">
                    <div class="columns large-12 text-center">
                        <h2 style="margin-top:0px;"><i class="icon-bookmark"></i> <span><?php echo $view['translator']->trans('configuration.ga.report.content', [], 'analytics'); ?></span></h2>
                    </div>
                </div>
                <div class="row">
                    <div class="columns large-12 text-center">
                        <div class="panel white landingPage-tabela">
                            <div class="panelHeader">
                                <h3><?php echo $view['translator']->trans('configuration.ga.report.contentTitle', [], 'analytics'); ?></h3>
                                <h4>
                                    <?php echo $view['translator']->trans('configuration.ga.report.contentTitleDesc', [], 'analytics'); ?>

                                </h4>
                            </div>
                            <div id="landingPage-tabela">
                                <div class="pleasWait  big">
                                    <p><?php echo $view['translator']->trans('configuration.ga.report.waiting', [], 'analytics'); ?></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        <?php else: ?>
        <section id="raportGA">
            <div class="row">
                <div class="columns large-12 text-center"">
                <h1 style="margin-top:50px;">
                    <?php echo $view['translator']->trans('configuration.ga.report.title', [], 'analytics'); ?></h1>
                <h4>
                    <?php echo $view['translator']->trans('configuration.ga.report.dessNotLogin', [], 'analytics'); ?>
                </h4>
                <a href="<?php echo $view['router']->path('wi_admin_core_config_ga') ?>" class="button float-center">
                    <i class="icon-edit-1"></i>
                    <?php echo $view['translator']->trans('configuration.ga.report.dessNotLoginButton', [], 'analytics'); ?>
                </a>
            </div>
    </div>
    </section>
    <?php endif; ?>
</div>
</div>

<?php $view['slots']->stop() ?>

<?php $view['slots']->start('javascript'); ?>
    <script src="<?php echo $view['assets']->getUrl('media/Admin/WiCMS3/js/jquery/jqueryUI-datetimepicker/jquery-ui-1.12.1.custom/jquery-ui.min.js'); ?>"></script>
    <script src="https://apis.google.com/js/api.js"></script>
    <script src="<?php echo $view['assets']->getUrl('media/Admin/WiCMS3/js/googleAnalytics.js'); ?>"></script>

<?php $view['slots']->stop(); ?>