<?php
$url = $this->uri->segment(2, 0);
$this->load->model('members/members_model');
$mres = $this->members_model->get_member_row($this->session->userdata('user_id'));
?>
<h4>Welcome <?php echo $this->session->userdata('fullname'); ?></h4>
<div class="tz-l-1">
  <ul>
    <li><img style="width: auto!important;" src="<?php echo get_image('user', $mres['profile_picture'], '350', '250', 'R'); ?>" alt="" /> </li>
  </ul>
</div>
<div class="tz-l-2">
  <ul>
    <li>
      <h4><a href="<?php echo site_url('members'); ?>" class="tz-lma text-center"> My Dashboard</a></h4>
    </li>
    <li <?php echo ($url == 'update-contact')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_self_verified'] == '1') ? site_url('members/update-contact') : 'javascript:void(0);'; ?>"><i class="fa fa-arrow-circle-right"></i> Update Contact Details</a>
    </li>
    <li <?php echo ($url == 'update-profile')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_self_verified'] == '1') ? site_url('members/update-profile') : 'javascript:void(0);'; ?>"><i class="fa fa-arrow-circle-right"></i> Company Factsheet</a>
    </li>
    <li <?php echo ($url == 'add-product')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['status'] == '1') ? site_url('members/add-product') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Add New Product</a>
    </li>
    <li <?php echo ($url == 'manage-products')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['status'] == '1') ? site_url('members/manage-products') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> View Product Listing</a>
    </li>
     <li <?php echo ($url == 'add-service')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['status'] == '1') ? site_url('members/add-service') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Add New Service</a>
    </li>
    <li <?php echo ($url == 'manage-services')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['status'] == '1') ? site_url('members/manage-services') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> View Services Listing</a>
    </li>
    <li <?php echo ($url == 'manage-enquiries')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/manage-enquiries') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Enquiries</a>
    </li>

    <!-- Free Website Category and Products Management -->
    <li class="manage_web"><i class="fa fa-cog"></i> Manage Website</li>
    <li <?php echo ($url == 'change-website-url')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/change-website-url') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Change Website URL</a>
    </li>
    <li <?php echo ($url == 'website-config')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/website-config') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Website Configuration</a>
    </li>
    <li <?php echo ($url == 'website-setting')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/website-setting') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Website Settings</a>
    </li>
    <li <?php echo ($url == 'aboutus')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/aboutus') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Website About Us</a>
    </li>
    <li <?php echo ($url == 'manage-website-category')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/manage-website-category') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> View Website Category</a>
    </li>
    <li <?php echo ($url == 'manage-website-service-category')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/manage-website-service-category') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> View Website Service Category</a>
    </li>
    <li <?php echo ($url == 'company_blog')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/company_blog') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Blog</a>
    </li>
    <li <?php echo ($url == 'clients')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/clients') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Clients</a>
    </li>
    <li <?php echo ($url == 'career')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/career') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Jobs</a>
    </li>
    <li <?php echo ($url == 'banners')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/banners') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Banners</a>
    </li>
    <li <?php echo ($url == 'photo_gallery')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/photo_gallery') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Photo Gallery</a>
    </li>
    <li <?php echo ($url == 'video_gallery')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/video_gallery') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> Manage Video Gallery</a>
    </li>
    <li <?php echo ($url == 'manage-website-enquiries')?'class="lactive"':''; ?>>
      <a href="<?php echo ($mres['is_manufacturer'] == '1' && $mres['status'] == '1') ? site_url('members/manage-website-enquiries') : site_url('members/'); ?>"><i class="fa fa-arrow-circle-right"></i> View Website Enquiries</a>
    </li>
    <!-- End Free Website Category and Products Management -->



    <li>
      <a href="<?php echo site_url('members/change-password'); ?>"><i class="fa fa-arrow-circle-right"></i> Change Password</a>
    </li>
    <li>
      <a href="<?php echo site_url(); ?>users/logout"><i class="fa fa-arrow-circle-right"></i> Log Out</a>
    </li>
  </ul>
</div>