/**
  * Show information update form. Please note
  * that a hostelStaff can only update
  * his name, email and password
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function showUpdateInfoForm()
 {
     // Get the logged in hostelStaff
     $hostelStaff = HostelStaff::find(Auth::guard('hostelStaff')->user()->id);
     // Get the list of hostels present in databse
     $hostels = Hostel::all();
     return view($this->updateInfoView, ['hostelStaff' => $hostelStaff, 'hostels' => $hostels]);
 }
 /**
  * Show hostel and feel details view to the student
  *
  * @return mixed
  */
 public function showFeeAndHostelDetailsView()
 {
     if (!$this->isRegistrationActive('student')) {
         return view($this->inactiveView);
     }
     $currentStudentState = $this->getCurrentStudentState();
     // Get the list of hostels
     $hostels = Hostel::all();
     return view($this->feeAndHostelDetailsView, ['currentStudentState' => $currentStudentState, 'hostels' => $hostels]);
 }
 /**
  * Show the hostels currently present in the database
  *
  * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
  */
 public function manageHostels()
 {
     $hostelArr = Hostel::all();
     return view('admin.manage.hostels', ['hostels' => $hostelArr, 'count' => 0]);
 }