<section class="widget">
    <div class="body">

        <table class="table-bordered" style="width: 50%;">
            <tbody><tr>
                <td class="no-bg" rowspan="10" style="text-align: center;">
                    <img src="{$Guild[0].G_Mark}" />
                </td>
                <th>Название</th>
                <td>{$Guild[0].G_Name}</td>
            </tr>
            <tr>
                <th>Лидер</th>
                <td>{$Guild[0].G_Master}</td>
            </tr>
            <tr>
                <th>Очков</th>
                <td>{$Guild[0].G_Score}</td>
            </tr>
            <tr>
                <th>Альянс</th>
                <td>
                    {if $Guild[0].Aliance == ''}
                        -/-
                    {else}
                        <a href="/statistic/guild/{$Guild[0].Aliance}">{$Guild[0].Aliance}</a>
                    {/if}
                </td>
            </tr>
            </tbody></table>

        <table class="table table-hover">
            <thead>
            <tr>
                <th>№</th>
                <th>Ник</th>
                <th>Класс</th>
                <th>Уровень</th>
                <th>Ресет</th>
                <th>Гранд Ресет</th>
                <th>Статус</th>
            </tr>
            </thead>
            <tbody>
            {$i = 1}
            {foreach $Guild as $member}
                <tr>
                {if $member.Online}
                    <td style="background: green;">{$i}</td>
                {else}
                    <td style="background: rgba(187, 81, 81, 0.31);">{$i}</td>
                {/if}
                <td><a>{$member.Name}</a></td>
                {if $member.PremiumTime > 0}
                    <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                    <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                    <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                    <td><img src="/web/templates/default/images/hide.png" height="20" alt=""></td>
                {else}
                    <td>{Character::GetClassName($member.Class)}</td>
                    <td>{$member.cLevel}</td>
                    <td>{$member.Resets}</td>
                    <td>{$member.GrandResets}</td>
                {/if}
                <td>{$member.G_Status}</td>
            </tr>
            {$i=$i+1}
            {/foreach}
            </tbody>
        </table>

    </div>
</section>

