<?php
    $uriMain=$this->uri->segment(2);
    $uriSub= $this->uri->segment(3);
?>
<body >

    <!-- BEGIN: Header-->
    <nav class="header-navbar navbar navbar-expand-lg align-items-center floating-nav navbar-light navbar-shadow">
        <div class="navbar-container d-flex content">
            <!-- <div class="bookmark-wrapper d-flex align-items-center">
                <ul class="nav navbar-nav d-xl-none">
                    <li class="nav-item"><a class="nav-link menu-toggle" href="#"><i class="ficon" data-feather="menu"></i></a></li>
                </ul>
                <ul class="nav navbar-nav">
                    <li class="nav-item d-none d-lg-block"><a class="nav-link nav-link-style"><i class="ficon" data-feather="moon"></i></a></li>
                </ul>
            </div> -->
            <ul class="nav navbar-nav align-items-center ms-auto">
                <li class="nav-item dropdown dropdown-user"><a class="nav-link dropdown-toggle dropdown-user-link" id="dropdown-user" href="#" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        <div class="user-nav d-sm-flex d-none"><span class="user-name fw-bolder"><?=$this->shopData->shop_owner?></span><span class="user-status">Admin</span></div><span class="avatar bg-light-primary"><i data-feather='user' style="width:40px;height: 40px;"></i><span class="avatar-status-online"></span></span>
                    </a>
                    <div class="dropdown-menu dropdown-menu-end" aria-labelledby="dropdown-user">
                        <!-- <a class="dropdown-item" href="#"><i class="me-50" data-feather="user"></i> Profile</a><a class="dropdown-item" href="#"><i class="me-50" data-feather="message-square"></i> Chats</a><div class="dropdown-divider"></div><a class="dropdown-item" href="#"><i class="me-50" data-feather="settings"></i> Settings</a>-->
                        <!-- <a class="dropdown-item" href="<?=base_url("admin/pricing")?>"><i class="me-50" data-feather="credit-card"></i> Pricing</a> -->
                        <a class="dropdown-item" href="<?=base_url("auth/logout")?>"><i class="me-50" data-feather="power"></i> Logout</a>
                    </div>
                </li>
            </ul>
        </div>
    </nav>
    <!-- END: Header-->


    <!-- BEGIN: Main Menu-->
    <div class="main-menu menu-fixed menu-light menu-accordion menu-shadow" data-scroll-to-active="true">
        <div class="navbar-header">
            <ul class="nav navbar-nav flex-row">
                <li class="nav-item me-auto"><a class="navbar-brand" href="<?=base_url('admin/dashboard');?>">
                    <span class="brand-logo">
                            </span>
                    <h2 class="brand-text">Reconvert</h2>
                    </a></li>
                <li class="nav-item nav-toggle"><a class="nav-link modern-nav-toggle pe-0" data-bs-toggle="collapse"><i class="d-block d-xl-none text-primary toggle-icon font-medium-4" data-feather="x"></i><i class="d-none d-xl-block collapse-toggle-icon font-medium-4  text-primary" data-feather="disc" data-ticon="disc"></i></a></li>
            </ul>
        </div>
        <div class="shadow-bottom"></div>
        <div class="main-menu-content">
            <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
                <li class="<?=$uriMain=="dashboard"?'active':''?>"><a class="d-flex align-items-center" href="<?=base_url("admin/dashboard")?>"><i data-feather="home"></i><span class="menu-title text-truncate" data-i18n="Home">Home</span></a>
                </li>
                <li class="nav-item <?=$uriMain=="funnel"?'open':''?>"><a class="d-flex align-items-center" href="#"><i data-feather="layout"></i><span class="menu-title text-truncate" data-i18n="Funnel">Funnel</span><!-- <span class="badge badge-light-danger rounded-pill ms-auto me-1">2</span> --></a>
                    <ul class="menu-content">
                        <li class="<?=$uriSub=="create-funnel"?'active':''?>"><a class="d-flex align-items-center" href="<?=base_url("admin/funnel/create-funnel")?>"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="settings">Create Funnel</span></a>
                        </li>
                        <li class="<?=$uriSub=="list"?'active':''?>" ><a class="d-flex align-items-center" href="<?=base_url("admin/funnel/list")?>"><i data-feather="circle"></i><span class="menu-item text-truncate" data-i18n="list">Funeels</span></a>
                        </li>
                    </ul>
                </li>
                <li class="<?=$uriMain=="faq"?'active':''?>"><a class="d-flex align-items-center" href="<?=base_url("admin/faq")?>"><i data-feather="help-circle"></i><span class="menu-title text-truncate" data-i18n="FAQ">Faq</span></a>
                </li>
                </li>
                <!-- <li class="<?=$uriMain=="pricing"?'active':''?>"><a class="d-flex align-items-center" href="<?=base_url("admin/pricing")?>"><i data-feather="credit-card"></i><span class="menu-title text-truncate" data-i18n="FAQ">Pricing</span></a>
                </li> -->
                <li class="<?=$uriMain=="contact-us"?'active':''?>"><a class="d-flex align-items-center" href="<?=base_url("admin/contact-us")?>"><i data-feather="mail"></i><span class="menu-title text-truncate" data-i18n="contact-us">Contact Us</span></a>
                </li>
            </ul>
        </div>
    </div>
    <!-- END: Main Menu-->
    <style type="text/css">
        .main-menu.menu-light .navigation > li ul {
            padding-left: 10px;
        }
    </style>