app/Http/Controllers/Client/ClientManagerController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index() 
    {
        $user = User::where('id', Auth::user()->id)->first();
        $all_manager = User::where('parent_id',Auth::user()->id)->get(); 
        return view('client.manager',['user' => $user,'manager' => $all_manager]);
    }
public function index ( ) { $ user = User :: where ( 'id' , Auth :: user ( ) -> id ) -> first ( ) ; $ all_manager = User :: where ( 'parent_id' , Auth :: user ( ) -> id ) -> get ( ) ; return view ( 'client.manager' , [ 'user' => $ user , 'manager' => $ all_manager ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//default //display all client manager