<?php 
require_once("header.php");
require_once("session_check.php");
?>

<?php
$arr_order = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_orders` WHERE `order_id` = '".$_REQUEST['order_id']."'"));
$fetch_service = mysqli_fetch_array(mysqli_query($connection,"SELECT * FROM `sc_services` WHERE `service_id` = '".$arr_order['service_id']."'"));
?>
  
			<!-- page template area start -->
			<section id="about">
    			<div class="container mt-0 pb-0 pt-5">	
    				<div class="row">
    					<div class="col-lg-8">
    					    <h1 class="title mt-0 mb-0" style="text-align:center;">Booking Details</h1>
    					    <p class="text-center" style="color:#888;"><?php echo stripslashes($fetch_service['service_name']);?></p>
							    <div class="pt-10 pb-10" style="text-align:left;">
										<p style="margin-bottom:5px;"><span style="text-align:left;"><b>Order Date & Time</b> </span> <span style="float:right;"><b><?php echo date('d.m.Y, h:i A',strtotime($arr_order['post_date']));?></b></span></p>
										<p style="margin-bottom:5px;"><span style="text-align:left;">Order ID </span> <span style="float:right;"><?php echo $arr_order['orderid'];?></span></p>
										<p style="margin-bottom:5px;"><span style="text-align:left;">Service Type </span> <span style="float:right;"><?php echo $arr_order['service_type'];?></span></p>
										<p style="margin-bottom:5px;"><span style="text-align:left;">Grand Total </span> <span style="float:right;"> &#8377; <?php echo $arr_order['price'];?></span></p>
										<p style="margin-bottom:5px;"><span style="text-align:left;">Payment Status </span> <span style="float:right;"><?php echo $arr_order['payment_status'];?></span></p>
										<p style="margin-bottom:5px;"><span style="text-align:left;">Work Status </span> <span style="float:right;"><?php echo $arr_order['work_status'];?></span></p>
										<?php if($arr_order['work_status']=="Completed") { ?>
									    <p style="margin-bottom:5px;"><span style="text-align:left;">Work Date & Time </span> <span style="float:right;"><?php echo date('d.m.Y, h:i A',strtotime($arr_order['work_date']));?></b></span></p>
									    <?php } ?>
									</div>
					    </div>
					</div>
				</div>
			</section>
			<!-- page template area end -->
  
<?php require_once("footer.php");?>
