/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $users = Member::latest()->paginate(15); $membership_types = MembershipType::lists('type', 'id')->put('0', 'all')->sortBy('id'); $institution_type = InstitutionType::lists('name', 'id'); return view('backend.memberships.listing', compact('membership_types', 'users', 'institution_type', 'typeName')); }