/**
  * Get classroom borrow infomation.
  *
  * @return Json
  */
 public function getClassroomBorrowInfo(Request $request)
 {
     // get all timezone data with today
     $day = Carbon::now()->toDateString();
     $con_str = $request->input('con_str', '<=');
     // get timezone datas
     $timezones_info = Timezone::with(['type'])->where('date_ended_at', $con_str, $day)->get();
     return response()->json($timezones_info);
 }
 /**
  * Get classroom borrow infomation.
  *
  * @return Json
  */
 public function getClassroomBorrowInfo(Request $request)
 {
     // get all timezone data that ended after today
     $day = Carbon::now()->toDateString();
     // get timezone datas
     $timezones_info = Timezone::with(['type'])->where('date_ended_at', '>=', $day)->get();
     return response()->json($timezones_info);
 }