<div class="container py-4">

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

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

<h2 class="fw-bold mb-4">

Edit Conference Theme

</h2>

<form
method="post"
action="/easychair/admin/conference-themes/update"
>

<input
type="hidden"
name="id"
value="<?= (int)$theme['id'] ?>"
>

<div class="row g-4">

<div class="col-md-6">

<label class="form-label fw-bold">

Theme Name (English)

</label>

<input
type="text"
name="name_en"
class="form-control"
required
value="<?= htmlspecialchars($theme['name_en'] ?? '') ?>"
>

</div>

<div class="col-md-6">

<label class="form-label fw-bold">

اسم المحور (عربي)

</label>

<input
type="text"
name="name_ar"
class="form-control"
required
value="<?= htmlspecialchars($theme['name_ar'] ?? '') ?>"
>

</div>

<div class="col-md-6">

<label class="form-label fw-bold">

Description (English)

</label>

<textarea
name="description_en"
class="form-control"
rows="6"
><?= htmlspecialchars($theme['description_en'] ?? '') ?></textarea>

</div>

<div class="col-md-6">

<label class="form-label fw-bold">

الوصف (عربي)

</label>

<textarea
name="description_ar"
class="form-control"
rows="6"
><?= htmlspecialchars($theme['description_ar'] ?? '') ?></textarea>

</div>

<div class="col-md-3">

<label class="form-label fw-bold">

Max Reviewers

</label>

<input
type="number"
name="max_reviewers"
class="form-control"
value="<?= (int)($theme['max_reviewers'] ?? 3) ?>"
>

</div>

<div class="col-md-3">

<label class="form-label fw-bold">

Min Reviewers

</label>

<input
type="number"
name="min_reviewers"
class="form-control"
value="<?= (int)($theme['min_reviewers'] ?? 2) ?>"
>

</div>

<div class="col-md-3">

<label class="form-label fw-bold">

Status

</label>

<select
name="is_active"
class="form-select"
>

<option
value="1"
<?= (int)($theme['is_active'] ?? 1) === 1 ? 'selected' : '' ?>
>

Active

</option>

<option
value="0"
<?= (int)($theme['is_active'] ?? 1) === 0 ? 'selected' : '' ?>
>

Hidden

</option>

</select>

</div>

</div>

<div class="mt-4">

<button
class="btn btn-primary rounded-pill px-4"
>

<i class="fa fa-save"></i>

Save Changes

</button>

<a
href="/easychair/admin/conference-themes"
class="btn btn-light rounded-pill px-4"
>

Back

</a>

</div>

</form>

</div>

</div>

</div>
