<style>
    .nav-tabs > li > a{
        padding: 4px 20px !important;
        background: #c52d2f !important;
    }
    .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {

    border: 0;
    color: #000;
    background: #F90 !important;
    position: relative;
    
</style>
<?php
$cityModule = new \Zend\Session\Container('cityModule');
$cityId = isset($cityModule->city_id) ? $cityModule->city_id : '';
//$cityId = '707';
$moduleData = $this->mainMenu()->getServiceModuleByCity($cityId);

if (!empty($moduleData) && $cityId != "") {
    $routeName=$this->currentRoute()->getRoute();    
    ?>
<div class="container" align="center" style="margin-bottom: 20px;">
        	<div class="col-sm-12 no-padding float-none">
                    <ul class="nav nav-tabs" style="background: none !important;">
<?php

foreach($moduleData as $val){
    $activeClass="";
    $url = strtolower(str_replace(' ', '-', $val['module_name']));
    $action = "index";
    if($val['module_name']=='One Way'){
        $action = "one-way";
        $url = "outstation";
    }
    if($val['module_name']=='Outstation'){
        $action = "round-trip";
        $url = "outstation";
    }
    $url = $this->url($url, ['controller' => 'index', 'action' => $action],['query'=>['city'=>$val['city_name'],'city_id'=>$val['city_id']]]);
    $moduleName = str_replace(' ','-',strtolower($val['module_name']));
    if($routeName==$moduleName){
        $activeClass = 'active';
    }
?>

    <li class="<?php echo $activeClass; ?>"><a href="<?php echo $url; ?>"><i class="fa <?php echo $val['module_icon']; ?>"></i> <?php echo $val['module_name']; ?></a></li>
    
<?php }?>
</ul>

                </div>
</div>

    <?php
}
?>