<?php
foreach($data as $val){
    $url = strtolower(str_replace(' ', '-', $val['module_name']));
    $action = "index";
    if($val['module_name']=='Outstation' || $val['module_name']=='One Way'){
        $action = "one-way";
        $url = "outstation";
    }
    $url = $this->url($url, ['controller' => 'index', 'action' => $action],['query'=>['city'=>$val['city_name'],'city_id'=>$val['city_id']]]);
?>

<div class="form_meubg service-module">
    <a href="<?php echo $url; ?>">
        <div class="menuicon"><i class="fa <?php echo $val['module_icon']; ?>"></i></div>
        <div class="over-text pull-left disable_none service-show"><?php echo $val['module_name']; ?></div>
    </a>
</div>
<?php }?>