<?= $this->layout('_layout', ['title' => $title]); ?>

<main class="main">
    <?= $this->insert('includes/aside_info') ?>
    <div class="content">
        <div class="h2-title h2-title-content flex-s-c">
            <span>My Account</span>
        </div>

        <?= $this->insert('user/_user'); ?><br>

        <div class="p-1 bg-neutral-200/80 mt-16">
            <table class="w-full">
                <tbody class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700">
                    <tr class="bg-white border-b">
                        <td class="px-6 py-4 font-bold text-gray-900">Nome:</td>
                        <td class="px-6 py-4"><?= accountuser()['name'] ?></td>
                    </tr>
                    <tr class="bg-white border-b">
                        <td class="px-6 py-4 font-bold text-gray-900">E-mail:</td>
                        <td class="px-6 py-4"><?= accountuser()['email'] ?></td>
                    </tr>
                    <?php
                    foreach (accountuser()['coins'] as $coin) : ?>
                        <tr class="bg-white border-b">
                            <td class="px-6 py-4 font-bold text-gray-900"><?= $coin['name'] ?>:</td>
                            <td class="px-6 py-4"><?= $coin['amount'] ?></td>
                        </tr>
                    <?php
                    endforeach;
                    ?>
                    <tr class="bg-white border-b">
                        <td class="px-6 py-4 font-bold text-gray-900">Tipo da conta:</td>
                        <td class="px-6 py-4"><?= accountuser()['vip'] ?> ( <?= accountuser()['expiration'] ?> )</td>
                    </tr>
                </tbody>
            </table>

            <!--<div class="h2-title h2-title-content flex-s-c mg-t-20">
                <span>Info Indications</span>
            </div>

            <table class="w-full">
                <tbody class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700">
                    <tr class="bg-white border-b">
                        <td class="px-6 py-4 font-bold text-gray-900">Referral link:</td>
                        <td class="px-6 py-4"><?= accountuser()['link_indication'] ?></td>
                    </tr>
                    <tr class="bg-white border-b">
                        <td class="px-6 py-4 font-bold text-gray-900">Total nominations:</td>
                        <td class="px-6 py-4"><?= accountuser()['indications'] ?></td>
                    </tr>
                </tbody>
            </table> -->
        </div>
    </div>
</main>