<!-- Header Header Top -->
<div class="header-top bgc-whitef5" style="padding: 5px 0 0 0;">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-sm-12">
                <div class="welcm-ht">
                    <ul class="list-inline">
                        <?php if (isset($this->global_setting->phone) && !empty($this->global_setting->phone)) { ?>
                            <li><a href="tel:<?php echo $this->global_setting->phone; ?>"><i class="fa fa-phone"></i> <?php echo $this->global_setting->phone; ?></a></li>
                        <?php } ?>

                        <?php if (isset($this->global_setting->email) && !empty($this->global_setting->email)) { ?>
                            <li><a href="mailto:<?php echo $this->global_setting->email; ?>"><i class="fa fa-envelope"></i> <?php echo $this->global_setting->email; ?></a></li>
                        <?php } ?>
                    </ul>
                </div>
            </div>
            <div class="col-md-2 col-sm-12">
                <div class="social-linked text-center pull-right">
                    <ul class="list-inline">
                        <?php if (isset($this->global_setting->facebook_url) && !empty($this->global_setting->facebook_url)) { ?>
                            <li><a target="_blank" href="<?php echo get_http($this->global_setting->facebook_url); ?>"><i class="fa fa-facebook color-fb"></i></a></li>
                        <?php } ?>

                        <?php if (isset($this->global_setting->linkedin_url) && !empty($this->global_setting->linkedin_url)) { ?>
                            <li><a target="_blank" href="<?php echo get_http($this->global_setting->linkedin_url); ?>"><i class="fa fa-linkedin color-lnkdn"></i></a></li>
                        <?php } ?>

                        <?php if (isset($this->global_setting->twitter_url) && !empty($this->global_setting->twitter_url)) { ?>
                            <li><a target="_blank" href="<?php echo get_http($this->global_setting->twitter_url); ?>"><i class="fa fa-twitter color-twtr"></i></a></li>
                        <?php } ?>

                        <?php if (isset($this->global_setting->instagram_url) && !empty($this->global_setting->instagram_url)) { ?>
                            <li><a target="_blank" href="<?php echo get_http($this->global_setting->instagram_url); ?>"><i class="fa fa-instagram color-inst"></i></a></li>
                        <?php } ?>

                        <?php if (isset($this->global_setting->youtube_url) && !empty($this->global_setting->youtube_url)) { ?>
                            <li><a target="_blank" href="<?php echo get_http($this->global_setting->youtube_url); ?>"><i class="fa fa-youtube color-utube"></i></a></li>
                        <?php } ?>
                    </ul>
                </div>
            </div>
            <div class="col-md-4 col-sm-12">
                <div class="welcm-ht text-right">
                    <ul class="list-inline">
                        <li>
                            <div class="dropdown lang-button text-center">
                                <button class="dropbtn"><i class="fa fa-globe text-thm2"></i> <?php echo $this->lang->line('language'); ?></button>
                                <div class="dropdown-content">
                                    <a href="<?php echo base_url("language/english"); ?>"> <span><img src="<?php echo IMG_URL; ?>flag/en.png" alt="en"></span> <?php echo $this->lang->line('english'); ?></a>
                                    <a href="<?php echo site_url('language/bengali'); ?>"> <span><img src="<?php echo IMG_URL; ?>flag/bd.png" alt="bd"></span> <?php echo $this->lang->line('bengali'); ?></a>
                                </div>
                            </div>
                        </li>
                        <li>
                            <a href="#"><i class="fa fa-user text-thm2"></i> <?php echo $this->lang->line('login'); ?></a>
                        </li>
                        <li>
                            <a href="<?php echo site_url('appointment'); ?>" class="appointment btn red btn-lg hvr-shutter-out-horizontal ulockd-btn-thm2">
                                <?php echo $this->lang->line('appointment'); ?>
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Header Styles -->
<header class="header-nav">
    <div class="main-header-nav navbar-scrolltofixed">
        <div class="container ulockd-pdng0">
            <nav class="navbar navbar-default bootsnav menu-style1">
                <!-- Start Top Search -->
                <div class="top-search">
                    <div class="container">
                        <div class="input-group">
                            <span class="input-group-addon"><i class="fa fa-search"></i></span>
                            <input type="text" class="form-control" placeholder="Search">
                            <span class="input-group-addon close-search"><i class="fa fa-times color-white"></i></span>
                        </div>
                    </div>
                </div>
                <!-- End Top Search -->

                <div class="container">
                    <!-- Start Atribute Navigation -->
                    <div class="attr-nav">
                        <ul>
                            <li class="search"><a href="#"><i class="fa fa-search"></i></a></li>
                        </ul>
                    </div>
                    <!-- End Atribute Navigation -->

                    <!-- Start Header Navigation -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-menu">
                            <i class="fa fa-bars"></i>
                        </button>
                        <a href="<?php echo site_url(); ?>" class="navbar-brand ulockd-main-logo2">
                            <?php if (isset($this->global_setting->brand_logo) && !empty($this->global_setting->brand_logo)) { ?>
                                <img width="100" src="<?php echo UPLOAD_PATH; ?>logo/<?php echo $this->global_setting->brand_logo; ?>" alt="<?php echo $this->global_setting->brand_title; ?>" title="<?php echo $this->global_setting->brand_title; ?>" />
                            <?php } else { ?>
                                <img width="70" src="<?php echo IMG_URL; ?>logo.png" alt="logo">
                            <?php } ?>
                        </a>
                    </div>
                    <!-- End Header Navigation -->

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="navbar-menu">
                        <ul class="nav navbar-nav navbar-left" data-in="fadeIn">
                            <li><a href="<?php echo site_url(); ?>"><?php echo $this->lang->line('home'); ?></a></li>
                            <!-- Dynamic Menu Start -->
                            <?php if (isset($main_menus) && !empty($main_menus)) {
                                foreach ($main_menus as $item) {
                                    if ($item->parent_id == "0") {
                                        $sub_links = $this->web->get_sub_menu_list($item->id);
                                        if (isset($sub_links) && !empty($sub_links)) { ?>
                                            <li class="dropdown">
                                                <a id="page<?php echo $item->id; ?>" class="dropdown-toggle" data-toggle="dropdown" <?php echo $item->open_new_tab == 1 ? 'target="_blank"' : ''; ?> href="<?php echo $item->ext_url_link ? site_url($item->ext_url_link) : site_url('page/' . $item->id . '/' . get_slug($item->name)); ?>"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $item->bn_name : $item->name; ?></a>
                                                <ul class="dropdown-menu">
                                                    <?php foreach ($sub_links as $sub_item) {
                                                        $sublinks = $this->web->get_sub_menu_list($sub_item->id);
                                                    ?>
                                                        <?php if (isset($sublinks) && !empty($sublinks)) { ?>
                                                            <li class="dropdown <?php echo $sub_item->id == $this->uri->segment(2, 0) ? 'active' : ''; ?>">
                                                                <a class="dropdown-toggle" data-toggle="dropdown" <?php echo $sub_item->open_new_tab == 1 ? 'target="_blank"' : ''; ?> href="<?php echo $sub_item->ext_url_link ? site_url($sub_item->ext_url_link) : site_url('page/' . $sub_item->id . '/' . get_slug($sub_item->name)); ?>"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $sub_item->bn_name : $sub_item->name; ?></a>
                                                                <ul class="dropdown-menu">
                                                                    <?php foreach ($sublinks as $subitem) { ?>
                                                                        <li class="<?php echo $subitem->id == $this->uri->segment(2, 0)  ? 'active' : ''; ?>"><a <?php echo $subitem->open_new_tab == 1 ? 'target="_blank"' : ''; ?> href="<?php echo $subitem->ext_url_link ? site_url($subitem->ext_url_link) : site_url('page/' . $subitem->id . '/' . get_slug($subitem->name)); ?>"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $subitem->bn_name : $sub_item->name; ?></a></li>
                                                                    <?php } ?>
                                                                </ul>
                                                            </li>
                                                        <?php } else { ?>
                                                            <li class="<?php echo $sub_item->id == $this->uri->segment(2, 0)  ? 'active' : ''; ?>"><a <?php echo $sub_item->open_new_tab == 1 ? 'target="_blank"' : ''; ?> href="<?php echo $sub_item->ext_url_link ? site_url($sub_item->ext_url_link) : site_url('page/' . $sub_item->id . '/' . get_slug($sub_item->name)); ?>"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $sub_item->bn_name : $sub_item->name; ?></a></li>
                                                        <?php } ?>
                                                    <?php } ?>
                                                </ul>
                                            </li>
                                        <?php } else { ?>
                                            <li class="<?php echo $item->id == $this->uri->segment(2, 0) ? 'active' : ''; ?>">
                                                <a <?php echo $item->open_new_tab == 1 ? 'target="_blank"' : ''; ?> href="<?php echo $item->ext_url_link ? site_url($item->ext_url_link) : site_url('page/' . $item->id . '/' . get_slug($item->name)); ?>">
                                                    <?php echo $this->session->userdata('site_lang') == 'bengali' ? $item->bn_name : $item->name; ?>
                                                </a>
                                            </li>
                                        <?php } ?>
                                    <?php } ?>
                                <?php } ?>
                            <?php } ?>
                            <!-- Dynamic Menu Start -->
                            <li><a id="contact" href="<?php echo site_url('contact'); ?>"><?php echo $this->lang->line('contact_us'); ?></a></li>
                        </ul>
                    </div><!-- /.navbar-collapse -->
                </div>
            </nav>
        </div>
    </div>
</header>