<div class="left-bar ">
  <div class="admin-logo">
    <div class="logo-holder pull-left">
      <img class="logo" src="<?php echo URL('images/logo.png'); ?>" alt="<?php echo AppHelper::config('site_name'); ?>"> 
    </div>
    <!-- logo-holder -->      
    <a href="#" class="menu-bar  pull-right"><i class="ti-menu"></i></a>
  </div>
  <!-- admin-logo -->
  <ul class="list-unstyled menu-parent" id="mainMenu">
    <li>
      <a href="<?php echo URL('/admin/dashboard'); ?>" class="waves-effect waves-light">
        <i class="icon ion-ios-home-outline"></i>
        <span class="text ">Dashboard</span>
      </a>
    </li>

<?php if(Entrust::can('site_config_manage')): ?>
    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-settings"></i>
        <span class="text">General</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
        <li <?php echo (Request::is('*admin/settings') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings'); ?>">Site Config</a></li>
        <li <?php echo (Request::is('*admin/settings/header') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/header'); ?>">Header</a></li>
        <li <?php echo (Request::is('*admin/settings/footer') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/footer'); ?>">Footer</a></li>
        <li <?php echo (Request::is('*admin/settings/sliders*') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/sliders'); ?>">Sliders</a></li>
        <li <?php echo (Request::is('*admin') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/backup/db'); ?>">BackUp</a></li>
      </ul>
    </li>
<?php endif; ?>

    <?php if(Entrust::can('hotels_manage')): ?>



    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-list-outline"></i>
        <span class="text">Hotels</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
      <?php if(Entrust::can('hotels_add')): ?>
        <li <?php echo (Request::is('*admin/addhotel') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/addhotel'); ?>">Add Hotel</a>
        </li>
      <?php endif; ?>
      <?php if(Entrust::can('hotels_manage')): ?>
                <li <?php echo (Request::is('*admin/hotels') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/hotels'); ?>">List Hotel</a></li>
      <?php endif; ?>
      </ul>
    </li>

    <?php endif; ?>
 <?php if(Entrust::can('offers_manage')): ?>
    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-list-outline"></i>
        <span class="text">Offers</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
       <?php if(Entrust::can('offers_add')): ?>
        <li <?php echo (Request::is('*admin/offers/add') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/offers/add'); ?>">Add Offers</a>
        </li>
      <?php endif; ?>
       <?php if(Entrust::can('offers_manage')): ?>
                <li <?php echo (Request::is('*admin/offers') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/offers'); ?>">List Offers</a></li>
        <?php endif; ?>
      </ul>
    </li>
<?php endif; ?>

<?php if(Entrust::can('destinations_manage')): ?>

    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-location-outline"></i>
        <span class="text">Destinations</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
      <?php if(Entrust::can('destinations_add')): ?>
        <li <?php echo (Request::is('*admin/destinations/add') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/destinations/add'); ?>">Add Destination</a></li>
      <?php endif; ?>
                <li <?php echo (Request::is('*admin/destinations') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/destinations'); ?>">List Destination</a></li>
                <li <?php echo (Request::is('*admin/settings/activities/addactivity') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/activities/addactivity'); ?>">Add Information</a></li>
            <li <?php echo (Request::is('*admin/settings/activities') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/activities'); ?>">List Information</a></li>
      </ul>
    </li>
<?php endif; ?>

    <?php if(Entrust::can('blog_manage')): ?>
    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-compose-outline"></i>
        <span class="text">Blog</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
          <?php if(Entrust::can('blog_add')): ?>
                <li <?php echo (Request::is('*admin/posts/addpost*') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/posts/addpost'); ?>">Add Posts</a></li>
          <?php endif; ?>
          <?php if(Entrust::can('blog_manage')): ?>
                <li <?php echo (Request::is('*admin/posts*') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/posts'); ?>">List Posts</a></li>
          <?php endif; ?>
      </ul>
    </li>
    <?php endif; ?>

<?php if(Entrust::can('widgets_manage')): ?>

    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-list-outline"></i>
        <span class="text">Widgets</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">
                <?php if(Entrust::can('widgets_add')): ?>

                <li <?php echo (Request::is('*admin/widgets/addwidget') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/widgets/addwidget'); ?>">Add Widget</a></li>

                <?php endif; ?>

                <li <?php echo (Request::is('*admin/widgets') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/widgets'); ?>">List Widgets</a></li>
      </ul>
    </li>

<?php endif; ?>




<?php if(Entrust::can('payments_manage')): ?>

    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-social-usd-outline"></i>
        <span class="text">Online Payments</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">

                <li <?php echo (Request::is('*admin/payments') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/payments'); ?>">All Payments</a></li>
               
      </ul>
    </li>
<?php endif; ?>

<?php if(Entrust::can('payment_vouchers_manage')): ?>
    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-social-usd-outline"></i>
        <span class="text">Payment Vouchers</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">

                <li <?php echo (Request::is('*admin/payments-vouchers') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/payments-vouchers'); ?>">All Payment Vouchers</a></li>
               
      </ul>
    </li>
<?php endif; ?>




<?php if(Entrust::can('bookings_manage')): ?>

  <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-paper-outline"></i>
        <span class="text">Bookings</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">

                <li <?php echo (Request::is('*admin/bookings') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/bookings'); ?>">List Bookings</a></li>
             
      </ul>
    </li>
<?php endif; ?>


<?php if(Entrust::can('quotations_manage')): ?>
    <li class="submenu">
      <a class="waves-effect waves-light" href="#layouts">
        <i class="icon ion-ios-paper-outline"></i>
        <span class="text">Quotations</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled">

                <li <?php echo (Request::is('*admin/quotations') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/quotations'); ?>">List Quotations</a></li>
             
      </ul>
    </li>
<?php endif; ?>




     
    <li class="submenu">
      <a class="waves-effect waves-light" href="#components">
        <i class="icon ion-ios-gear-outline"></i>
        <span class="text">Settings</span>
        <i class="chevron ti-angle-right"></i>
      </a>
      <ul class="list-unstyled" id="components">
<?php if(Entrust::can('permissions_manage')): ?>
        <li class="submenu">
          <a class="waves-effect waves-light" href="<?php echo URL('admin/settings/permission'); ?>">
            Permissions
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
        </li>
<?php endif; ?>

<?php if(Entrust::can('roles_manage')): ?>
        <li class="submenu">
          <a class="waves-effect waves-light" href="#alerts">
            Roles
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
          <ul class="list-unstyled" id="alerts">
            <li <?php echo (Request::is('*admin/settings/roles/add') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/roles/add'); ?>">Add Role</a></li>
            <li <?php echo (Request::is('*admin/settings/roles') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/roles'); ?>">List Roles</a></li>
          </ul>
        </li>
<?php endif; ?>

<?php if(Entrust::can('users_manage')): ?>
        <li class="submenu">
          <a class="waves-effect waves-light" href="#alerts">
            Users
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
          <ul class="list-unstyled" id="alerts">
          <?php if(Entrust::can('users_edit')): ?>
            <li <?php echo (Request::is('*admin/settings/users/add') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/users/add'); ?>">Add User</a></li>
          <?php endif; ?>
          <?php if(Entrust::can('users_manage')): ?>
            <li <?php echo (Request::is('*admin/settings/users') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/users'); ?>">List Users</a></li>
          <?php endif; ?>
          </ul>
        </li>
<?php endif; ?>

<?php if(Entrust::can('facilities_manage')): ?>

        <li class="submenu">
          <a class="waves-effect waves-light" href="#alerts">
            Facilities
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
          <ul class="list-unstyled" id="alerts">
            <li <?php echo (Request::is('*admin/settings/facilities/addfacility') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/facilities/addfacility'); ?>">Add Facilities</a></li>
            <li <?php echo (Request::is('*admin/settings/facilities') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/facilities'); ?>">List Facilities</a></li>
          </ul>
        </li>
<?php endif; ?>

<?php if(Entrust::can('categories_manage')): ?>

        <li class="submenu">
          <a class="waves-effect waves-light" href="#alerts">
            Categories
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
          <ul class="list-unstyled" id="alerts">
            <li <?php echo (Request::is('*admin/settings/categories/addcategory') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/categories/addcategory'); ?>">Add Categories</a></li>
            <li <?php echo (Request::is('*admin/settings/categories') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/categories'); ?>">List Categories</a></li>
          </ul>
        </li>
<?php endif; ?>







<?php if(Entrust::can('firewall_manage')): ?>
        <li class="submenu">
          <a class="waves-effect waves-light" href="#alerts">
            Firewall
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
          <ul class="list-unstyled" id="alerts">
            <li <?php echo (Request::is('*admin/settings/firewall/add') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/firewall/add'); ?>">Add Rule</a></li>
            <li <?php echo (Request::is('*admin/settings/firewall') ? 'class="current"' : ''); ?>><a href="<?php echo URL('admin/settings/firewall'); ?>">List Firewall</a></li>
          </ul>
        </li>
<?php endif; ?>


        <li class="submenu">
          <a class="waves-effect waves-light" href="<?php echo URL('admin/settings/changepassword'); ?>">
            Change Password
            <span class="pull-right drop-arrow">
              <i class="drop-indicator ti-angle-right chevron"></i>
            </span>
          </a>
       
        </li>





      </ul>
    </li>





  </ul>
</div>
<!-- left-bar -->