public function postDelete()
 {
     $slideshow = slideshow::find(Input::get('id'));
     if ($slideshow->delete()) {
         if (Input::exists('json')) {
             return json_encode(array('result' => 1));
         }
         return redirect('admin/slide')->with(['message' => 'Xóa thành công slide "' . Input::get('title') . '"']);
     } else {
         if (Input::exists('json')) {
             return json_encode(array('result' => -1, 'message' => 'Có lỗi. Xóa thất bại'));
         }
         return redirect('admin/slide')->with(['message' => 'Xóa slide "' . Input::get('title') . '" thất bại. Vui lòng thử lại.']);
     }
 }
 public static function getSlideShow($page)
 {
     $slideshow = new slideshow();
     return $slideshow->where('page', '=', $page)->get();
 }