public function getGuideDetail($guideLink)
 {
     $localCode = strtoupper(App::getLocale());
     /* Load Mode */
     $headerModel = new Models\HeaderModel();
     $breadCrumbModel = new Models\breadCrumbsModel();
     $guideMode = new Models\GuideModel();
     /* Init Data */
     $headerData = $headerModel->index($localCode);
     $guideDetailData = $guideMode->getGuideDetailIndex($localCode, $guideLink);
     $breadCrumbData = $breadCrumbModel->getBreadCrumbData($localCode, "guide", "G", $guideLink, null);
     $guideDetailArr = array("headerData" => $headerData, "breadCrumb" => $breadCrumbData, "guideDetail" => $guideDetailData);
     return view('guideDetail', $guideDetailArr);
 }
 /**
  * @param $newsLink
  * @return array
  */
 public function getNewsDetail($newsLink)
 {
     $localCode = strtoupper(App::getLocale());
     /* Load Mode */
     $headerModel = new Models\HeaderModel();
     $breadCrumbModel = new Models\breadCrumbsModel();
     $newsModel = new Models\NewsModel();
     $commonModel = new Models\CommonModel();
     /* Init Data */
     $headerData = $headerModel->index($localCode);
     $newsDetailData = $newsModel->getNewsDetailIndex($localCode, $newsLink);
     $breadCrumbData = $breadCrumbModel->getBreadCrumbData($localCode, "news", "N", $newsLink, null);
     /* Update Views */
     $commonModel->updateViews("tb_news", "NEWS_TEXT_LINK", $newsLink);
     $newsListArr = array("headerData" => $headerData, "breadCrumb" => $breadCrumbData, "newsDetail" => $newsDetailData);
     return view('newsDetail', $newsListArr);
 }
 /** get tour detail data
  * @param $tourLink
  * @return View
  */
 public function getTourDetail($tourLink)
 {
     $localCode = strtoupper(App::getLocale());
     /* Load Mode */
     $headerModel = new Models\HeaderModel();
     $tourModel = new Models\TourModel();
     $breadCrumbModel = new Models\breadCrumbsModel();
     $commonModel = new Models\CommonModel();
     /* Init Data */
     $headerData = $headerModel->index($localCode);
     $tourData = $tourModel->indexTourDetail($localCode, $tourLink);
     $breadCrumbData = $breadCrumbModel->getBreadCrumbData($localCode, "tours", "T", $tourLink, null);
     /* Update Views */
     $commonModel->updateViews("tb_tours", "TOUR_TEXT_LINK", $tourLink);
     /* Init Data */
     $tourDetailArr = array("headerData" => $headerData, "tourDetail" => $tourData, "breadCrumb" => $breadCrumbData);
     return view('tourDetail', $tourDetailArr);
 }
 /** pages navigator controller
  * @param $pageLink
  * @return View
  */
 public function getPagesRedirect($pageLink)
 {
     $localCode = strtoupper(App::getLocale());
     /* Load Mode */
     $headerModel = new Models\HeaderModel();
     $breadCrumbModel = new Models\breadCrumbsModel();
     $pageModel = new Models\PagesModel();
     /* Init Data */
     $headerData = $headerModel->index($localCode);
     $pageData = $pageModel->getPageIndex($localCode, $pageLink);
     $breadCrumbData = $breadCrumbModel->getBreadCrumbData($localCode, "pages", "P", $pageLink, null);
     $pageArray = array("headerData" => $headerData, "breadCrumb" => $breadCrumbData, "pages" => $pageData);
     return view('pages', $pageArray);
 }