public function fetchIndex()
 {
     $allpage = BannerArea::orderBy('created_at', "desc")->paginate(20);
     if (Request::ajax()) {
         $view = "banners::part.banners_area_center";
     } else {
         $view = 'banners::banners_area';
     }
     return View::make($view)->with('title', Config::get('banners::ploshad.title_page'))->with("data", $allpage);
 }
示例#2
0
 public function fetchCreateBanner()
 {
     $bannerarea = BannerArea::orderBy("created_at", "DESC")->get();
     return View::make('banners::part.form_banner', compact("bannerarea"));
 }