<?php foreach ($leaders as $leader): ?>
    <div class="item">
        <span><?php echo $leader->rank; ?></span>
        <span class="name">
            <?php if (isset($leader->handicapper_detail_url) && !empty($leader->handicapper_detail_url)): ?>
                <a href="<?php echo $leader->handicapper_detail_url; ?>">
            <?php endif; ?>
            <?php echo $leader->name; ?>
            <?php if (isset($leader->handicapper_detail_url) && !empty($leader->handicapper_detail_url)): ?>
                </a>
            <?php endif; ?>
        </span>
        <span><?php echo $leader->TotalBets; ?></span>
        <span><?php echo $leader->Win; ?></span>
        <span><?php echo $leader->Loss; ?></span>
        <span><?php echo $leader->Push; ?></span>
        <span><?php echo number_format($leader->WinPercentaje, 2, '.', ','); ?>%</span>
        <span>$<?php echo number_format($leader->WinAmount, 2, '.', ','); ?></span>
        <span>$<?php echo number_format($leader->RiskAmount, 2, '.', ','); ?></span>
        <span>$<?php echo number_format($leader->Net, 2, '.', ','); ?></span>
    </div>
<?php endforeach; ?>