Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $servers = Server::paginate(1);
     $news = Category::where('type', NEWS_CAT)->where('status', 1)->first();
     $galaries = Galary::where('status', 1)->get();
     $articles = Category::getPostAvaiable($news);
     return view('frontend.index.main')->with('news_articles', $articles)->with('news', $news)->with("galaries", $galaries)->with('servers', $servers);
 }