<?php
$booking_details = $this->booking_details;
//echo '<pre>';print_r($booking_details);die();
?>
<div id="displayMsgTicket"></div>
<?php if ($ticket_type != 'track-car') { ?>
    <section id="main_form1" class="padding12top">
        <div class="container">
            <div class="slide-margin">
                <div class="col-sm-12">
                    <div class="search-tabs search-tabs-bg search-tabs-nobox search-tabs-lift-top">
                        <div class="tabbable">
                            <div class="tab-content1">
                                <div class="tab-pane fade in active">
                                    <div class="row">
                                        <div class="col-sm-12">
                                            <h2 class="modal-title"><?php echo $heading; ?></h2>
                                            <div class="widthpersent100 pull-left">
                                                <div id="print-demo">
                                                    <div class="box-body table-responsive" id="invoice">
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
                                                            <tr>
                                                                <td colspan="0">
                                                                    <table border="1" align="center" cellpadding="0" cellspacing="0" width="100%">
                                                                        <tr>
                                                                            <td align="left" class="paddinT5R0L5B5" colspan="2">
                                                                                <table width="100%" cellpadding="0" cellspacing="0">

                                                                                    <tr>
                                                                                        <td class="invoice-td-class">
                                                                                            <div class="col-sm-6 vertical-align-top">
                                                                                                <img src="/images/logo.png" height="70px" />
                                                                                            </div>



                                                                                            <div class="col-sm-4  pull-right new1" >

                                                                                                <strong>Booking No. :</strong> <?php echo $booking_details['ref']; ?><br />
                                                                                                <strong>Booking Date :</strong> <?php echo date('d-m-Y', strtotime($booking_details['booking_date'])); ?><br />
                                                                                                <strong>Booking Time :</strong> <?php echo $booking_details['booking_time']; ?>

                                                                                            </div>
                                                                                        </td>


                                                                                    </tr>
                                                                                </table>


                                                                                <div class="col-sm6 no-padding ">

                                                                                </div>
                                                                                <div class="col-sm3 pull-right ">

                                                                                </div>
                                                                            </td>

                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="2">
                                                                                <table width="100%" cellpadding="0" cellspacing="0">

                                                                                    <tr>
                                                                                        <td class="tdclass1">
                                                                                            <div class="col-sm-6 new1" >

                                                                                                <div class="col-sm-4">Name </div><div class="col-sm-8">:  Mr Dheeraj Kapila</div>

                                                                                                <div class="col-sm-4">Address</div><div class="col-sm-8">: 3/204 Third floor Subhash Nagar,<br>

                                                                                                    New Delhi, Delhi-110005</div>
                                                                                                <br>

                                                                                                <div class="col-sm-4">Phone</div> <div class="col-sm-8">: 011 42424242</div>
                                                                                                <div class="col-sm-4"> Email</div> <div class="col-sm-8">: info.regencytours.in</div>


                                                                                            </div>




                                                                                        </td>


                                                                                    </tr>
                                                                                </table>
                                                                            </td>
                                                                        </tr>


                                                                        <tr>
                                                                            <td colspan="2">
                                                                                <div class="box-body table-responsive min-hieght250px">
                                                                                    <table id="example1" class="table table-bordered table-striped">
                                                                                        <thead>
                                                                                            <tr align="left">
                                                                                                <th>S. No</th>
                                                                                                <th>Travel Date</th>
                                                                                                <th>Travel Time</th>
                                                                                                <th align="left">Particulars</th>
                                                                                                <th>Type of Vehicle</th>
                                                                                                <th>Type of Booking</th>
                                                                                                <th>Expected Hrs</th>
                                                                                                <th>Expected KMs</th>
                                                                                                <th>Extra/KM</th>
                                                                                                <th>Expected Amount</th>
                                                                                            </tr>
                                                                                        </thead>

                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td>01</td>
                                                                                                <td> <?php echo date('d-m-Y', strtotime($booking_details['booking_date'])); ?></td>
                                                                                                <td> <?php echo $booking_details['booking_time']; ?> </td>
                                                                                                <td><?php echo $booking_details['departure']; ?></td>
                                                                                                <td><?php echo $booking_details['vehicle']; ?></td>
                                                                                                <td><?php echo $booking_details['booking_type']; ?></td>
                                                                                                <td><?php echo $booking_details['estimated_time']; ?></td>
                                                                                                <td><?php echo $booking_details['estimated_distance']; ?> Km</td>
                                                                                                <td > <i class="fa fa-inr"></i><?php echo $booking_details['approx_distance_charge']; ?> km</td>
                                                                                                <td align="right"><i class="fa fa-inr"></i> <?php echo $booking_details['estimated_final_price']; ?></td>
                                                                                            </tr>

                                                                                        </tbody>

                                                                                    </table>
                                                                                </div>
                                                                            </td>
                                                                        </tr>

                                                                    </table>
                                                                </td>
                                                            </tr>


                                                            </td>
                                                            </tr>
                                                        </table>

                                                        <table border="1" align="center" width="100%" style="margin-top:10px;">
                                                            <tr>
                                                                <td>
                                                                    <table class="widthpersent99" align="center">
                                                                        <tr>
                                                                            <td>
                                                                                <strong>Fair Terms:</strong>
                                                                                <ol>
                                                                                    <li>Perday extra charge:</li>
                                                                                    <li> Pe KM extra charge:</li>
                                                                                    <li>Per day Driver Allowance:</li>
                                                                                    <li> If the vehicle will come after 2400 hrs then one extra charge will be applicable with Driver Allowance</li>
                                                                                </ol>

                                                                                <strong>Note:</strong>
                                                                                <ol>
                                                                                    <li>Parking, waiting & Toll Charges to be paid extra</li>
                                                                                    <li> Final Fair will depend upon actual distance (in KM) Travelled+Service Tax</li>
                                                                                </ol>

                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>

                                                        <table border="1" align="center" width="100%" style="margin-top:10px;">
                                                            <tr>
                                                                <td>
                                                                    <table class="widthpersent99" align="center">
                                                                        <tr>
                                                                            <td>
                                                                                <strong>Cancellation Policy:</strong><br>
                                                                                All the cancellation requests should be done through GetbookCab by calling our helpline number. Please don't deal with the driver for cancellation directly.
                                                                                <ol>
                                                                                    <li>In case the booking is cancelled more than 3 days (72 hours) before the pick-up time, no penalty will be charged and full advance will be refunded. The only amount deducted would be any transaction charges for refunding your money. </li>
                                                                                    <li>Greater than 24 hours before scheduled pick up time 20% of the advance you paid will be retained as cancellation fees and the balance full advance amount refunded.</li>
                                                                                    <li> 24-12 Hours before scheduled pick up time 20% of the advance you paid will be retained as cancellation fees and the balance full advance amount refunded.</li>
                                                                                    <li> 12-4 Hours before scheduled pick up time 20% Of The Advance You Paid Will Be Retained As Cancellation Fees And The Balance 0% Refunded * Customer can also book online without any advance payment. Our team will call the customer before confirming the booking in this case.For every booking, a car will be assigned at least 4 hours before the trip. The customer will get a email and/or sms confirmation with the car and driver details after the assignment.Customer needs to carry a printout of the booking voucher for Identification.</li>
                                                                                    <li>In case the booking is cancelled after cab reached at pickup point, minimum 250 km is charged for outstation and 50% of 1 day local usage charge (8 hour-80 km) is applicable for local usage charge.</li>
                                                                                </ol>
                                                                            </td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </div>
                                                </div>
                                                <div class="col-sm-12 no-padding margin-top10">
                                                    <?php if ($ticket_type == 'print-sms') { ?>
                                                        <a class="publish_all btn btn-success display-none margin-top10px text-white" onclick="showMailBox()">
                                                            <i class="fa fa-mail-forward "></i>
                                                            Email Ticket
                                                        </a>
                                                        <a class="publish_all btn btn-danger text-white" onclick="ticketSms()">
                                                            <i class="fa fa-mobile"></i>
                                                            SMS
                                                        </a>
                                                        <a class="publish_all btn btn-primary margin-l-5 text-white" onclick="jQuery('#print-demo').print()" id="invoice-print">
                                                            <i class="fa fa-print"></i>
                                                            Print
                                                        </a>
                                                    <?php } else if (($ticket_type == 'cancel-ticket') && (isset($booking_details['status_c'])!=1)) { ?>
                                                        <a class="publish_all btn btn-success display-none margin-top10px text-white" onclick="ticketCancel(<?php echo $booking_details['booking_id']; ?>)">
                                                            <i class="fa fa-mail-forward "></i>
                                                            Cancel Ticket
                                                        </a>
                                                    <?php } ?>
                                                </div>

                                                <div class="col-sm-12 no-padding margin-top10 email_box" style="display: none;">
                                                    <input type="text" name="email" id="email" value="" size="35">
                                                    <a class="publish_all btn btn-success display-none margin-top10px text-white" onclick="ticketMail()">Send</a>
                                                    <div class="email_error" style="color: red; display: none;">Please enter email.</div>
                                                </div>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
<?php } else { ?>
    <div class="center">
        <h2><strong>How to Reach Us?</strong></h2>
    </div>
    <div class="container">
        <div class="row">
            <div class="col-sm-12 text-center">
                  <iframe src="https://maps.google.com/maps/ms?msa=0&amp;msid=211001950410036316718.0004df15470c207210920&amp;ie=UTF8&amp;ll=28.651993,77.194748&amp;spn=0,0&amp;t=m&amp;output=embed" marginwidth="0" marginheight="0" scrolling="no" width="100%" height="350" frameborder="0"></iframe>
            </div>
        </div>
    </div>
<?php } ?>
