<!DOCTYPE html>
<html lang="en">
    <?php
    if(!empty($data)){
            $logo = $data['logo'];
            $footer_logo = $data['footer_logo'];
            $favicon = $data['favicon'];
            $footer_about = $data['footer_about'];
            $footer_copyright = $data['footer_copyright'];
            $contact_address = $data['contact_address'];
            $contact_email = $data['contact_email'];
            $contact_fax = $data['contact_fax'];
            $contact_phone = $data['contact_phone'];
            $base_name = $data['base_name'];
            $meta_title_home = $data['meta_title_home'];
            $meta_keyword_home = $data['meta_keyword_home'];
            $meta_description_home = $data['meta_description_home'];
            $before_head = $data['before_head'];
            $after_body = $data['after_body'];
            $theme_color = $data['color'];
            $contact_map_iframe = $data['contact_map_iframe'];
            $banner_login = $data['banner_login'];
            
            
             $this->load->model('Common_model');
          $table2 = 'tbl_user';
		  $column2['id'] = $_SESSION['admin']['id'];
		  $result2 = $this->Common_model->Result($column2,$table2);  
            
    }
    ?>
<head>
        <meta charset="utf-8" />
        <title><?= strtoupper("$page");?> || <?= $meta_title_home;?></title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <meta name="theme-color" content="#2b3d5130" />
        <meta content="<?= $meta_title_home;?>" name="description" />
        <meta content="Coderthemes" name="author" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <!-- App favicon -->
        <link rel="shortcut icon" href="<?= base_url('uploads/website/favicon/'.$favicon);?>">

       <!-- Plugins css -->
        <link href="<?= base_url()?>assets/libs/bootstrap-tagsinput/bootstrap-tagsinput.css" rel="stylesheet" />
        <link href="<?= base_url()?>assets/libs/switchery/switchery.min.css" rel="stylesheet" type="text/css" />
        <link href="<?= base_url()?>assets/libs/multiselect/multi-select.css" rel="stylesheet" type="text/css" />
        <link href="<?= base_url()?>assets/libs/select2/select2.min.css" rel="stylesheet" type="text/css" />

        <!-- App css -->
        <link href="<?= base_url()?>assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" id="bootstrap-stylesheet" />
        <link href="<?= base_url()?>assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <link href="<?= base_url()?>assets/css/app.min.css" rel="stylesheet" type="text/css"  id="app-stylesheet" />


    </head>

    <body class="unsticky-layout">

        <!-- Begin page -->
        <div id="wrapper">

            
            <!-- Topbar Start -->
            <div class="navbar-custom">
                <ul class="list-unstyled topnav-menu float-right mb-0">
                    <li class="dropdown notification-list">
                        <a class="nav-link dropdown-toggle nav-user mr-0 waves-effect waves-light" data-toggle="dropdown" href="#" role="button" aria-haspopup="false" aria-expanded="false">
                            <img src="<?= base_url('uploads/master/user/'.$_SESSION['admin']['photo']);?>" alt="user-image" class="rounded-circle">
                            <span class="d-none d-sm-inline-block ml-1 font-weight-medium"><?= $_SESSION['admin']['full_name'];?></span>
                            <i class="mdi mdi-chevron-down d-none d-sm-inline-block"></i>
                        </a>
                        <div class="dropdown-menu dropdown-menu-right profile-dropdown ">
                            <!-- item-->
                            <div class="dropdown-header noti-title">
                                <h6 class="text-overflow text-white m-0">Welcome <?= $_SESSION['admin']['full_name'];?>!</h6>
                            </div>

                            <!-- item-->
                            <a href="<?= base_url('master/profile');?>" class="dropdown-item notify-item">
                                <i class="mdi mdi-account-outline"></i>
                                <span>Profile</span>
                            </a>

                            <!-- item-->
                            <a href="<?= base_url('master/settings');?>" class="dropdown-item notify-item">
                                <i class="mdi mdi-settings-outline"></i>
                                <span>Settings</span>
                            </a>

                            <div class="dropdown-divider"></div>

                            <!-- item-->
                            <a href="<?= base_url('/master/login/logout');?>" class="dropdown-item notify-item">
                                <i class="mdi mdi-logout-variant"></i>
                                <span>Logout</span>
                            </a>

                        </div>
                    </li>
                </ul>

                <!-- LOGO -->
                <div class="logo-box">
                    <a href="<?=base_url('master');?>" class="logo text-center logo-dark">
                        <span class="logo-lg">
                            <img src="<?= base_url('uploads/website/logo/'.$logo);?>" alt="" width="90%">
                            <!-- <span class="logo-lg-text-dark">Uplon</span> -->
                        </span>
                        <span class="logo-sm">
                            <!-- <span class="logo-lg-text-dark">U</span> -->
                            <img src="<?= base_url('uploads/website/logo/'.$logo);?>" alt="" width="90%">
                        </span>
                    </a>

                    <a href="<?=base_url('master');?>" class="logo text-center logo-light">
                        <span class="logo-lg">
                            <img src="<?= base_url('uploads/website/logo/'.$logo);?>" alt="" width="90%">
                            <!-- <span class="logo-lg-text-dark">Uplon</span> -->
                        </span>
                        <span class="logo-sm">
                            <!-- <span class="logo-lg-text-dark">U</span> -->
                            <img src="<?= base_url('uploads/website/logo/'.$logo);?>" alt="" width="90%">
                        </span>
                    </a>
                </div>

                <ul class="list-unstyled topnav-menu topnav-menu-left m-0">
                    <li>
                        <button class="button-menu-mobile waves-effect waves-light">
                            <i class="mdi mdi-menu"></i>
                        </button>
                    </li>
                </ul>
            </div>
            <!-- end Topbar -->

            
            <!-- ========== Left Sidebar Start ========== -->
            <div class="left-side-menu">

                <div class="slimscroll-menu">

                    <!--- Sidemenu -->
                    <div id="sidebar-menu">

                        <ul class="metismenu" id="side-menu">

                            <li class="menu-title">Navigation</li>

                            <li>
                                <a href="<?= base_url('master/dashboard');?>">
                                    <i class="mdi mdi-view-dashboard"></i>
                                    <span> Dashboard </span>
                                </a>
                            </li>

                          <?php if($result2['a']==1){?>  
                            <li>
                                <a href="<?= base_url('master/page/edit_redirect/settings/settings/1');?>">
                                    <i class="mdi mdi-settings-outline"></i>
                                    <span> Settings </span>
                                </a>
                            </li>
                            <?php } if($result2['b']==1){ ?>
                            <li>
                                <a href="<?= base_url('master/customer');?>">
                                    <i class="mdi mdi-account-circle-outline"></i>
                                    <span> Customer </span>
                                </a>
                            </li>
                              <?php } if($result2['c']==1){ ?>
                            <li>
                                <a href="<?= base_url('master/order');?>">
                                    <i class="mdi mdi-cart-outline"></i>
                                    <span> Orders </span>
                                </a>
                            </li>
                              <?php } if($result2['d']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-cogs"></i>
                                    <span> Shop Settings </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level nav" aria-expanded="false">
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             Top Category
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/top_category/create');?>"><i class="mdi mdi-arrow-right"></i> Add Top Category</a></li>
                                            <li><a href="<?= base_url('master/top_category');?>"><i class="mdi mdi-arrow-right"></i> Top Category List</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             Mid Category
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/mid_category/create');?>"><i class="mdi mdi-arrow-right"></i> Add Mid Category</a></li>
                                            <li><a href="<?= base_url('master/mid_category');?>"><i class="mdi mdi-arrow-right"></i> Mid Category List</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             End Category
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/end_category/create');?>"><i class="mdi mdi-arrow-right"></i> Add End Category</a></li>
                                            <li><a href="<?= base_url('master/end_category');?>"><i class="mdi mdi-arrow-right"></i> End Category List</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             Size
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/size/create');?>"><i class="mdi mdi-arrow-right"></i> Add Size</a></li>
                                            <li><a href="<?= base_url('master/size');?>"><i class="mdi mdi-arrow-right"></i> Size List</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             Color
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/color/create');?>"><i class="mdi mdi-arrow-right"></i> Add Color</a></li>
                                            <li><a href="<?= base_url('master/color');?>"><i class="mdi mdi-arrow-right"></i> Size Color</a></li>
                                        </ul>
                                    </li>
                                    <li>
                                        <a href="javascript: void(0);" aria-expanded="false">
                                            <i class="mdi mdi-arrow-right-bold-circle-outline"></i>
                                             Shipping Cost
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/shipping_cost/create');?>"><i class="mdi mdi-arrow-right"></i> Add Shipping Cost</a></li>
                                            <li><a href="<?= base_url('master/shipping_cost');?>"><i class="mdi mdi-arrow-right"></i> Size Shipping Cost</a></li>
                                        </ul>
                                    </li> 
                                </ul>
                            </li>
                              <?php } if($result2['e']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-map-search-outline"></i>
                                    <span> Address Settings </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level nav" aria-expanded="false">
                                 
                                    <li>
                                        <a href="javascript: void(0);">
                                            <i class="mdi mdi-map-check"></i>
                                            <span> State </span>
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/state/create');?>"><i class="mdi mdi-arrow-right"></i> Add State</a></li>
                                            <li><a href="<?= base_url('master/state');?>"><i class="mdi mdi-arrow-right"></i> State List</a></li>
                                        </ul>
                                    </li>
                                    
                                    <li>
                                        <a href="javascript: void(0);">
                                            <i class="mdi mdi-map-check-outline"></i>
                                            <span> District </span>
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/district/create');?>"><i class="mdi mdi-arrow-right"></i> Add District</a></li>
                                            <li><a href="<?= base_url('master/district');?>"><i class="mdi mdi-arrow-right"></i> District List</a></li>
                                        </ul>
                                    </li>
                            
                                    <li>
                                        <a href="javascript: void(0);">
                                            <i class="mdi mdi-pin-outline"></i>
                                            <span> Pin Code </span>
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/pin/create');?>"><i class="mdi mdi-arrow-right"></i> Add Pin</a></li>
                                            <li><a href="<?= base_url('master/pin');?>"><i class="mdi mdi-arrow-right"></i> Pin List</a></li>
                                        </ul>
                                    </li>
                            
                                    <li>
                                        <a href="javascript: void(0);">
                                            <i class="mdi mdi-city"></i>
                                            <span> Top Cities </span>
                                            <span class="menu-arrow"></span>
                                        </a>
                                        <ul class="nav-third-level nav" aria-expanded="false">
                                            <li><a href="<?= base_url('master/top_cities/create');?>"><i class="mdi mdi-arrow-right"></i> Add Top Cities</a></li>
                                            <li><a href="<?= base_url('master/top_cities');?>"><i class="mdi mdi-arrow-right"></i> Top Cities List</a></li>
                                        </ul>
                                    </li>
                            
                                </ul>
                            </li>
                              <?php } if($result2['f']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-bag-carry-on-check"></i>
                                    <span> Product </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/product/create');?>"><i class="mdi mdi-arrow-right"></i> Add Product</a></li>
                                    <li><a href="<?= base_url('master/product');?>"><i class="mdi mdi-arrow-right"></i> Product List</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['g']==1){ ?>
                                 <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-bag-carry-on-check"></i>
                                    <span> Invoice </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/invoice');?>"><i class="mdi mdi-arrow-right"></i> New Invoice</a></li>
                                    <li><a href="<?= base_url('master/invoice/invoice');?>"><i class="mdi mdi-arrow-right"></i> Invoice List</a></li>
                                    
                                                 <li><a href="<?= base_url('master/invoice1');?>"><i class="mdi mdi-arrow-right"></i> New Quotation</a></li>
                                    <li><a href="<?= base_url('master/invoice1/invoice');?>"><i class="mdi mdi-arrow-right"></i> Pending Quotation</a></li>
                                    <li><a href="<?= base_url('master/invoice1/invoice1');?>"><i class="mdi mdi-arrow-right"></i> Complete Quotation</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['h']==1){ ?>
                               <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-bag-carry-on-check"></i>
                                    <span> Staff </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                   <li><a href="<?= base_url('master/staff/create');?>"><i class="mdi mdi-arrow-right"></i> Add Staff</a></li>
                                    <li><a href="<?= base_url('master/staff');?>"><i class="mdi mdi-arrow-right"></i> Staff List</a></li>
                               
                                 
                                </ul>
                            </li>
                              <?php } if($result2['i']==1){ ?>
                            <li>
                                <a href="<?= base_url('master/product_stock');?>">
                                    <i class="mdi mdi-stocking"></i>
                                    <span> Product Stock </span>
                                </a>
                            </li>
                              <?php } if($result2['j']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-gift-outline"></i>
                                    <span> Coupon </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/coupon/create');?>"><i class="mdi mdi-arrow-right"></i> Add Coupon</a></li>
                                    <li><a href="<?= base_url('master/coupon');?>"><i class="mdi mdi-arrow-right"></i> Coupon List</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['k']==1){ ?>
                            
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-image-filter"></i>
                                    <span> Home Banner Slider </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/slider/create');?>"><i class="mdi mdi-arrow-right"></i> Add Slider</a></li>
                                    <li><a href="<?= base_url('master/slider');?>"><i class="mdi mdi-arrow-right"></i> Slider List</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['l']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-image-filter"></i>
                                    <span> AD Slider </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/ad_slider/create');?>"><i class="mdi mdi-arrow-right"></i> Add Slider</a></li>
                                    <li><a href="<?= base_url('master/ad_slider');?>"><i class="mdi mdi-arrow-right"></i> Slider List</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['m']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-help-circle-outline"></i>
                                    <span> Faq </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/faq/create');?>"><i class="mdi mdi-arrow-right"></i> Add Faq</a></li>
                                    <li><a href="<?= base_url('master/faq');?>"><i class="mdi mdi-arrow-right"></i> Faq List</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['n']==1){ ?>
                            <li>
                                <a href="javascript: void(0);">
                                    <i class="mdi mdi-file-outline"></i>
                                    <span> Dynamic Page </span>
                                    <span class="menu-arrow"></span>
                                </a>
                                <ul class="nav-second-level" aria-expanded="false">
                                    <li><a href="<?= base_url('master/dynamic/about');?>"><i class="mdi mdi-arrow-right"></i> About Us</a></li>
                                    <li><a href="<?= base_url('master/dynamic/faq');?>"><i class="mdi mdi-arrow-right"></i> Faq</a></li>
                                    <li><a href="<?= base_url('master/dynamic/contact');?>"><i class="mdi mdi-arrow-right"></i> Contact Us</a></li>
                                    <li><a href="<?= base_url('master/dynamic/terms_conditions');?>"><i class="mdi mdi-arrow-right"></i> Terms & Conditions</a></li>
                                    <li><a href="<?= base_url('master/dynamic/privacy_policy');?>"><i class="mdi mdi-arrow-right"></i> Privacy Policy</a></li>
                                </ul>
                            </li>
                              <?php } if($result2['o']==1){ ?>
                            
                            <li>
                                <a href="<?= base_url('master/career');?>">
                                    <i class="mdi mdi-help-circle"></i>
                                    <span> Career Enquiry </span>
                                </a>
                            </li>
                              <?php } if($result2['p']==1){ ?>
                            <li>
                                <a href="<?= base_url('master/enquiry');?>">
                                    <i class="mdi mdi-help-circle"></i>
                                    <span> Contact Enquiry </span>
                                </a>
                            </li>
                              <?php } if($result2['q']==1){ ?>
                            <li>
                                <a href="<?= base_url('master/db_backup');?>">
                                    <i class="mdi mdi-database"></i>
                                    <span> Backup Database </span>
                                </a>
                            </li>
                            <?php } ?>
                            
                            
                              <li>
                                <a href="<?= base_url('master/profile');?>">
                                    <i class="mdi mdi-account-outline"></i>
                                    <span> Profile </span>
                                </a>
                            </li>
                            
                            
                            
                            
                              <li>
                                <a href="<?= base_url('/master/login/logout');?>">
                                    <i class="mdi mdi-logout-variant"></i>
                                    <span> Logout </span>
                                </a>
                            </li>
                        </ul>

                    </div>
                    <!-- End Sidebar -->

                    <div class="clearfix"></div>

                </div>
                <!-- Sidebar -left -->

            </div>
            <!-- Left Sidebar End -->
            <!-- ============================================================== -->
            <!-- Start Page Content here -->
            <!-- ============================================================== -->

            <div class="content-page">