<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>Dashboard</h1>
    </section>
    <!-- Main content -->
    <section class="content">
       <div class="dash_quick_link_Wrap mb_30">
           <div class="row">
               <?php
               if(!empty($_SESSION['USERS_DATA']) && $_SESSION['USERS_DATA']['userType'] ==1){
               ?>
               <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard_link_wrap">
                        <a href="<?php echo base_url('user'); ?>" class="" >
                            <span class="link_icon"><i class="fa fa-users" aria-hidden="true"></i></span>
                            <span class="link_count"><?php if(!empty($customer)){ echo count($customer); }else{ echo 0;}?></span>
                            <p>Total Customers</p>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard_link_wrap">
                        <a href="<?php echo base_url('user/wholesaler'); ?>" class="" >
                            <span class="link_icon"><i class="fa fa-snowflake-o" aria-hidden="true"></i></span>
                            <span class="link_count"><?php if(!empty($wholesaler)){ echo count($wholesaler);}else{ echo 0;} ?></span>
                            <p>Total Wholesaler</p>
                        </a>
                    </div>
                </div>
                <?php 
               }
               ?>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard_link_wrap">
                        <a href="<?php echo base_url('dashboard/items_master'); ?>" class="" >
                            <span class="link_icon"><i class="fa fa-archive" aria-hidden="true"></i></span>
                            <span class="link_count"><?php if(!empty($items)){ echo count($items); }else{ echo 0;}?></span>
                            <p>Total Items</p>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
                    <div class="dashboard_link_wrap">
                        <a href="<?php echo base_url('directsales/orders_history'); ?>" class="" >
                            <span class="link_icon"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></span>
                            <span class="link_count"><?php if(!empty($orders)){ echo count($orders);}else{ echo 0;} ?></span>
                            <p>Total Orders</p>
                        </a>
                    </div>
                </div>
            </div>
         </div>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  



                   