<header class="clearfix">
    <?= view('partials/alerts') ?>

    <!-- Bootstrap navbar -->
    <nav class="navbar navbar-default navbar-static-top" role="navigation">
        <!-- Top line -->
        <div class="top-line">
            <div class="container">
                <div class="row">
                    <div class="col-md-9 col-xs-8">
                        <?php
                        $mSessionKey = session()->get('session_key');
                        if ($mSessionKey): ?>
                            <ul class="top-line-list">
                                <li><a href="<?= base_url('home/contactus') ?>">Contact Us</a></li>
                                <li><a href="<?= base_url('home/lawyerProfile') ?>">Lawyer Profile</a></li>
                                <li><a href="tel:9980065416">9980065416</a></li>
                            </ul>
                        <?php else: ?>
                            <ul class="top-line-list">
                                <li><a href="<?= base_url('users/signin') ?>">Log In</a></li>
                                <li><a href="<?= base_url('home/contactus') ?>">Contact Us</a></li>
                                <li><a href="<?= base_url('signup') ?>">Sign Up</a></li>
                                <li><a href="tel:9980065416">9980065416</a></li>
                            </ul>
                        <?php endif; ?>
                    </div>  
                    <div class="col-md-3 col-xs-4">
                        <ul class="social-icons">
                            <li><a target="_blank" href="https://www.facebook.com/dakshalegal"><i class="fa fa-facebook"></i></a></li>
                            <li><a target="_blank" href="https://twitter.com/sbasavaraj8638"><i class="fa fa-twitter"></i></a></li>
                            <li><a target="_blank" href="https://www.youtube.com/channel/UCLmjXbqiDdXeHfJ9HJeRCtQ"><i class="fa fa-youtube"></i></a></li>
                        </ul>
                    </div>  
                </div>
            </div>
        </div>
        <!-- End Top line -->

        <!-- Logo & advertisement -->
        <div class="logo-advertisement">
            <div class="container">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?= base_url() ?>"><img src="<?= base_url('assets/site/images/Daksha-Logo.png') ?>" width="350px" style="margin-bottom: 10px; margin-top: -20px" alt="Daksha Legal Logo"></a>
                </div>
            </div>
        </div>
        <!-- End Logo & advertisement -->           

        <!-- navbar list container -->
        <div class="nav-list-container">
            <div class="container">
                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav navbar-left">
                        <li><a class="<?= ($home == "home") ? 'active' : '' ?>" href="<?= base_url() ?>">HOME</a></li>
                        <li><a class="<?= ($home == "bareacts") ? 'active' : '' ?>" href="<?= base_url('bareacts') ?>">BARE ACTS</a></li>
                        <li><a class="<?= ($home == "judgements") ? 'active' : '' ?>" href="<?= base_url('judgements') ?>">JUDGMENTS</a></li>
                        <li><a class="<?= ($home == "articles") ? 'active' : '' ?>" href="<?= base_url('articles') ?>">ARTICLES</a></li>
                        <li><a class="<?= ($home == "news") ? 'active' : '' ?>" href="<?= base_url('news') ?>">NEWS</a></li>
                        <li><a class="<?= ($home == "seminars") ? 'active' : '' ?>" href="<?= base_url('seminars') ?>">SEMINARS</a></li>
                        <li><a class="<?= ($home == "new_lawyers") ? 'active' : '' ?>" href="<?= base_url('district') ?>">LAWYERS DIRECTORY</a></li>
                        <li><a class="<?= ($home == "courts") ? 'active' : '' ?>" href="<?= base_url('courts') ?>">Courts</a></li>
                        <li><a class="<?= ($home == "courts") ? 'active' : '' ?>" href="<?= base_url('kannada') ?>">ಕನ್ನಡ</a></li>
                    </ul>

                    <?php
                    $mSessionKey = session()->get('session_key');
                    if (!empty($mSessionKey)):
                        $mSessionName = session()->get('session_name');
                    ?>
                        <div class="dropdown-theme navbar-left">
                            <button class="dropbtn">
                                <?= $mSessionName ?>
                            </button>
                            <div class="dropdown-content">
                                <a href="<?= base_url('home/actionLogout') ?>">Logout</a>
                            </div>
                        </div>

                        <div class="navbar-form navbar-right">
                            <a style="font-weight: 700;font-family: 'Lato', sans-serif;" href="<?= base_url('search') ?>" class="btn btn-default text-uppercase">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </div>
                    <?php else: ?>
                        <div class="navbar-form navbar-right">
                            <a style="font-weight: 700;font-family: 'Lato', sans-serif;" href="<?= base_url('search') ?>" class="btn btn-default text-uppercase">
                                <i class="fa fa-search"></i> Search
                            </a>

                            <a style="font-weight: 700;font-family: 'Lato', sans-serif;" href="<?= base_url('signup') ?>" class="btn btn-default text-uppercase">
                                Sign Up
                            </a>
                        </div>
                    <?php endif; ?>
                </div>
                <!-- /.navbar-collapse -->
            </div>
        </div>
        <!-- End navbar list container -->
    </nav>
    <!-- End Bootstrap navbar -->
</header>