/**
  *インデックスアクション
  */
 public function index()
 {
     //ソート状況配列初期化
     $order = array();
     $order[0] = array('thread' => 'DESC', 'amount' => 'DESC', 'user' => 'DESC');
     $order[1] = array('thread' => '▼', 'amount' => '▼', 'user' => '▼');
     //ソート要求があるか否か
     if (Input::has('sort') && Input::has('order')) {
         $threads = ThreadView::getThreadInfo(Input::get('sort'), Input::get('order'));
         $sort = Input::get('sort');
         $order[0][$sort] = Input::get('order') == 'DESC' ? 'ASC' : 'DESC';
         $order[1][$sort] = $order[0][$sort] == 'DESC' ? '▼' : '▲';
     } else {
         $threads = ThreadView::getThreadInfo();
     }
     return view('board.index')->with('threads', $threads)->with('order', $order);
 }
 public function dashboard()
 {
     $threads = ThreadView::getThreadInfo();
     return view('dashboard.index')->with('threads', $threads);
 }