<div class="page-heading compact">
    <div>
        <span>Потребител</span>
        <h1><?= e($user['name']) ?></h1>
        <p><?= e($user['email']) ?> · <?= e($user['level']) ?></p>
    </div>
    <div class="score-card">
        <small>Citizen score</small>
        <strong><?= e($user['score']) ?></strong>
        <span>История и постижения</span>
    </div>
</div>

<section class="two-column">
    <article class="panel">
        <h2>История</h2>
        <div class="signal-list">
            <?php foreach ($reports as $report): ?>
                <div class="signal-row">
                    <span class="status-dot <?= e(status_class($report['status'])) ?>"></span>
                    <div>
                        <strong>#<?= e($report['id']) ?> <?= e($report['title']) ?></strong>
                        <small><?= e($report['tracking_number']) ?> · <?= e($report['address']) ?></small>
                    </div>
                    <span class="status-pill <?= e(status_class($report['status'])) ?>"><?= e(status_label($report['status'])) ?></span>
                </div>
            <?php endforeach; ?>
        </div>
    </article>
    <aside class="panel">
        <h2>Настройки</h2>
        <div class="settings-list">
            <label><input type="checkbox" checked> Имейл известия</label>
            <label><input type="checkbox" checked> Напомняния за срокове</label>
            <label><input type="checkbox"> Публичен профил</label>
        </div>
        <h2 class="mt-4">Постижения</h2>
        <div class="achievement-list">
            <?php foreach ($user['achievements'] as $achievement): ?>
                <span><i class="bi bi-award"></i> <?= e($achievement) ?></span>
            <?php endforeach; ?>
        </div>
    </aside>
</section>
