<div class="container py-5">

    <h2 class="mb-4">
        Select Conference
    </h2>

    <div class="row">

        <?php foreach($reviewerConferences as $c): ?>

            <div class="col-md-4 mb-4">

                <div class="card shadow-sm border-0 rounded-4">

                    <div class="card-body">

                        <h5 class="fw-bold">

                            <?= htmlspecialchars(
                                $c['title_en']
                                ?? $c['title_ar']
                                ?? ''
                            ) ?>

                        </h5>

                        <div class="text-muted small mb-3">

                            <?= htmlspecialchars(
                                $c['short_name']
                                ?? ''
                            ) ?>

                        </div>

                        <a
                        href="/easychair/reviewer/switch-conference?id=<?= (int)$c['id'] ?>"
                        class="btn btn-primary rounded-pill">

                            Open Reviewer Dashboard

                        </a>

                    </div>

                </div>

            </div>

        <?php endforeach; ?>

    </div>

</div>
