app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index()
    {
        $slider = Sliders::where('status','=','0');
        $slider_count = $slider->count();
        $blogs = Blogs::All();
        $blogs_count = $blogs->count();
        $products = Products::All();
        $products_count = $products->count();
        $user = User::All();
        $user_count = $user->count();
        return view('layouts.home.home-admin',compact(
            'slider','slider_count',
            'blogs' , 'blogs_count',
            'products','products_count',
            'user','user_count'
        ));
    }
public function index ( ) { $ slider = Sliders :: where ( 'status' , '=' , '0' ) ; $ slider_count = $ slider -> count ( ) ; $ blogs = Blogs :: All ( ) ; $ blogs_count = $ blogs -> count ( ) ; $ products = Products :: All ( ) ; $ products_count = $ products -> count ( ) ; $ user = User :: All ( ) ; $ user_count = $ user -> count ( ) ; return view ( 'layouts.home.home-admin' , compact ( 'slider' , 'slider_count' , 'blogs' , 'blogs_count' , 'products' , 'products_count' , 'user' , 'user_count' ) ) ; }
Show the application dashboard.
Show the application dashboard .
// Untuk mengambil Data dari database berdasarkan status 0 / aktif // Untuk menghitung Jumlah status 0/aktif // Untuk mengambil Data dari Blogs // Untuk menghitung Jumlah Blogs // Untuk mengambil Data Produk dari database  // Untuk menghitung Jumlah Produk dari database  // Untuk mengambil Data User dari database  // Untuk menghitung Jumlah User dari database 