">
queryfire("select * from tbl_bus where id=" . $_GET["bus_id"] . "")->fetch_assoc();
$decker = $data['decker'];
$is_sleeper = $data['is_sleeper'];
$driver_direction = $data['driver_direction'];
$seatLayoutData = explode('$;', $data['seat_layout']);
$bus_id = $_GET['bus_id'];
$book_date = $_GET['book_date'];
?>
queryfire("select * from tbl_bus where id=".$_GET["selbus_id"]."")->fetch_assoc();
$board_drop_points = $h->queryfire("select * from tbl_board_drop_points where id=".$_GET['main_drop_pick_id']."")->fetch_assoc();
$price = $busprice['tick_price'];
$totalprice = $price * count($seatlist);
$tax = $set['tax'];
$tprice = $totalprice * $tax/100;
$total_amt = $tprice + $totalprice;
$pick_datetime = new DateTime($_GET['selecteddate'] . ' ' . $board_drop_points['btime']);
$drop_datetime = new DateTime($_GET['selecteddate'] . ' ' . $board_drop_points['dtime']);
// Check if the drop time is on the next date
if ($drop_datetime < $pick_datetime) {
// Drop time is on the next date
$pick_date = $pick_datetime->format('Y-m-d H:i:s');
$next_date = $drop_datetime->modify('+1 day');
$dropdate = $next_date->format('Y-m-d H:i:s');
} else {
// Drop time is on the same date
$dropdate = $drop_datetime->format('Y-m-d H:i:s');
$pick_date = $pick_datetime->format('Y-m-d H:i:s');
}
?>