<?php $title = 'Edit Homepage Section'; ?>

<div class="container py-5">

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

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

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

Edit Homepage Section

</h2>

<form
method="post"
action="/easychair/admin/homepage-sections/update">

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

<div class="row g-4">

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

<label class="form-label">
English Title
</label>

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

</div>

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

<label class="form-label">
Arabic Title
</label>

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

</div>

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

<label class="form-label">
Theme Name
</label>

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

</div>

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

<label class="form-label">
Icon Class
</label>

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

</div>

<div class="col-12">

<div class="form-check">

<input
type="checkbox"
class="form-check-input"
name="enabled"
value="1"
<?= !empty($section['enabled'])
? 'checked'
: ''
?>>

<label class="form-check-label">

Enabled

</label>

</div>

</div>

<div class="col-12">

<button class="btn btn-dark rounded-pill px-5">

Save Changes

</button>

</div>

</div>

</form>

</div>
</div>
</div>
