Exemplo n.º 1
0
 public function adminDashboard()
 {
     $blogCount = Blog::all()->count();
     $tagCount = Tag::all()->count();
     $contactCount = ContactMails::where('messageStatus', 0)->count();
     $totalCount = ContactMails::all()->count();
     $totalHit = UserLog::all()->count();
     return view('admin.dashBoard')->with('blogCount', $blogCount)->with('blogCount', $blogCount)->with('tagCount', $tagCount)->with('contactCount', $contactCount)->with('totalCount', $totalCount)->with('totalHit', $totalHit);
 }
Exemplo n.º 2
0
 public function getDashboardData()
 {
     $blogCount = Blog::all()->count();
     $tagCount = Tag::all()->count();
     $contactCount = ContactMails::where('messageStatus', 0)->count();
     $totalCount = ContactMails::all()->count();
     $totalHit = UserLog::all()->count();
     return 1;
     #$Response = array('success' => '1', 'blogCount' => $blogCount, 'tagCount' => $tagCount , 'contactCount' => $contactCount, 'totalCount' => 'totalHit' => $totalHit);
 }
Exemplo n.º 3
0
 public function getLogs()
 {
     return \App\UserLog::all();
 }