<?php

use yii\helpers\Html;
use yii\helpers\Url;

$this->title = 'QFood';

$script =<<< JS
    var width = $('.home-menu').width();
    // console.log(width);
    var height = $('.home-menu').height(width);
    // console.log(height);
JS;

$this->registerJs($script);
?>

<div class="site-index">

    <div class="body-content">
        <div class="distance"></div>
        <div class="row">
        <div class="col-md-offset-1 col-lg-2  col-xs-6">
            <div class="home-menu">
                <a href="<?= Url::base()?>/main-categories/index" class="home-btn" role="button">
                        <img src="<?= Url::base()?>/home-page-icons/maincategory.svg" alt="" class="img-responsive img-home">
                        <p class="text-home"><?= Yii::t('app' , 'Main Categories')?></p>
                </a>
            </div>
        </div>
        <div class="col-lg-2  col-xs-6">
            <div class="home-menu">
                <a href="<?= Url::base()?>/items/index" class="home-btn" role="button">
                            <img src="<?= Url::base()?>/home-page-icons/items.svg" alt="" class="img-responsive img-home">
                            <p class="text-home"><?= Yii::t('app' , 'Items')?></p>
                    </a>
            </div>
        </div>
        <div class="col-lg-2  col-xs-6">
            <div class="home-menu">
                <a href="<?= Url::base()?>/items/create" class="home-btn" role="button">
                            <img src="<?= Url::base()?>/home-page-icons/additem.svg" alt="" class="img-responsive img-home">
                            <p class="text-home"><?= Yii::t('app' , 'Add Items')?></p>
                    </a>
            </div>
        </div>
        <div class="col-lg-2  col-xs-6">
            <div class="home-menu">
                <a href="<?= Url::base()?>/items/update-variations" class="home-btn" role="button">
                            <img src="<?= Url::base()?>/home-page-icons/updateprice.svg" alt="" class="img-responsive img-home">
                            <p class="text-home"><?= Yii::t('app' , 'Update Prices')?></p>
                    </a>
            </div>
        </div>
        <div class="col-lg-2  col-xs-6">
            <div class="home-menu">
                <a href="<?= Url::base()?>/system-configurations/configure-options" class="home-btn" role="button">
                            <img src="<?= Url::base()?>/home-page-icons/settings.svg" alt="" class="img-responsive img-home">
                            <p class="text-home"><?= Yii::t('app' , 'System Configurations')?></p>
                    </a>
             </div>
        </div>
        <div class="hidden-lg hidden-md col-xs-6 ">
                <div class="home-menu">
                    <a href="<?= Url::base()?>/admins/logout" class="home-btn" role="button">
                                <img src="<?= Url::base()?>/home-page-icons/logout.svg" alt="" class="img-responsive img-home">
                                <p class="text-home"><?= Yii::t('app' , 'Logout')?></p>
                        </a>
                </div>
        </div>
        </div>

    </div>
</div>
