public function showbranch($id) { $branch = PartnerBranch::where('partner_id', $id)->get(); $countries = Country::all(); $partnerid = Partner::whereId($id)->first(); return view('deskpad/branches', compact('branch', 'partnerid', 'countries')); }