{{ $menu['menu_lang']['title'][Session::get('lang')] }} @else {{$menu['menu_name']}} @endif </span><span class="fa arrow"></span> </a> @if(count($menu['childs']) > 0) <ul class="nav nav-second-level"> @foreach ($menu['childs'] as $menu2) <li @if(Request::segment(1) == $menu2['module']) class="active" @endif> <a @if($menu2['menu_type'] =='external') {{--href="{{ $menu2['url']}}" --}} href="<?php echo str_replace('{id}', SiteHelpers::getCustomerIdFromUserId(), $menu2['url']); ?> " @else href="{{ URL::to($menu2['module'])}}" @endif > <i class="{{$menu2['menu_icons']}}"></i> @if(CNF_MULTILANG ==1 && isset($menu2['menu_lang']['title'][Session::get('lang')])) {{ $menu2['menu_lang']['title'][Session::get('lang')] }} @else {{$menu2['menu_name']}} @endif </a> @if(count($menu2['childs']) > 0) <ul class="nav nav-third-level">
public static function queryWhere() { return " WHERE tb_branches.customer_id = " . \SiteHelpers::getCustomerIdFromUserId(); }
public static function delivery_code($uid = '') { $str = strtoupper(str_random(3)); return $str . time() . SiteHelpers::getCustomerIdFromUserId($uid); }