<div class="title1">
<img src="/web/templates/Freyamu/images/vote.png">
</div>
{if $VoteConfig.MMOTop.Enable}
{if empty($ListVote.MMOTop)}
    <center><p>Список голосов с MMOTop пуст</p></center>
{else}
    <table width="100%">
        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="3">Голоса от MMOTop</td></tr>
        <tr>
            <th>Дата голосования</th>
            <th>Время голосования</th>
            <th>Тип голоса</th>
        </tr>

        {foreach $ListVote.MMOTop as $value}
            <tr>
                <td class="vote-date">{$value[1]}</td>
                <td class="vote-time">{$value[2]}</td>
                <td class="vote-type">{$value.Valutes.Type}</td>
            </tr>
            <tr>
                <td colspan="3">
                    <form action="/user/vote" method="post">
                        <button class="button-reward-vote" type="submit" name="mmotop_vote_id" value="{$value[0]}">
                            {$i=0}
                            {foreach $Valutes as $valute}
                                {if ($valute.Name != '' && $value.Valutes.Count[$i] > 0)}
                                <span>{$valute.Name}: {$value.Valutes.Count[$i]} </span>
                                {/if}
                                {$i=$i+1}
                            {/foreach}
                        </button>
                    </form>
                </td>
            </tr>
        {/foreach}
    </table>
{/if}
{/if}
<br><br>
{if $VoteConfig.QTop.Enable}
{if empty($ListVote.QTop)}
    <center><p>Список голосов с QTop пуст</p></center>
{else}
    <table width="100%">
        <tr><td style=" text-align: center; font-weight: bold; padding: 3px; background-color: rgba(230,230,230,0.05);" colspan="3">Голоса от QTop</td></tr>
        <tr>
            <th>Дата голосования</th>
            <th>Время голосования</th>
            <th>Тип голоса</th>
        </tr>
        {foreach $ListVote.QTop as $value}
            <tr>
                <td class="vote-date">{$value.date}</td>
                <td class="vote-time">{$value.time}</td>
                <td class="vote-type">{$value.Valutes.Type}</td>
            </tr>
            <tr>
                <td colspan="3">
                    <form action="/user/vote" method="post">
                        <button class="button-reward-vote" type="submit" name="qtop_vote_id" value="{$value.id}">
                            Получить награду:
                            {$i=0}
                            {foreach $Valutes as $valute}
                                {if ($valute.Name != '' && $value.Valutes[$i] > 0)}
                                <span>{$valute.Name}: {$value.Valutes[$i]}</span>
                                {/if}
                                {$i=$i+1}
                            {/foreach}
                        </button>
                    </form>
                </td>
            </tr>
        {/foreach}
    </table>
{/if}
{/if}