<div id="content">
    <div class="navbar hidden-print main navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
                <a id="logo" href="<?php echo base_url();?>index.php/users/dashboard" class="pull-left">
                    <!-- <img src="<?php echo base_url(); ?>assets/images/logo/sub-logo.jpg" /> -->
                    <h4>Subscription Management System</h4>
                </a>

            </div>
            <div class="hideME">
                <div class="user-action pull-right menu-right-hidden-xs menu-left-hidden-xs">
                    <div class="dropdown username hidden-xs pull-left"> <a class="dropdown-toggle " data-toggle="dropdown" href="#">
                        <span class="media margin-none">
                            <span class="pull-left">
                                <img src="<?php echo base_url(); ?>assets/images/default_profile.jpg" alt="user" class="img-circle">
                            </span>
                            <?php
                            $this->ci = & get_instance();
                            $arr_session = $this->ci->session->all_userdata(); ?>
                            <span class="media-body"> <?php echo ucwords($arr_session['first_name']." ".$arr_session['last_name']) ;?>
                                <span class="caret"></span>
                            </span>
                        </span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <!-- <li ><a href="my_profile.html" ><i></i> Profile</a></li> -->
                            <!-- <li><a href="settings.html">Settings</a></li> -->
                            <li><a href="<?php echo base_url();?>index.php/subscriber/finalise_payment">Finalise Payment</a></li>
                            <li><a href="<?php echo base_url();?>index.php/postings/advance_reporting">Advance Reporting</a></li>
                            <li ><a href="<?php echo base_url();?>index.php/campaign/add_campaign">Add campaign</a></li>
                            <li ><a href="<?php echo base_url();?>index.php/agent/agent_listing">Manage Agent</a></li>
                            <li ><a href="<?php echo base_url();?>index.php/language/lang_listing">Manage Language</a></li>
                            <li ><a href="<?php echo base_url();?>index.php/category/category_listing">Manage Category</a></li>
                            <li ><a href="<?php echo base_url();?>index.php/currency/currency_listing">Manage Currency</a></li>
                            <!-- <li ><a href="<?php echo base_url();?>index.php/vouchers/">Manage Voucher</a></li> -->
                            <li ><a href="<?php echo base_url();?>index.php/users/logout">Logout</a></li>
                        </ul>
                    </div>
                </div>

                <div class="clearfix"></div>
            </div>
        </div>
    </div>
    <?php $strCurrentController =  $this->uri->segment(1);?>
    <?php $strCurrentMethod =  $this->uri->segment(2);?>
    <!-- // END navbar -->
    <div class=" collapse navbar-collapse " id="bs-example-navbar-collapse-1">
        <div class="container">
            <ul class="nav navbar-nav" style="margin-left: -10px">
                <li <?php if ($strCurrentMethod == "dashboard" || $strCurrentController == 'users') { ?> class="active" <?php } ?>><a  href="<?php echo base_url();?>index.php/users/dashboard"><i class="fa fa-fw fa-dashboard"></i> Dashboard </a> </li>
                <li <?php if ($strCurrentController == "magazine") { ?> class="active" <?php } ?>> <a href="<?php echo base_url();?>index.php/magazine/magazine_list"><i class="fa fa-fw fa-shopping-cart"></i> Magazine</a> </li>
                <li <?php if ($strCurrentController == "promotion") { ?> class="active" <?php } ?>><a href="<?php echo base_url();?>index.php/promotion/promotion_list"><i class="fa fa-fw fa-bullhorn"></i> Campaign</a> </li>
                <li <?php if ($strCurrentController == "subscriber" && $strCurrentMethod != "transaction_listing" && $strCurrentMethod != "notification_listing") { ?> class="active" <?php } ?>><a href="<?php echo base_url();?>index.php/subscriber/subscriber_list"><i class="fa fa-fw fa-users"></i> Subscribers</a> </li>
                <li <?php if ($strCurrentMethod == "transaction_listing") { ?> class="active" <?php } ?>><a href="<?php echo base_url();?>index.php/subscriber/transaction_listing"><i class="fa fa-fw fa-money"></i> Transactions</a> </li>
                <li <?php if ($strCurrentMethod == "notification_listing") { ?> class="active" <?php } ?>><a href="<?php echo base_url();?>index.php/subscriber/notification_listing"><i class="fa fa-fw fa-comments"></i> Communication<span class="badge badge-primary"></span></a> </li>
                <li <?php if ($strCurrentController == 'postings') { ?> class="active" <?php } ?> ><a href="#"><i class="fa fa-fw fa-file"></i> Reports <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="<?php echo base_url();?>index.php/postings/downloads">Sticker/Singpost Listing</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnExpireReport">Expired Subscriber Report</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnRenewalReport">Renewal Report</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnCampaignReport">Campaign Report</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnManagementReports">Management Reports</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnTransactionReports">Transaction Reports</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/fnAdvanceReports">Advance Reports</a></li>
                        <li><a href="<?php echo base_url();?>index.php/postings/financeReports">Finance Reports</a></li>
                    </ul>
                </li>
                <li > <a href="<?php echo base_url();?>index.php/users/renewals"><i class="fa fa-fw fa-refresh"></i> Renewals</a> </li>
                <li <?php if ($strCurrentMethod == "users_listing" || $strCurrentMethod == "permission") { ?> class="active" <?php } ?>> <a  href="<?php echo base_url();?>index.php/users/users_listing"><i class="fa fa-fw fa-wrench"></i> Settings <span class="caret"></span></a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a href="<?php echo base_url();?>index.php/users/users_listing">Users Management</a></li>
                        <li><a href="<?php echo base_url();?>index.php/users/access_listing">Access Management</a></li>
                        <li><a href="<?php echo base_url();?>index.php/manage/permission">Permission Management</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>


