<?php

use WoWPress\Frontend\Icon;

?>

<div class="bg-glass shadow p-auto order-last flex flex-col gap-2">
    <h3 class="text-xl font-bold text-center"><?= $this->title ?></h3>
    <?php
    foreach($this->getList() as $bday):
        ?>
        <div class="flex bg-opacity-20 odd:bg-opacity-10 p-2 flex-row items-center gap-1 <?=$bday['party']?"text-alliance bg-alliance":"bg-blue-500"?>">
            <span class="flex-grow"><?=$bday['user']?></span>
            <?=$bday['party']?Icon::get('o-cake','1.5em'):'<div class="w-[1.5em] aspect-1"></div>'?>
            <span><?=$bday['next']?></span>
            <span>(<?=$bday['age']?>)</span>
        </div>
        <?php
    endforeach;
    ?>
</div>