<?php $item = $row ?? null; ?>
<div class="row g-3">
    <div class="col-md-6">
        <label class="form-label"><?= e(trans('setting_key')) ?></label>
        <input type="text" name="setting_key" class="form-control rounded-3" value="<?= e((string) ($item['setting_key'] ?? '')) ?>" required>
    </div>
    <div class="col-md-6">
        <label class="form-label"><?= e(trans('setting_group')) ?></label>
        <input type="text" name="setting_group" class="form-control rounded-3" value="<?= e((string) ($item['setting_group'] ?? '')) ?>">
    </div>
    <div class="col-md-12">
        <label class="form-label"><?= e(trans('setting_value')) ?></label>
        <textarea name="setting_value" class="form-control rounded-3" rows="5"><?= e((string) ($item['setting_value'] ?? '')) ?></textarea>
    </div>
    <div class="col-md-12">
        <div class="form-check">
            <input class="form-check-input" type="checkbox" name="is_public" id="is_public" <?= !empty($item['is_public']) ? 'checked' : '' ?>>
            <label class="form-check-label" for="is_public"><?= e(trans('is_public')) ?></label>
        </div>
    </div>
</div>
