';
// var_dump($student_assigned_route);
// Check if the one way is checked.
$oneWay = $student_assigned_route['one_way'];
}
foreach ($route_data as $value) {
$BTSdb = $this->load->database('erisnClassroom_bts', TRUE);
$pick_sele = $BTSdb->query('SELECT pick_up_id FROM bt_students_bus_route_details WHERE student_id=' . $student_info['id'] . ' and route_id=' . $value['route_id'] . ' order by id desc limit 1')->row_array();
$pick_sele = (isset($pick_sele['pick_up_id']) && !empty($pick_sele['pick_up_id'])) ? $pick_sele['pick_up_id'] : 0;
?>