/**
  * 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]);
 }
 /**
  * Remove a hostel
  *
  * @param $hostelId
  * @return \Illuminate\Http\RedirectResponse
  */
 public function removeHostel($hostelId)
 {
     if ($hostelId != null) {
         Hostel::destroy($hostelId);
     }
     return redirect()->back();
 }