<?php

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

$this->title = 'Neighbors';
$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
            //echo $model->name;
            $tabs[] = ['label' => 'Neighbors list', 'content' => GridView::widget([
                    'dataProvider' => $provider,
                    'id' => 'Filter Rules',
                    'columns' => [
                        'interface:text:Interface',
                        'address:text:IP Address',
                        'mac_address:text:MAC Address',
                        'identity:text:Identity',
                        'platform:text:Platform',
                        'version:text:Version',
                        'board:text:Board',
                        'ipv6:text:IPv6',
                        'uptime:text:Uptime',
                        'interface_name:text:Interface Name',
                        [
                            'class' => 'yii\grid\ActionColumn', 'template' => '',
                            //'class' => 'yii\grid\CheckboxColumn',
                            'controller' => 'mikrotik/ip/neighbors/neighbors',
                        ],
                    ],
                    'showFooter' => false,
                ])
            ];

            echo Tabs::widget([
                'items' => $tabs]);
            ?>

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



