<?php
    if( ! defined( 'ABSPATH') ) die('No Access here');
    use RafflePlayWoo_Includes\RafflePlayWoo_Includes as RafflePlayWoo_Includes;
?>

<!-- restrict order tab-->
<div class="tab-pane fade" id="v-pills-restrictordertab" role="tabpanel" aria-labelledby="v-pills-restrictordertab-tab">  

    <h5>                                        
        <?php
            esc_html_e('Restrict One Order per Raffle per Cutomer', 'raffle-play-woo');
        ?>
    </h5> 
    
    <p>
        <?php esc_html_e('Only in Premium version', 'raffle-play-woo');  RafflePlayWoo_Includes::rpwoo_premium_image(); ?> 
    </p>

    <p>
        <?php
            esc_html_e('See explanation and demo here', 'raffle-play-woo');
        ?> 
        <a href="https://youtu.be/w0RC2Pp-Bag" target='_blank'> Video </a>
    </p>
    <span>
        <i style='font-size: 10px'>
            (
            <?php esc_html_e('Restrict Order is set per raffle. You need to enable for each raffle independently', 'raffle-play-woo');?>
            )
        </i> 
    </span>

    <div class='row bmp-set-row' >
        <div class="col-sm-5 " > 
            <?php esc_html_e('Enable Restrict One Order for this Raffle', 'raffle-play-woo'); ?> 
        </div>
    
                                     
        <div class="col-sm-7" >                               
            <input type="checkbox" id="restrict_order_raffle" 
                data-toggle='toggle' 
                data-on="<?php esc_html_e('Yes', 'raffle-play-woo');?>" 
                data-off="<?php esc_html_e('No', 'raffle-play-woo');?>" 
                disabled data-size='small'/>
        </div>         
       
    </div>


    <h5>
        <?php esc_html_e('Restrict Order by:', 'raffle-play-woo');?> 
    </h5>

    <div class='row bmp-set-row' >
        <div class="col-sm-5 " > 
            <?php esc_html_e('Email', 'raffle-play-woo'); ?> 
        <p>
            <?php
                esc_html_e('Do you want to restict the order by phone number, first name, etc. Watch video ', 'raffle-play-woo');
            ?> 
            <a href="https://youtu.be/w0RC2Pp-Bag" target='_blank'> Video </a>
        
        </p>
        </div>
    
                                     
        <div class="col-sm-7" >                               
            <input type="checkbox" id="restrict_order_email" disabled
                data-toggle='toggle' 
                data-on="<?php esc_html_e('Yes', 'raffle-play-woo');?>" 
                data-off="<?php esc_html_e('No', 'raffle-play-woo');?>" 
                disabled data-size='small'/>
        </div>         
       
    </div>

    <div class='row bmp-set-row' >
        <div class="col-sm-5 " > 
            <?php esc_html_e('Message (include %s to specify the name of the raffle)', 'raffle-play-woo'); ?> 
        </div>
    
                                     
        <div class="col-sm-7" >                               
            <input type="text" id="restrict_order_message" style='width: 100%' readonly
                value="Your have already placed an order for this raffle: %s"
            />           
        </div>      
       
    </div>


</div> <!-- end of product raffle tab -->