<div class="owner-info st-sent-mail-customer">
    <?php echo st()->load_template( 'layouts/modern/common/loader' ); ?>
    <?php
        $get_post_type = get_post_type();
        switch ($get_post_type) {
            case 'st_hotel':
                    $type_service = __('Hotel','traveler');
                break;
            case 'hotel_room':
                    $type_service = __('Hotel Room','traveler');
                break;
            case 'st_rental':
                    $type_service = __('Rental','traveler');
                break;
            case 'rental_room':
                    $type_service = __('Rental Room','traveler');
                break;
            case 'st_activity':
                    $type_service = __('Activity','traveler');
                break;
            case 'st_tours':
                    $type_service = __('Tours','traveler');
                break;
            case 'st_cars':
                    $type_service = __('Cars','traveler');
                break;
            default:
                # code...
                break;
        }
        $author_id = get_post_field( 'post_author', get_the_ID() );
        $email_owl = get_the_author_meta('user_email',$author_id);
        $short_code_inquiry=st()->get_option('inquiry_shortcode','');
        if(isset($short_code_inquiry) && !empty($short_code_inquiry)){
    ?>
        <!-- <h4 class="heading"><?php echo __( 'Inquirement', 'traveler' ) ?></h4> -->
        <div class="media form-st-send-mail">
            <div class="st_send-mail-form">
                <div class="form-wrapper">
                    <div class="row">
                        <div class="col-md-12 col-xs-12">
                            <div class="form-group">
                            <?php echo do_shortcode(''.$short_code_inquiry.'') ?>
                            </div>

                        </div>
                    </div>

                </div>

            </div>
        </div>
    <?php } else {?>
        <div class="media form-st-send-mail">
            <form class="st_send-mail-form" method="GET" action="">
				<input type="hidden" name="id_service" value="<?= get_the_ID() ?>">
                <input type="hidden" name="type_service" value="<?php echo esc_attr($type_service);?>">
                <input type="hidden" name="name_service" value="<?php the_title();?>">
                <input type="hidden" name="email_owl" value="<?php echo esc_attr($email_owl);?>">
                <div class="form-wrapper">
                    <div class="row">
                        <div class="col-md-12 col-xs-12">
                            <div class="form-group">
                                <input type="text" required class="form-control" name="name_st" placeholder="<?php echo __('Name *','traveler');?>">
                            </div>
                            <div class="form-group">
                                <input type="email" required class="form-control" name="email_st" placeholder="<?php echo __('Email *','traveler');?>">
                            </div>
                            <div class="form-group">
                                <input type="tel" required class="form-control" name="phone_st" placeholder="<?php echo __('Phone *','traveler');?>">
                            </div>
                            <div class="form-group st_note_send_email">
                                <textarea name="content_st" class="form-control" placeholder="<?php echo __('Note *','traveler');?>"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="text-center">
                        <input id="submit" type="submit"  name="submit" class="btn btn-primary btn-green upper font-small sent-email-st" value="<?php echo __('Send','traveler');?>">
                    </div>
                    <div class="message-wrapper-sendemail mt30"></div>
                </div>
            </form>
        </div>
    <?php }?>
</div>