<h1 class="title"><?= __('Vote Reward') ?></h1>

<ul class="breadcrumber">
    <li><a href="<?= url_to('/') ?>" data-ajax><?= __('Home') ?></a></li>
    <li class="active"><?= __('Vote Reward') ?></li>
</ul>

<?= flash() ?>

<div class="vote-reward">
    <?php foreach ($providers as $provider): ?>
        <div class="vote-reward-provider">
            <div class="name">
                <?php if (!empty($provider['image'])): ?>
                    <img src="<?= upload_to('/vote_reward_providers/' . $provider['image']) ?>" title="<?= $provider['name'] ?>" alt="<?= $provider['name'] ?>">
                <?php else: ?>
                    <?= $provider['name'] ?>
                <?php endif ?>
            </div>

            <div class="vote">
                <a href="<?= url_to('/vote/' . $provider['id']) ?>" class="btn" target="_blank"><?= __('Vote') ?></a>
            </div>
        </div>
    <?php endforeach ?>
</div>
