app/Http/Controllers/Admin/AdminController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Http\Response
     */
Show the application dashboard.
@return \Illuminate\Http\Response
Show the application dashboard . @return \ Illuminate \ Http \ Response
public function dashboard()
    {
        $blog = Blog::count();
        $demo = Demo::count();
        $contact = Contact::count();
        $pricing = Pricing::count();
        $services = Service::count();
        $testimonial = Testimonial::count();
        $data = compact('demo', 'contact', 'blog', 'pricing', 'services', 'testimonial');
        return view('backend.inc.index', $data);
    }
public function dashboard ( ) { $ blog = Blog :: count ( ) ; $ demo = Demo :: count ( ) ; $ contact = Contact :: count ( ) ; $ pricing = Pricing :: count ( ) ; $ services = Service :: count ( ) ; $ testimonial = Testimonial :: count ( ) ; $ data = compact ( 'demo' , 'contact' , 'blog' , 'pricing' , 'services' , 'testimonial' ) ; return view ( 'backend.inc.index' , $ data ) ; }
Show the application dashboard.
Show the application dashboard .