<?php $title = 'Conference Venues'; ?>

<div class="container-fluid py-4">

<div class="d-flex justify-content-between align-items-center mb-4">

<h1 class="fw-bold">

Conference Venues

</h1>

<a
href="/easychair/admin/venues/create"
class="btn btn-dark rounded-pill">

Add Venue

</a>

</div>

<div class="row g-4">

<?php foreach($venues as $v): ?>

<div class="col-lg-4">

<div class="card border-0 shadow-lg rounded-4 overflow-hidden h-100">

<?php if(!empty($v['image_path'])): ?>

<img
src="/easychair/public/<?= htmlspecialchars($v['image_path']) ?>"
style="
height:240px;
width:100%;
object-fit:cover;
">

<?php endif; ?>

<div class="card-body p-4">

<h4 class="fw-bold">

<?= htmlspecialchars($v['venue_name'] ?? '') ?>

</h4>

<div class="text-muted mb-2">

<?= htmlspecialchars($v['city'] ?? '') ?>
,
<?= htmlspecialchars($v['country'] ?? '') ?>

</div>

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

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

</div>

<a
href="/easychair/admin/venues/delete?id=<?= (int)$v['id'] ?>"
class="btn btn-outline-danger rounded-pill">

Delete

</a>

</div>

</div>

</div>

<?php endforeach; ?>

</div>

</div>
