<!--First accordion panel container begins here -->
<div id="accordion" class="panel-group">
    
    <?php //show only when its administartor
	
	$user_id = get_user_id();
	if(is_administrator($user_id))
	{
		
	?>
    
    
    <div class="panel panel-success">
        <div class="panel-heading">
        <h4 class="panel-title"><a href="#collapseOne" data-parent="#accordion" data-toggle="collapse">Last 5 Logged-In Users</a></h4>
        </div>
                <div id="collapseOne" class="panel-collapse collapse in">
                        <table id="background-image" class="tablesorter" cellspacing="0">
                            <thead>
                                    
                                        <th class="header" >Name</th>
                                        <th class="header" >User Group</th>
                                       <!-- <th class="header" >Role</th>-->
                                        <th class="header" >Last Activity</th>
                                        <th class="header" >Logout</th>
                                    
                            </thead>
                            
                                <tbody>
                                <?php echo get_last_5logged_in_users(); ?>
                                </tbody>
                        </table>										
                            
                </div>
                <!-- /collapseOne -->
    </div>
    <!--First accordion panel container Ends here -->
    
    <!--Second accordion panel container begins here -->
    <div class="panel panel-success">
        <div class="panel-heading">
            <h4 class="panel-title"><a href="#collapseTwo" data-parent="#accordion" data-toggle="collapse">Last 5 Blocked Users</a></h4>
        </div>
        
                <div id="collapseTwo" class="panel-collapse collapse out">
                        <!-- insert table here or other content here -->
                
                    <table id="background-image" class="tablesorter" cellspacing="0">
                        <thead>
                                
                                    <th class="header" >Name</th>
                                    <th class="header" >User Group</th>
                                    <!--<th class="header" >Role</th>-->
                                    <th class="header" >Last Activity</th>
                                    <th class="header" >Logout</th>
                                
                        </thead>
                        
                            <tbody>
                            <?php echo get_last_5blocked_users(); ?>
                            </tbody>
                    </table>
                    

                </div>
    </div>
    <?php 
	//############### end of if its administartor --
	}
	?>
    <!--Second accordion panel container Ends here -->	

    <!--Third accordion panel container begins here -->
        <div class="panel panel-success">
            <div class="panel-heading">
                <h4 class="panel-title"><a href="#collapseThree" data-parent="#accordion" data-toggle="collapse">Top 5 Popular News</a></h4>
            </div>
            
                    <div id="collapseThree" class="panel-collapse collapse out">
                            <!-- insert table here or other content here -->
                    
                        <table id="background-image" class="tablesorter" cellspacing="0">
                            <thead>
                                    
                                        <th class="header" >Title</th>
                                        <th class="header" >Date Added</th>
                                        
                                        <th class="header" >Hits</th>
                                    
                            </thead>
                            
                                <tbody>
                                <?php //echo get_last_5blocked_users(); ?>
                                </tbody>
                        </table>
                        
    
                    </div>
        </div>

    <!--Third accordion panel container Ends here -->	
    
    
        
        <!--Fourth accordion panel container begins here -->
            <div class="panel panel-success">
                <div class="panel-heading">
                    <h4 class="panel-title"><a href="#collapseForth" data-parent="#accordion" data-toggle="collapse">Top 5 Error Logs</a></h4>
                </div>
                
                        <div id="collapseForth" class="panel-collapse collapse out">
                                <!-- insert table here or other content here -->
                        
                            <table id="background-image" class="tablesorter" cellspacing="0">
                                <thead>
                                        
                                            <th class="header" >Title</th>
                                            <th class="header" >Date Added</th>
                                            
                                            <th class="header" >Hits</th>
                                        
                                </thead>
                                
                                    <tbody>
                                    <?php //echo get_last_5blocked_users(); ?>
                                    </tbody>
                            </table>
                            
        
                        </div>
            </div>
    
        <!--Third accordion panel container Ends here -->	
</div>
<!-- /id="accordion" class="panel-group" -->


</div>
<!-- /id="accordion" class="panel-group" -->
                        
                        
                        
                        
                      
                        