/**
  * Show the form for creating a new resource.
  *
  * @return Response
  */
 public function create()
 {
     $typeId = Input::get('typeId');
     $assign['types'][0]['id'] = $typeId;
     switch ($typeId) {
         case Category::TYPE_TOPIC:
             $assign['types'][0]['name'] = trans('app.Topic');
             break;
         case Category::TYPE_BLOG:
             $assign['types'][0]['name'] = trans('app.Blog');
             break;
         case Category::TYPE_ARTICLE:
             $assign['types'][0]['name'] = trans('app.Article');
             break;
     }
     if ($typeId == Category::TYPE_TOPIC) {
         $assign['categorys'] = $this->Category->getTopic4TopCategorys();
         return view('dashboard.category.create-topic', $assign);
     } else {
         return view('dashboard.category.create', $assign);
     }
 }