<nav id="sidebar">
    <div class="sidebar_blog_1">
        <div class="sidebar-header">
            <div class="logo_section">
                <?php 
                $userRole = isset($this->session->userdata['session_data']['role']) ? $this->session->userdata['session_data']['role'] : '';
                $dashboardUrl = ($userRole == 'fleet') ? base_url('FleetOwnerDashboard') : base_url('dashboard');
                ?>
                <a href="<?= $dashboardUrl ?>">
                    <h3 class="logo_icon img-responsive" style="color:rgb(7, 183, 189);background-color:#b5ebed">Serena</h3>
                    <!-- <img class="logo_icon img-responsive" src="<?= base_url() ?>assets/images/logo/logo.png" alt="#" /> -->
                </a>
            </div>
        </div>
        <div class="sidebar_user_info">
            <div class="icon_setting"></div>
            <div class="user_profle_side">
                <div class="logo_section">
                    <h3 style="color: rgb(7, 183, 189)">Serena Fleet Management</h3>
                    <!-- <a href="<?= base_url('dashboard') ?>"><img class="img-responsive" src="<?= base_url() ?>assets/images/CoachClipLogo.png" alt="#" style="width:;height:;" /></a> -->
                </div>
            </div>
        </div>
    </div>
    <div class="sidebar_blog_2">
        <ul class="list-unstyled components">
            <?php 
            // Get user role from session
           // $userRole = isset($this->session->userdata['session_data']['role']) ? $this->session->userdata['session_data']['role'] : '';
            
            // Show fleet owner menu items
           // if ($userRole == 'fleet'): 
            ?>
                <li>
                    <a href="<?= base_url('FleetOwnerDashboard') ?>" class="<?=isset($active) && $active=='fleet_dashboard'?'active':''?>">
                        <i class="fa fa-dashboard"></i><span>Dashboard</span>
                    </a>
                </li>
                <li>
                    <a href="<?= base_url('FleetOwnerDashboard/drivers') ?>" class="<?=isset($active) && $active=='fleet_drivers'?'active':''?>">
                        <i class="fa fa-users"></i><span>Drivers Management</span>
                    </a>
                </li>
                <li>
                    <a href="<?= base_url('FleetOwnerDashboard/rides') ?>" class="<?=isset($active) && $active=='fleet_rides'?'active':''?>">
                        <i class="fa fa-car"></i><span>Rides Management</span>
                    </a>
                </li>
             
    </div>
</nav>
<div id="content">