<?php $section = $sections['section_1'] ?? []; ?>

<form method="post" action="<?php echo site_url('admin/product/save_section'); ?>" enctype="multipart/form-data">
    <input type="hidden" name="prd_id" value="<?php echo $product['prd_id']; ?>">
    <input type="hidden" name="section_key" value="section_1">


    <div class="form-group"><label>Title</label><input name="title" class="form-control" value="<?php echo $section['title'] ?? ''; ?>"></div>
    <div class="form-group"><label>Bullet Points</label><textarea name="points" rows="4" class="form-control"><?php echo isset($section['points']) ? implode("
", $section['points']) : ''; ?></textarea><small>Enter each line as a bullet</small></div>
    <button class="btn btn-success">Save</button>
</form>