<?php $item = $row ?? null; ?>
<div class="row g-3">
    <div class="col-md-3">
        <label class="form-label ec-required"><?= e(trans('lang_code')) ?></label>
        <select name="lang_code" class="form-select rounded-3" required>
            <option value="en" <?= (($item['lang_code'] ?? '') === 'en') ? 'selected' : '' ?>>en</option>
            <option value="ar" <?= (($item['lang_code'] ?? '') === 'ar') ? 'selected' : '' ?>>ar</option>
        </select>
    </div>
    <div class="col-md-4">
        <label class="form-label ec-required"><?= e(trans('dict_key')) ?></label>
        <input type="text" name="dict_key" class="form-control rounded-3" value="<?= e((string) ($item['dict_key'] ?? '')) ?>" required>
    </div>
    <div class="col-md-5">
        <label class="form-label ec-required"><?= e(trans('group_name')) ?></label>
        <input type="text" name="group_name" class="form-control rounded-3" value="<?= e((string) ($item['group_name'] ?? '')) ?>">
    </div>
    <div class="col-md-12">
        <label class="form-label ec-required"><?= e(trans('dict_value')) ?></label>
        <textarea name="dict_value" class="form-control rounded-3" rows="4" required><?= e((string) ($item['dict_value'] ?? '')) ?></textarea>
    </div>
</div>
