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 adminHome()
    {
        $inactive_users = User::where('status', '=', '0')->count();
        $active_users = User::where('status', '=', '1')->count();
        $pdffiles_count = File::where('extension', '=', 'pdf')->count();
        $wordfiles_count = File::where('extension', '=', 'doc')->orwhere('extension', '=', 'docx')->count();
        return view('adminHome', [
            'inactive_users' => $inactive_users, 'active_users' => $active_users,
            'pdffiles_count' => $pdffiles_count, 'wordfiles_count' => $wordfiles_count
        ]);
    }
public function adminHome ( ) { $ inactive_users = User :: where ( 'status' , '=' , '0' ) -> count ( ) ; $ active_users = User :: where ( 'status' , '=' , '1' ) -> count ( ) ; $ pdffiles_count = File :: where ( 'extension' , '=' , 'pdf' ) -> count ( ) ; $ wordfiles_count = File :: where ( 'extension' , '=' , 'doc' ) -> orwhere ( 'extension' , '=' , 'docx' ) -> count ( ) ; return view ( 'adminHome' , [ 'inactive_users' => $ inactive_users , 'active_users' => $ active_users , 'pdffiles_count' => $ pdffiles_count , 'wordfiles_count' => $ wordfiles_count ] ) ; }
Show the application dashboard.
Show the application dashboard .