<?php

use yii\helpers\Html;
use yii\widgets\Menu;
use yii\widgets\ActiveForm;

$this->title = 'IP Settings';
$this->params['breadcrumbs'] = [
    'Mikrotik',
    $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 $form = ActiveForm::begin(['id' => 'form-Settings']); ?>
                <?= $form->field($model, 'ip_forward')->checkBox(); ?>
                <?= $form->field($model, 'send_redirects')->checkBox(); ?>
                <?= $form->field($model, 'accept_redirects')->checkBox(); ?>
                <?= $form->field($model, 'secure_redirects')->checkBox(); ?>
                <?= $form->field($model, 'accept_source_route')->checkBox(); ?>
                <?= $form->field($model, 'allow_fast_path')->checkBox(); ?>
                <?= $form->field($model, 'route_cache')->checkBox(); ?>
                <?= $form->field($model, 'rp_filter')->dropDownList(['no' => 'no', 'loose' => 'loose', 'strict' => 'strict']); ?>
                <?= $form->field($model, 'tcp_syncookies')->checkBox(); ?>
                <?= $form->field($model, 'max_arp_entries')->label('Max ARP Entries'); ?>
                <?= $form->field($model, 'arp_timeout')->label('ARP Timeout'); ?>
                <?= $form->field($model, 'icmp_rate_limit')->label('ISMP Rate Limit'); ?>
                <?= $form->field($model, 'ipv4_fast_path_active')->checkBox(['disabled' => true]); ?>
                <?= $form->field($model, 'ipv4_fast_path_packets')->label('IPv4 Fast Path Packets')->textInput(['readonly' => true]); ?>
                <?= $form->field($model, 'ipv4_fast_path_bytes')->label('IPv4 Fast Path Bytes')->textInput(['readonly' => true]); ?>
                <?= $form->field($model, 'ipv4_fasttrack_active')->checkBox(['disabled' => true]); ?>
                <?= $form->field($model, 'ipv4_fasttrack_packets')->label('IPv4 Fasttrack Packets')->textInput(['readonly' => true]); ?>
                <?= $form->field($model, 'ipv4_fasttrack_bytes')->label('IPv4 Fasttrack Bytes')->textInput(['readonly' => true]); ?>
                <?php echo Html::submitButton('OK', ['class' => 'btn btn-primary', 'name' => 'create-button']); ?>
        </div>
        <?php ActiveForm::end(); ?> 
    </div>
</div>
</div>