public function index() { $title = "Dashboard"; $article = Article::count(); $articlecategory = ArticleCategory::count(); $users = User::count(); $photo = Photo::count(); $photoalbum = PhotoAlbum::count(); return view('admin.dashboard.index', compact('title', 'article', 'articlecategory', 'photo', 'photoalbum', 'users')); }
public function index() { $title = "Dashboard"; $news = News::count(); $newscategory = NewsCategory::count(); $users = User::count(); $photo = Photo::count(); $photoalbum = PhotoAlbum::count(); $video = Video::count(); $videoalbum = VideoAlbum::count(); return view('admin.dashboard.index', compact('title', 'news', 'newscategory', 'video', 'videoalbum', 'photo', 'photoalbum', 'users')); }