/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index($typeId)
 {
     $counter = 0;
     // academic
     if ($typeId == 3) {
         // $institutions = Member::getAllInstitions()->get()->getAllAcademicInstitutions()->get();
         $typeName = 'Student Members';
         $academics = Individual::getAllStudents()->get();
         return view('backend.individuals.academic', compact('typeId', 'academics', 'counter', 'typeName'));
     } else {
         if ($typeId == 4) {
             // non-academic
             $typeName = 'Professional Members';
             $academics = Individual::getAllProfessionals()->get();
             return view('backend.individuals.academic', compact('typeId', 'academics', 'counter', 'typeName'));
         }
     }
 }