<!-- Top Bar Start -->
<?php
$user = get_active_user();
$ayar = get_settings();
?>
<div class="topbar">
    <div class="topbar-left">
        <div class="logo">
            <h1><a href="#"><img src="<?php echo base_url("assets")?>/assets/img/logo.png" alt="Logo"></a></h1>
        </div>
        <button class="button-menu-mobile open-left">
            <i class="fa fa-bars"></i>
        </button>
    </div>
    <!-- Button mobile view to collapse sidebar menu -->
    <div class="navbar navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-collapse2">
                <ul class="nav navbar-nav hidden-xs">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle"><b><?php echo $ayar->company_name;?></b> / Web Sitesi Yönetim Paneli</a>
                    </li>
                   
                </ul>

                <ul class="nav navbar-nav navbar-right top-navbar">
                    <li class="dropdown iconify hide-phone"><a href="#" onclick="javascript:toggle_fullscreen()"><i class="icon-resize-full-2"></i></a></li>
                    <li class="dropdown topbar-profile">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="rounded-image topbar-profile-image"><img src="<?php echo base_url("assets")?>/images/users/user-35.jpg"></span> <?php echo $user->adsoyad;?><i class="fa fa-caret-down"></i></a>
                        <ul class="dropdown-menu">
                            <li><a href="<?php echo base_url("kullanicilar/guncellemeFormu/$user->id");?>">Şifremi Değiştir</a></li>
                            <li class="divider"></li>
                            <li><a class="md-trigger" data-modal="logout-modal" href="<?php echo base_url("logout");?>"><i class="icon-logout-1"></i> Çıkış</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!--/.nav-collapse -->
        </div>
    </div>
</div>
<!-- Top Bar End -->