<div class="st-form-book-wrapper relative">
    <div class="form-booking-price">
        <div class="st-form-head-book st-service-header2 d-flex justify-content-between align-items-center">
            <div class="st-price-origin d-flex align-self-end">
                <?php if (!empty($info_price['discount']) and $info_price['discount'] > 0 and $info_price['price_new'] > 0) { ?>
                    <div class="tour-sale-box">
                        <?php echo STFeatured::get_sale($info_price['discount']); ?>
                    </div>
                <?php } ?>
                <span class="st-unit align-self-end">
                    <?php echo __("From:", 'traveler');?>
                </span>
                <?php
                echo wp_kses(sprintf(' <span class="price d-flex align-content-end flex-column">%s</span>', STTour::get_price_html(get_the_ID())), ['span' => ['class' => []]]); ?>
            </div>
            <?php if (comments_open() && st()->get_option('activity_tour_review') == 'on') { ?>
                <div class="st-review-score" itemscope itemprop="starRating" itemtype="https://schema.org/Rating">
                    <div class="head d-flex justify-content-between align-items-center clearfix">
                        <div class="left">
                            <div class="reviews">
                                <i class="stt-icon-star1"></i>
                                <span class="rate" itemprop="ratingValue">
                                    <?php echo esc_html($review_rate); ?>
                                </span>
                                <span class="summary">
									(<?php echo sprintf(_n('%s Review', '%s Reviews', get_comments_number(), 'traveler'), get_comments_number())?>)
                                </span>
                            </div>
                        </div>

                    </div>
                </div>
            <?php }?>
        </div>

    </div>
    <?php if($booking_type == 'instant_enquire') { ?>
    <div class="st-wrapper-form-booking <?php echo esc_attr($booking_type);?>">
        <nav>
            <ul class="nav nav-tabs d-flex align-items-center justify-content-between nav-fill-st" id="nav-tab"
                role="tablist">
                <li><a class="active text-center" id="nav-book-tab" data-bs-toggle="tab" data-bs-target="#nav-book"
                       role="tab" aria-controls="nav-home"
                       aria-selected="true"><?php echo esc_html__('Book', 'traveler') ?></a>
                </li>
                <li><a class="text-center" id="nav-inquirement-tab" data-bs-toggle="tab"
                       data-bs-target="#nav-inquirement"
                       role="tab" aria-controls="nav-profile"
                       aria-selected="false"><?php echo esc_html__('Inquiry', 'traveler') ?></a>
                </li>
            </ul>
        </nav>
        <div class="tab-content" id="nav-tabContent">
            <div class="tab-pane fade show active" id="nav-book" role="tabpanel"
                 aria-labelledby="nav-book-tab">
                <?php
                echo stt_elementorv2()->loadView('services/tour/single/item/form-booking-instant', [
                    'info_price' =>$info_price,
                    'tour_external' => $tour_external,
                    'tour_external_link' => $tour_external_link,
                    'tour_type' => $tour_type,
                ]);
                ?>
            </div>

            <div class="tab-pane fade " id="nav-inquirement" role="tabpanel"
                 aria-labelledby="nav-inquirement-tab">
                <div class="inquiry-v2">
                    <?php echo st()->load_template('email/email_single_service'); ?>
                </div>
            </div>
        </div>
    </div>
    <?php } elseif($booking_type == 'enquire') { ?>
        <div class="inquiry-v2">
            <form id="form-booking-inpage" method="post" action="#booking-request" class="tour-booking-form">
                <input type="hidden" name="action" value="tours_add_to_cart">
                <input type="hidden" name="item_id" value="<?php echo get_the_ID(); ?>">
                <input style="display:none;" type="submit" class="btn btn-default btn-send-message" data-id="<?php echo get_the_ID();?>" name="st_send_message" value="<?php echo __('Send message', 'traveler');?>">
            </form>
            <?php echo st()->load_template('email/email_single_service'); ?>
        </div>
    <?php } else {
        echo stt_elementorv2()->loadView('services/tour/single/item/form-booking-instant', [
            'info_price' =>$info_price,
            'tour_external' => $tour_external,
            'tour_external_link' => $tour_external_link,
            'tour_type' => $tour_type,
        ]);

    } ?>
</div>