<div class="col-lg-3">
    <div class="card">
        <div class="card-header d-flex justify-content-between">
            <h6 class="card-header d-flex align-items-center">
                <i class="fa fa-bed font-30 mr-10"></i>
                <?php echo $this->lang->line('bed'); ?> <?php echo $this->lang->line('list'); ?>
            </h6>
        </div>
        <ul class="list-group list-group-flush">
            <?php if (has_permission(VIEW, 'hospital', 'bed')) { ?>
                <li class="list-group-item <?php echo $this->router->fetch_method() == 'status' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'status' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('hospital/bed/status'); ?>"><i class="fa fa-hourglass-start" aria-hidden="true"></i> <?php echo $this->lang->line('bed'); ?> <?php echo $this->lang->line('status'); ?></a>
                </li>

                <li class="list-group-item <?php echo $this->router->fetch_method() == 'index' || $this->router->fetch_method() == 'add' || $this->router->fetch_method() == 'edit' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'index' || $this->router->fetch_method() == 'add' || $this->router->fetch_method() == 'edit' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('hospital/bed'); ?>"><i class="fa fa-hotel" aria-hidden="true"></i> <?php echo $this->lang->line('bed'); ?></a>
                </li>

                <li class="list-group-item <?php echo $this->router->fetch_method() == 'type' || $this->router->fetch_method() == 'add_type' || $this->router->fetch_method() == 'edit_type' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'type' || $this->router->fetch_method() == 'add_type' || $this->router->fetch_method() == 'edit_type' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('hospital/bed/type'); ?>"><i class="fa fa-object-group" aria-hidden="true"></i> <?php echo $this->lang->line('bed_type'); ?></a>
                </li>

                <li class="list-group-item <?php echo $this->router->fetch_method() == 'group' || $this->router->fetch_method() == 'add_group' || $this->router->fetch_method() == 'edit_group' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'group' || $this->router->fetch_method() == 'add_group' || $this->router->fetch_method() == 'edit_group' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('hospital/bed/group'); ?>"><i class="fa fa-grav" aria-hidden="true"></i> <?php echo $this->lang->line('bed_group'); ?></a>
                </li>

                <li class="list-group-item <?php echo $this->router->fetch_method() == 'floor' || $this->router->fetch_method() == 'add_floor' || $this->router->fetch_method() == 'edit_floor' ? 'active' : ''; ?>">
                    <a <?php echo $this->router->fetch_method() == 'floor' || $this->router->fetch_method() == 'add_floor' || $this->router->fetch_method() == 'edit_floor' ? 'class="text-white"' : ''; ?> href="<?php echo site_url('hospital/bed/floor'); ?>"><i class="fa fa-fire" aria-hidden="true"></i> <?php echo $this->lang->line('floor'); ?></a>
                </li>
            <?php } ?>
        </ul>
    </div>
</div>