<!-- Premium Package Group -->
<?php if( $premiumPackage['show_block'] == true ): ?>
    <div class="mi_container">
        <div class="mi_header">
        <?php if (isset($premiumPackage['icon_img']) && is_array($premiumPackage['icon_img']) && !empty($premiumPackage['icon_img'])): ?>
            <div class="mi_icon">
                <img src="<?php echo esc_url($premiumPackage['icon_img']['url']); ?>" alt="<?php echo esc_attr($premiumPackage['icon_img']['alt']); ?>">
            </div>
        <?php endif; ?>
            <p class="title"><?php echo $premiumPackage['title']; ?></p>
        </div>
        <div class="mi_body">
            <?php echo $premiumPackage['description']; ?>
        </div>
        <div class="mi_footer">
            <div class="mi_picks"> 
                <?php echo $premiumPackage['picks_availables']; ?>
            </div>
        </div>
        <?php if (isset($premiumPackage['group_details']['url']) && !empty($premiumPackage['group_details']['url'])) { ?>
        <div class="group_details">
            <a href="<?php echo $premiumPackage['group_details']['url']; ?>" <?php if ($premiumPackage['group_details']['target']) { ?> target="<?php echo $premiumPackage['group_details']['target'];?>" <?php }?>><?php echo $premiumPackage['group_details']['title']; ?></a>
        </div>
        <?php  } ?>
    </div>
<?php endif; ?>

<!-- Classic Group -->
<?php if( $classicPackage['show_block'] == true ): ?>
    <div class="mi_container">
        <div class="mi_header">
            <?php if (isset($classicPackage['icon_img']) && is_array($classicPackage['icon_img']) && !empty($classicPackage['icon_img'])): ?>
            <div class="mi_icon">
                <img src="<?php echo esc_url($classicPackage['icon_img']['url']); ?>" alt="<?php echo esc_attr($classicPackage['icon_img']['alt']); ?>">
            </div>
            <?php endif; ?>
            <p class="title"><?php echo $classicPackage['title']; ?></p>
        </div>
        <div class="mi_body">
            <?php echo $classicPackage['description']; ?>
        </div>
        <div class="mi_footer">
            <div class="mi_picks"> 
                <?php echo $classicPackage['picks_availables']; ?>
            </div>
        </div>
        <?php if (isset($classicPackage['group_details']['url']) && !empty($classicPackage['group_details']['url'])) { ?>
        <div class="group_details">
            <a href="<?php echo $classicPackage['group_details']['url']; ?>" <?php if ($classicPackage['group_details']['target']) { ?> target="<?php echo $classicPackage['group_details']['target'];?>" <?php }?>><?php echo $classicPackage['group_details']['title']; ?></a>
        </div>
        <?php  } ?>
    </div>
<?php endif; ?>

<!-- Starter Plus Group -->
<?php if( $starterPlusPackage['show_block'] == true ): ?>
    <div class="mi_container">
        <div class="mi_header">
        <?php if (isset($starterPlusPackage['icon_img']) && is_array($starterPlusPackage['icon_img']) && !empty($starterPlusPackage['icon_img'])): ?>
            <div class="mi_icon">
                <img src="<?php echo esc_url($starterPlusPackage['icon_img']['url']); ?>" alt="<?php echo esc_attr($starterPlusPackage['icon_img']['alt']); ?>">
            </div>
            <?php endif; ?>
            <p class="title"><?php echo $starterPlusPackage['title']; ?></p>
        </div>
        <div class="mi_body">
            <?php echo $starterPlusPackage['description']; ?>
        </div>
        <div class="mi_footer">
            <div class="mi_picks"> 
                <?php echo $starterPlusPackage['picks_availables']; ?>
            </div>
        </div>
        <?php if (isset($starterPlusPackage['group_details']['url']) && !empty($starterPlusPackage['group_details']['url'])) { ?>
        <div class="group_details">
            <a href="<?php echo $starterPlusPackage['group_details']['url']; ?>" <?php if ($starterPlusPackage['group_details']['target']) { ?> target="<?php echo $starterPlusPackage['group_details']['target'];?>" <?php }?>><?php echo $starterPlusPackage['group_details']['title']; ?></a>
        </div>
        <?php  } ?>
    </div>
<?php endif; ?>

<!-- Starter Package Group -->
<?php if( $starterPackage['show_block'] == true ): ?>
    <div class="mi_container">
        <div class="mi_header">
        <?php if (isset($starterPackage['icon_img']) && is_array($starterPackage['icon_img']) && !empty($starterPackage['icon_img'])): ?>
            <div class="mi_icon">
                <img src="<?php echo esc_url($starterPackage['icon_img']['url']); ?>" alt="<?php echo esc_attr($starterPackage['icon_img']['alt']); ?>">
            </div>
            <?php endif; ?>
            <p class="title"><?php echo $starterPackage['title']; ?></p>
        </div>
        <div class="mi_body">
            <?php echo $starterPackage['description']; ?>
        </div>
        <div class="mi_footer">
            <div class="mi_picks"> 
                <?php echo $starterPackage['picks_availables']; ?>
            </div>
        </div>
        <?php if (isset($starterPackage['group_details']['url']) && !empty($starterPackage['group_details']['url'])) { ?>
        <div class="group_details">
            <a href="<?php echo $starterPackage['group_details']['url']; ?>" <?php if ($starterPackage['group_details']['target']) { ?> target="<?php echo $starterPackage['group_details']['target'];?>" <?php }?>><?php echo $starterPackage['group_details']['title']; ?></a>
        </div>
        <?php  } ?>
    </div>
<?php endif; ?>