Ejemplo n.º 1
0
 public function index()
 {
     $title = Lang::get('admin/news/title.blog_management');
     $news = $this->news->all();
     $big_news = \BigNews::first();
     return View::make('admin/news/index', compact('news', 'title', 'rubrics', 'big_news'));
 }
Ejemplo n.º 2
0
 public function index()
 {
     $title = Lang::get('admin/news/title.blog_management');
     $news = $this->news;
     $news = $news->paginate(10);
     $big_news = \BigNews::first();
     $big_news = is_null($big_news) ? $this->news->first() : $big_news->news;
     $banners = \Banner::where('view_in_news', true)->take(2)->get();
     return View::make('news/index', compact('news', 'big_news', 'title', 'banners'));
 }