app/Http/Controllers/AdminController.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($user)
    {
        $id = auth()->user()->id;
        $status = Agreement::where('user_id',$id)->get();
        return view('admin.index',compact('status'));
    }
public function index ( $ user ) { $ id = auth ( ) -> user ( ) -> id ; $ status = Agreement :: where ( 'user_id' , $ id ) -> get ( ) ; return view ( 'admin.index' , compact ( 'status' ) ) ; }
Show the application dashboard.
Show the application dashboard .