private function checkPrivateRideTime($date, $route_id, $start, $end = null)
 {
     $db = JFactory::getDbo();
     $query = $db->getQuery(1);
     $query->select('*')->from('#__bookpro_transport_dayoff')->where('date=' . $db->quote($date));
     $db->setQuery($query);
     $data = $db->loadObject();
     if ($data) {
         $params = json_decode($data->params, true);
         if ($params[$route_id]) {
             foreach ($params[$route_id] as $rate) {
                 if (DateHelper::inTime($start, $rate['start'], $rate['end'])) {
                     // || DateHelper::inTime($end, $rate->start, $rate->end)){
                     return true;
                 }
             }
         }
     }
     return false;
 }