<?php if ( count( wjc_languages() ) > 1 ): ?>

<div class="row ">
        <div class="heading">
                <?php _e( 'Languages', 'woo_j_cart' ) ?>
        </div>
        <div class="option has-attribute flex-row-start wrap" style="gap:10px;margin:0px;">
                        <?php foreach( wjc_languages() as $locale => $lang_data ): ?>

                                <label class="standard-checkbox">
                                        <input <?php echo ( in_array( $locale, $item_languages ) ) ? 'checked' : '' ?> name='languages[]' value="<?php echo $locale?>" type="checkbox" class="has-text">                                                                                              
                                        <span><img src="<?php echo WC_J_UPSELLATOR_PLUGIN_URL ?>assets/img/flags/<?php echo $lang_data['slug'] ?>.png"><?php echo $lang_data['name'] ?></span>
                                </label>  

                        <?php endforeach; ?>

                                        
        </div>
        <div class="tips">
                <?php _e( 'Select on which language the upsell should be displayed. Keep all unchecked to have all languages active.', 'woo_j_cart' ) ?>
        </div>
</div>

<?php endif; ?>