    <body class="<?=$theme['sidebar_type'];?>">
        <!-- Left Sidenav -->
        <div class="left-sidenav">
            <!-- LOGO -->
            <div class="brand">
                <a href="index.php" class="logo">
                    <span>
                        <img src="../img/<?=$ayarx['foto'];?>" alt="logo-large" class="logo-lg logo-light">
                        <img src="../img/<?=$ayarx['foto_dark'];?>" alt="logo-large" class="logo-lg logo-dark">
                    </span>
                </a>
            </div>


            <?php
            $iletisim = $dbh->query("SELECT * FROM contact WHERE id ", PDO::FETCH_ASSOC); 
            $siparis = $dbh->query("SELECT * FROM product_orders WHERE siparis_id ", PDO::FETCH_ASSOC); 
            $garson = $dbh->query("SELECT * FROM waiter WHERE id ", PDO::FETCH_ASSOC); 
            $hesap = $dbh->query("SELECT * FROM account WHERE id ", PDO::FETCH_ASSOC); 
            ?>
            <!--end logo-->
            <div class="menu-content h-100" data-simplebar>
                <ul class="metismenu left-sidenav-menu">
                    <hr class="hr-dashed hr-menu">
                    <li class="menu-label mt-0">Bilgi Alanı</li>
                    <li>
                        <a href="index.php"><i data-feather="home" class="align-self-center menu-icon"></i><span>Anasayfa</span></a>
                    </li>
                    <li>
                        <a href="siparis-liste.php"><i data-feather="bell" class="align-self-center menu-icon"></i><span>Sipariş Listesi</span><span class="badge badge-soft-success menu-arrow"><?=$siparis->rowCount()?> bildiri</span></a>
                    </li> 
                    <li>
                        <a href="iletisim-liste.php"><i data-feather="compass" class="align-self-center menu-icon"></i><span>İletişim Talepleri</span><span class="badge badge-soft-success menu-arrow"><?=$iletisim->rowCount()?> bildiri</span></a>
                    </li> 
                    <li>
                        <a href="garson-liste.php"><i data-feather="star" class="align-self-center menu-icon"></i><span>Garson Talepleri</span><span class="badge badge-soft-success menu-arrow"><?=$garson->rowCount()?> bildiri</span></a>
                    </li> 
                    <li>
                        <a href="hesap-liste.php"><i data-feather="search" class="align-self-center menu-icon"></i><span>Hesap Talepleri</span><span class="badge badge-soft-success menu-arrow"><?=$hesap->rowCount()?> bildiri</span></a>
                    </li> 



                    <hr class="hr-dashed hr-menu">
                    <li class="menu-label my-2">İçerik Yönetimi</li>
                    <li>
                        <a href="musteri-liste.php"><i data-feather="menu" class="align-self-center menu-icon"></i><span>Müşteri Listesi</span></a>
                    </li>
                    <li>
                        <a href="hakkimizda-duzenle.php"><i data-feather="help-circle" class="align-self-center menu-icon"></i><span>Hakkımızda Sayfası</span></a>
                    </li>

                    <li>
                        <a href="javascript: void(0);"><i data-feather="sliders" class="align-self-center menu-icon"></i><span>Slider Yönetimi</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
                        <ul class="nav-second-level" aria-expanded="false">
                            <li class="nav-item"><a class="nav-link" href="slider-ekle.php"><i class="ti-control-record"></i>Slider Ekle</a></li>
                            <li class="nav-item"><a class="nav-link" href="slider-liste.php"><i class="ti-control-record"></i>Slider Liste</a></li> 
                        </ul>
                    </li>      

                    <li>
                        <a href="javascript: void(0);"><i data-feather="git-pull-request" class="align-self-center menu-icon"></i><span>Ürün Yönetimi</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
                        <ul class="nav-second-level" aria-expanded="false">
                            <li class="nav-item"><a class="nav-link" href="urun-ekle.php"><i class="ti-control-record"></i>Ürün Ekle</a></li>
                            <li class="nav-item"><a class="nav-link" href="urun-liste.php"><i class="ti-control-record"></i>Ürün Liste</a></li>  
                            <li class="nav-item"><a class="nav-link" href="alerji-liste.php"><i class="ti-control-record"></i>Alerji Liste</a></li> 
                            <li class="nav-item"><a class="nav-link" href="porsiyon-liste.php"><i class="ti-control-record"></i>Porsiyon Liste</a></li> 
                            <li class="nav-item"><a class="nav-link" href="secenek-liste.php"><i class="ti-control-record"></i>Ek Seçenek Liste</a></li> 
                            <li class="nav-item"><a class="nav-link" href="urun-kategori-liste.php"><i class="ti-control-record"></i>Ürün Kategori Listesi</a></li> 
                        </ul>
                    </li> 


                    <li class="nav-item"><a href="galeri.php"><i data-feather="instagram" class="align-self-center menu-icon"></i><span>Galeri İçerikleri</span></a></li>  

                    <li>
                        <a href="kupon-liste.php"><i data-feather="loader" class="align-self-center menu-icon"></i><span>Kupon Listesi</span></a>
                    </li>
                    <li>
                        <a href="duyuru-liste.php"><i data-feather="cast" class="align-self-center menu-icon"></i><span>Duyuru Listesi</span></a>
                    </li>
                    <li>
                        <a href="masa-liste.php"><i data-feather="maximize" class="align-self-center menu-icon"></i><span>Masa Listesi</span></a>
                    </li>


                    <hr class="hr-dashed hr-menu">
                    <li class="menu-label my-2">Ayarlar</li>

                    <li>
                        <a href="javascript: void(0);"><i data-feather="settings" class="align-self-center menu-icon"></i><span>Genel Ayarlar</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
                        <ul class="nav-second-level" aria-expanded="false">
                            <li class="nav-item"><a class="nav-link" href="genel-ayar.php"><i class="ti-control-record"></i>Site Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="seo-ayar.php"><i class="ti-control-record"></i>Seo Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="sosyal-medya.php"><i class="ti-control-record"></i>Sosyal Medya Linkleri</a></li>
                            <li class="nav-item"><a class="nav-link" href="calisma-zaman.php"><i class="ti-control-record"></i>Çalışma Saatleri</a></li>
                            <li class="nav-item"><a class="nav-link" href="adres-yonetimi.php"><i class="ti-control-record"></i>Adres Yönetimi</a></li>

                        </ul>
                    </li>   

                    <li>
                        <a href="javascript: void(0);"><i data-feather="server" class="align-self-center menu-icon"></i><span>Sistem Ayarları</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>
                        <ul class="nav-second-level" aria-expanded="false">
                            <li class="nav-item"><a class="nav-link" href="paytr-ayar.php"><i class="ti-control-record"></i>Paytr Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="sms-ayar.php"><i class="ti-control-record"></i>Sms Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="odeme-ayar.php"><i class="ti-control-record"></i>Ödeme Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="smtp-ayar.php"><i class="ti-control-record"></i>Smtp Ayarları</a></li> 
                            <li class="nav-item"><a class="nav-link" href="yedek.php"><i class="ti-control-record"></i>Yedekleme Servisi</a></li>   
                            <li class="nav-item"><a class="nav-link" href="ziyaretci-log.php"><i class="ti-control-record"></i>Log Kayıtları</a></li>   

                        </ul>
                    </li>  
                    <?php if($_SESSION['yonetici']['branch']==0){ ?>
                        <li>
                            <a href="yonetici-liste.php" ><i data-feather="layers" class="align-self-center menu-icon"></i><span>Yönetici Listesi</span></a>
                        </li> 
                    <?php } ?>

                 <!--    <li>
                        <a href="sube-liste.php" ><i data-feather="layers" class="align-self-center menu-icon"></i><span>Şube Listesi</span></a>
                    </li>  -->

                    <li>
                        <a href="kurulum/index.html" target="_blank"><i data-feather="layers" class="align-self-center menu-icon"></i><span>Kullanım Kılavuzu</span></a>
                    </li>

                    <li>
                        <a href="tel:08502231920"><i data-feather="headphones" class="align-self-center menu-icon"></i><span>Destek</span><span class="badge badge-soft-success menu-arrow">0 850 223 1 920</span></a>
                    </li>



                </ul>

                <div class="update-msg text-center">
                    <a href="javascript: void(0);" class="float-right close-btn text-muted" data-dismiss="update-msg" aria-label="Close" aria-hidden="true">

                    </a>
                    <h5 class="mt-3">Destek Hattı</h5>
                    <p class="mb-3">Aklınıza takılan tüm soru ve sorunlar için bir telefon kadar yakınız</p>
                    <a href="tel:08502231920" class="btn btn-outline-warning btn-sm">HEMEN ARA</a>
                </div>
            </div>
        </div>
        <!-- end left-sidenav-->