<?php
$course_id = get_the_ID();
$course_attributes      = get_post_meta($course_id);
$user_id = get_current_user_id();
$redirect_url = '';
if ( class_exists( 'WooCommerce' ) ) { 
    $redirect_url = wc_get_checkout_url();
}   
$monetize_by = isset($tutor_options['monetize_by']) ? $tutor_options['monetize_by'] : '';
$buy_now_icon = 'buy-now-icon-active';
if( $monetize_by == 'tutor') {
    $buy_now_icon = '';
} 
$product_id = $course_id;

?>
 
<div class="rbt-course-action-bottom">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-lg-6 col-md-6">
                <div class="section-title text-center text-md-start">
                    <h5 class="title mb--0"><?php echo esc_html__( 'The Complete Histudy 2025:', 'histudy' ) ?><?php the_title(); ?></h5>
                </div>
            </div>
            <div class="col-lg-6 col-md-6 mt_sm--15">
                <div class="course-action-bottom-right rbt-single-group">
                    <div class="rbt-single-list rbt-price large-size justify-content-center">
                        <?php get_template_part('template-parts/components/price/layout', 1); ?> 
                    </div>
                    <div class="rbt-single-list action-btn">
                        <?php get_template_part('template-parts/components/academylms/add-to-cart'); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div> 