<?php 
/**
 * The template for displaying the Slider section on home page
 *
 *
 * Learn more: https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package Probizz
 */
?>
    <div id="masterslider" class="master-slider ms-skin-default">
        <?php if ( get_theme_mod( 'nineteen_slider_data' ) ) { ?>
        <?php $name_arr = unserialize( get_theme_mod( 'nineteen_slider_data' ) );
        foreach ( $name_arr as $key => $value ) { ?>
        <div class="ms-slide" data-delay="5" data-fill-mode="fill">
            <?php if ( ! empty ( $value['slider_image'] ) ) : ?>
            <img src="<?php echo esc_url($value['slider_image']); ?>" alt="<?php if ( ! empty ( $value['slider_name'] ) ) { echo esc_html($value['slider_name']); } ?>"/>
            <?php endif; ?>
            <?php if ( ! empty ( $value['slider_name'] ) ) : ?>
                    <div class="ms-layer msp-cn-136-15"  data-duration="2000" data-delay="600" data-ease="easeOutQuart" data-offset-x="38" data-offset-y="84" data-origin="ml" data-position="normal" data-masked="true"><?php echo esc_html($value['slider_name']); ?></div>
            <?php endif ?>
            <?php if ( ! empty ( $value['slider_desc'] ) ) : ?>
                    <div class="ms-layer msp-cn-136-17"  data-duration="1600" data-delay="1600" data-ease="easeOutQuart" data-offset-x="38"     data-offset-y="185" data-origin="ml" data-position="normal"><?php echo esc_html($value['slider_desc']); ?>
                  </div>
            <?php endif ?>
        </div>
        <?php } } ?>
    </div>