<?php 
use yii\helpers\Html;
use yii\helpers\Url;
?>
<?php $path = Yii::$app->request->baseUrl . '/frontend/web/staticImg/' ?>
<!-- ====== Header Top Area ====== -->
<header class="header-area bg-nero hidden-xs hidden-sm">
    <div class="container">
        <div class="header-top-content">
            <div class="row">
                <div class="col-md-7 col-sm-7 mobile-center">
                    <div class="site-logo">
                        <a href="index-2.html">
                            <img src="<?= $path.'logo.png'?>" alt="site-logo" />
                        </a>
                    </div><!-- /.site-logo -->
                </div><!-- /.col-md-8 -->
                <div class="col-md-5 col-sm-5 mobile-center">
                    <div class="left-content">
                        <ul>
                            <li>
                                <a href="#"><i class="fa fa-phone-square"></i>Call Us - 09644700067</a>
                            </li>
                            <?php if (Yii::$app->user->isGuest) {?>
                                <li>
                                    <?= Html::a('Login',['site/login']); ?>
                                </li>
                                <li>
                                    <?= Html::a('Register',['site/signup']); ?>
                                </li>
                            <?php }else{ ?>
                                <li>
                                   <?= 
                                     Html::beginForm(['/site/logout'], 'post')
                                    .Html::submitButton(
                                        'Logout (' . Yii::$app->user->identity->username . ')',
                                        ['class' => 'btn btn-link logout']
                                    )
                                    .Html::endForm();
                                   ?>
                                </li>;
                            <?php } ?>
                            <!-- <li>
                                <a href="#" class="main-search"><i class="fa fa-search"></i></a>
                            </li>-->
                            <li>
                                <a href="#" class="trigger-overlay"><i class="fa fa-bars"></i></a>
                            </li> 
                        </ul>
                    </div><!-- /.left-content -->
                </div><!-- /.col-md-4 -->
            </div><!-- /.row -->
        </div><!-- /.header-top-content -->
    </div><!-- /.container -->
</header><!-- /.head-area -->
<header class="header-bottom-content bg-nero hidden-xs hidden-sm">
        <div class="container">        
            <div class="row">
                <div class="col-md-10 col-sm-10">
                    <nav id="main-nav" class="site-navigation top-navigation">
                        <div class="menu-wrapper">
                            <div class="menu-content">
                                <ul class="menu-list">
                                    <li>
                                        <?= Html::a('Home',['/listofhotels'])?>
                                    </li>
                                    <li>
                                        <!-- <a href="#">Booking</a> -->
                                        <?= Html::a('Booking',['/listofhotels/single-view'])?>
                                    </li>
                                    <li>
                                        <a href="about.html">About</a>
                                    </li>
                                    <li>
                                        <a href="#">Blog</a>
                                        <ul class="sub-menu">
                                            <li>
                                                <a href="blog.html">Blog</a>
                                            </li>                                            
                                            <li>
                                                <a href="blog-single.html">Single Post</a>
                                            </li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="contact.html">Contact</a>
                                    </li>
                                </ul> <!-- /.menu-list -->
                            </div> <!-- /.menu-content-->
                        </div> <!-- /.menu-wrapper --> 
                    </nav><!-- /.site-navigation --> 
                </div><!-- /.col-md-10 -->

                <div class="col-md-2 col-sm-2">
                    <div class="booking">
                        <span><a href="booking.html">Booking</a></span>
                    </div><!-- /.Booking -->
                </div><!-- /.col-md-2 -->
            </div><!-- /.row -->
        </div><!-- /.container -->
    </header><!-- /.header-bottom-content -->

<?php
//$url = url::to(['login-and-register-form']);
$script = <<< JS

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