<?php

if (!$contentData || !isset($contentData['value'])) {
    $contentData = [
        'value' => ''
    ];
}
$formID = rand(0, 100000);
?>
<div id="ros_{{$formID}}">
    <input type="hidden" name="data" value="{{json_encode(['value'=>$contentData['value']])}}">
    <?php if (isset($section)) : ?>
        <input type="hidden" name="section_uid" value="<?= $section->uid ?>">
    <?php endif; ?>
    <div class="form-group mb-2">
        <div note-rte note-rte-ros data-content="{{$contentData['value']}}" class="form-group mb-2 border-left border-right rte-holder"></div>
    </div>
</div>
