<?php $fields = $block_top_winners->get_fields_validate(); ?>
<?php foreach($tops as $top): ?>
    <?php if (!$rdgb->helpers->validate_fields($fields, $top)) continue; ?>
    <div class="top">
        <div class="separator">
            <div class="top-logo">
                <?php if(!empty($top['image'])): ?>
                    <div class="logo">
                        <?php
                            $top_image = $block_top_winners->get_image($top['image'], [
                                'image_type' => 'top_winner',
                                'image_alt' => $top['handicapper'],
                                'logo_label' => false,
                            ]);
                        ?>
                        <img src="<?php echo $top_image['url']; ?>" alt="<?php echo $top_image['alt']; ?>">
                    </div>
                <?php endif; ?>
                <div class="name"><?php echo $top['handicapper']; ?></div>
            </div>
            <div class="top-win">$<?php echo number_format($top['win'], 0); ?></div>
            <div class="top-dra">$<?php echo number_format($top['net'], 0); ?></div>
        </div>
    </div>
<?php endforeach; ?>
