public function index()
 {
     $title = Lang::get('lang.destinations');
     $meta_title = Lang::get('lang.MetaTitleForDestinations') . " | " . Lang::get('lang.Destinations');
     $meta_description = Lang::get('lang.MetaDescription');
     $pagination = config('constants.PAGINATION');
     $query = Input::get('q');
     $meta_keywords = Lang::get('lang.MetaKeywords');
     if (isset($query)) {
         $destinations = Destinations::search($query)->where('active', '=', 1)->where('isDomestic', '=', '1')->orderBy('ordering')->groupBy('jos_estateagent_town_id')->paginate($pagination);
         $destinations->setPath('destinations');
     } else {
         $destinations = Destinations::where('active', '=', 1)->where('isDomestic', '=', '1')->orderBy('ordering')->paginate($pagination);
         $destinations->setPath('destinations');
     }
     return view('destinations.index', compact('destinations', 'title', 'meta_title', 'meta_description', 'meta_keywords'));
 }