<?php $item = $row ?? null; ?>
<div class="row g-3">
<div class="col-md-6"><label class="form-label ec-required"><?= e(trans('conference')) ?></label><select name="conference_id" class="form-select rounded-3" required><?php foreach ($conferences as $c): ?><option value="<?= e((string) $c['id']) ?>" <?= ((int) ($item['conference_id'] ?? ($_GET['conference_id'] ?? 0)) === (int) $c['id']) ? 'selected' : '' ?>><?= e(current_lang() === 'ar' ? (string) $c['title_ar'] : (string) $c['title_en']) ?></option><?php endforeach; ?></select></div>
<div class="col-md-3"><label class="form-label"><?= e(trans('capacity')) ?></label><input type="number" name="capacity" class="form-control rounded-3" value="<?= e((string) ($item['capacity'] ?? 0)) ?>"></div>
<div class="col-md-3"><label class="form-label"><?= e(trans('sort_order')) ?></label><input type="number" name="sort_order" class="form-control rounded-3" value="<?= e((string) ($item['sort_order'] ?? 0)) ?>"></div>
<div class="col-md-6"><label class="form-label"><?= e(trans('room_name_en')) ?></label><input type="text" name="room_name_en" class="form-control rounded-3" value="<?= e((string) ($item['room_name_en'] ?? '')) ?>" required></div>
<div class="col-md-6"><label class="form-label"><?= e(trans('room_name_ar')) ?></label><input type="text" name="room_name_ar" class="form-control rounded-3" value="<?= e((string) ($item['room_name_ar'] ?? '')) ?>"></div>
<div class="col-md-6"><label class="form-label">Location EN</label><input type="text" name="location_en" class="form-control rounded-3" value="<?= e((string) ($item['location_en'] ?? '')) ?>"></div>
<div class="col-md-6"><label class="form-label">Location AR</label><input type="text" name="location_ar" class="form-control rounded-3" value="<?= e((string) ($item['location_ar'] ?? '')) ?>"></div>
<div class="col-md-12"><div class="form-check"><input class="form-check-input" type="checkbox" name="is_active" <?= !isset($item) || !empty($item['is_active']) ? 'checked' : '' ?>><label class="form-check-label"><?= e(trans('is_active')) ?></label></div></div>
</div>
