app/Http/Controllers/HomeController.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 index(User $user)
    {
        $user = User::where("id", "=", Auth::user()->id)->get();
        $countwawancara = Post::where("condition", NULL)->where("user_id", "=", Auth::user()->id)->count();
        $countrevisi = Post::where("condition", 2)->where("user_id", "=", Auth::user()->id)->count();
        $countselesai = Post::where("condition", 4)->where("user_id", "=", Auth::user()->id)->count();
        return view('beranda', compact('user', 'countwawancara', 'countselesai', 'countrevisi'));
    }
public function index ( User $ user ) { $ user = User :: where ( " id " , " = " , Auth :: user ( ) -> id ) -> get ( ) ; $ countwawancara = Post :: where ( " condition " , NULL ) -> where ( " user_id " , " = " , Auth :: user ( ) -> id ) -> count ( ) ; $ countrevisi = Post :: where ( " condition " , 2 ) -> where ( " user_id " , " = " , Auth :: user ( ) -> id ) -> count ( ) ; $ countselesai = Post :: where ( " condition " , 4 ) -> where ( " user_id " , " = " , Auth :: user ( ) -> id ) -> count ( ) ; return view ( 'beranda' , compact ( 'user' , 'countwawancara' , 'countselesai' , 'countrevisi' ) ) ; }
Show the application dashboard.
Show the application dashboard .