<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\grid\GridView;
use yii\widgets\Menu;
use yii\bootstrap\Tabs;

$this->title = 'Web Proxy Cache';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    'IP',
    $this->title,
];
?>
<div class="site-plugins">
    <div class="row">
        <div class="col-lg-3">
            <?php
            echo Menu::widget($menu);
            ?> 
        </div>
        <div class="col-md-9">
            <h1 style="margin-top: 0px"><?= Html::encode($this->title) ?></h1>

            <?php
            $tabs[] = ['label' => 'Web Proxy Cache', 'content' => GridView::widget([
                    'dataProvider' => $provider,
                    'id' => 'Web Proxy Access',
                    'columns' => [
                        'src_address:text:Src. Address',
                        'dst_address:text:Dst. Address',
                        'protocol:text:Last Protocol',
                        'state:text:State',
                        'tx_bytes:text:Tx Bytes',
                        'rx_bytes:text:Rx Bytes',
                        [
                            'class' => 'yii\grid\ActionColumn', 'template' => '{delete}',
                            //'class' => 'yii\grid\CheckboxColumn',
                            'controller' => 'mikrotik/ip/webproxy/connections',
                        ],
                    ],
                    'showFooter' => false,
                ])
            ];
            echo Tabs::widget([
                'items' => $tabs]);
            ?>



        </div>
    </div>
</div>
