0) { $currentFirstId = Category::firstGradeById($categoryId); } $data = [ 'categoryId' => $categoryId, 'menus' => $menus, 'currentFirstId' => $currentFirstId, ]; if ($lang == 'en') { return View::assign($data)->fetch('en/public/menu'); } else { return View::assign($data)->fetch('public/menu'); } } }