<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<?php init_head(); ?>
<div id="wrapper">
  <div class="breadcrumb col-md-12">
  <a href="<?php echo admin_url(); ?>"><?= _l('breadcrumb_dashboard'); ?></a>&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;<a href="<?php echo admin_url("assets"); ?>"><?php echo _l('assets'); ?></a>&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;<?php echo html_entity_decode($title); ?>
  </div>
    <div class="admin-title">
		<h1><?= $this->config->item('icons')['setting']; ?> 
		<?php echo html_entity_decode($title); ?></h1>
    </div>
  ` <div class="content">
        <div class="row">

        <div class="col-md-3">
          <ul class="nav navbar-pills navbar-pills-flat nav-tabs nav-stacked">
            <?php
            $i = 0;
            foreach ($tab as $group) {
                ?>
              <li<?php if (0 == $i) {
                    echo " class='active'";
                } ?>>
              <a href="<?php echo admin_url('assets/setting?group='.$group); ?>" data-group="<?php echo htmlspecialchars($group); ?>">
              <?php if ('asset_group' == $group) {
                    echo '<i class="fal fa-cubes"></i>';
                } elseif ('asset_unit' == $group) {
                    echo '<i class="fal fa-cube"></i>';
                } elseif ('asset_location' == $group) {
                    echo '<i class="fal fa-location-arrow"></i>';
                } ?>  <?php echo htmlspecialchars(_l($group)); ?></a>
              </li>
              <?php ++$i;
            } ?>
            </ul>


        </div>
        <div class="col-md-9">
            <div class="panel_s">
                <div class="panel-body">

                      <?php $this->load->view($tabs['view']); ?>

                </div>
              </div>
          </div>
          <div class="clearfix"></div>
        </div>
    <?php echo form_close(); ?>
    <div class="btn-bottom-pusher"></div>


    </div>

    
</div>
<div id="new_version"></div>

<?php show_footer(); ?><?php init_tail(); ?>
<script>
  appValidateForm($('form'),{group_name:'required', unit_name:'required'});
</script>

</body>
</html>
