<?php //echo '<pre>';print_r($bookingInfo);//die();?>
<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 tours">
                                        <h2 class="modal-title">Booking Detail</h2>

                                        <div class="widthpersent100 pull-left">
                                            <div class="row">
                                                <div class="col-sm-12 no-padding margin-top10 pay-booking">
                                                    <div class="form-group">
                                                        <div class="col-sm-1">

                                                            <label class="col-sm-12 no-padding">Date</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><?php echo date('d-m-Y', strtotime($bookingInfo['ordertime'])) ?></div>
                                                        </div>

                                                        <div class="col-sm-1">

                                                            <label class="col-sm-12 no-padding">Time</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><?php echo date('H:i:s', strtotime($bookingInfo['ordertime'])) ?></div>
                                                        </div>

                                                        <div class="col-sm-2">

                                                            <label class="col-sm-12 no-padding">Booking</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><?php echo $bookingInfo['ref'];?></div>
                                                        </div>

                                                        <div class="col-sm-2">

                                                            <label class="col-sm-12 no-padding">Booking Type</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><?php echo $bookingInfo['booking_type'];?></div>
                                                        </div>

                                                        <div class="col-sm-2">

                                                            <label class="col-sm-12 no-padding">Client</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><?php echo $bookingInfo['clientname'];?></div>
                                                        </div>
                                                        <div class="col-sm-2">

                                                            <label class="col-sm-12 no-padding">Total Amt.</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><i class="fa fa-inr"></i> <?php echo $bookingInfo['estimated_final_price'];?></div>
                                                        </div>
                                                        <div class="col-sm-1">

                                                            <label class="col-sm-12 no-padding">Paid</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><i class="fa fa-inr"></i> <?php echo $bookingInfo['booking_amt_paid'];?></div>
                                                        </div>
                                                        <div class="col-sm-1">

                                                            <label class="col-sm-12 no-padding">Balance</label>
                                                            <div class="col-sm-12 no-padding margin-top-5"><i class="fa fa-inr"></i> <?php echo $bookingInfo['booking_amt_balance'];?></div>
                                                        </div>
                                                    </div>

                                                    <?php if($bookingInfo['booking_amt_balance']!=0){?>

                                                    <form method="post" name="checkout-form" action="<?php echo $this->url('checkout'); ?>" id="vehicle-checkout-form">

                                                    <div class="form-group">
                                                        <div class="col-sm-12 traveler_space">


                                                            <div class="row margin-bot10px">
                                                                <div class="col-sm-12 text-left">
                                                                    <h2>Payment Details</h2>
                                                                </div>
                                                                <div class="left-div-form margin-bttom10px margin-top20">
                                                                    <?php if($walletData!="") { ?>
                                                                    <div class="col-sm-5">
                                                                        <input type="checkbox" name="wallet_amount" id="wallet-amount" checked="checked" value="1">
                                                                        <label class="booking-check col-sm-4">Use Wallet Amount ( <i class="fa fa-inr"></i> <?php echo $walletData; ?> )</label>
                                                                    </div>
                                                                    <?php }?>
                                                                </div>
                                                                <div class="form-group">

                                                                    <?php if($bookingInfo['booking_amt_balance']>=$bookingInfo['fifty_percent']) { ?>
                                                                    <div class="col-sm-12 margin-bot10px">
                                                                        <div class="carbooking padding-left47px">
                                                                             <input type="radio" name="booking_amt_percentage" id="payment1" checked="checked" value="25">
                                                                            <label for="payment1"><span class="radio">Pay 25% (<i class="fa fa-inr"></i> <?php echo $bookingInfo['twenty_five_percent']; ?>/-) now and rest before trip start </span></label>
                                                                        </div>
                                                                    </div>
                                                                    <?php } if($bookingInfo['booking_amt_balance']>$bookingInfo['fifty_percent']) {?>
                                                                    <div class="col-sm-12 margin-bot10px">
                                                                        <div class="carbooking padding-left47px">
                                                                            <input type="radio" name="booking_amt_percentage" id="payment2" value="50">
                                                                            <label for="payment2"><span class="radio"> Pay 50% (<i class="fa fa-inr"></i> <?php echo $bookingInfo['fifty_percent']; ?>/-) now and rest before trip Start </span></label>
                                                                        </div>
                                                                    </div>
                                                                    <?php }?>

                                                                    <div class="col-sm-12 margin-bot10px">
                                                                        <div class="carbooking padding-left47px">
                                                                            <input type="radio" name="booking_amt_percentage" id="payment3" <?php if($bookingInfo['booking_amt_balance']<$bookingInfo['fifty_percent']) { ?>checked="checked"<?php }?> value="100">
                                                                            <label for="payment3"><span class="radio">Pay full amount (<i class="fa fa-inr"></i> <?php echo $bookingInfo['booking_amt_balance']; ?>/-) now </span></label>
                                                                        </div>
                                                                    </div>



                                                                </div>
                                                            </div>
                                                            <div class="col-sm-4 no-padding traveler_space margin-bot20px">
                                                                <input name="book_now" id="book-now" class="btn btn-lg col-sm-12 btn-danger modify_search_but font-size18" value="Pay" type="submit">
                                                            </div>
                                                        </div>
                                                    </div>

                                                    </form>

                                                    <?php }?>

                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

    </div>

</section>