Editing the contents of modal window

Hello, I just started using this framework.

Currently I am trying to make the contents of a modal text be modifiable from the Pimcore editor, but I do not know how am I supposed to make the modal sections visible when in the editor. Here is some of the code I am working on.

<?php while ($this->block("contentblock")->loop()) { ?>
        <?php 
            $modalTempId = mt_rand(1, 1000) * 5;          
        ?>
        <!-- Services item -->
        <div class="col-md-4 padding-none">
            <div class="services-item wow fadeInDown" data-wow-delay="0.6s">
                <div class="icon">
                    <i class="lni-check-mark-circle"></i>
                </div>
                <div class="services-content">
                    <h3>
                        <a href="#">
                            <?= $this->input("myHeaderItem"); ?>
                        </a>
                    </h3>
                    <p style="margin-bottom: 30px;">
                        <?= $this->input("myHeaderItemSnippet"); ?>
                    </p>
                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalPush<?php echo $modalTempId ?>" style="background-color:#003876;">Leer más</button>
                </div>
            </div>
        </div>
        <!--Modal: modalPush-->
        <div class="modal fade" id="modalPush<?php echo $modalTempId ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
        aria-hidden="true">
            <div class="modal-dialog modal-notify modal-info" role="document">
                <!--Content-->
                <div class="modal-content text-center"style="margin-top:100px;">
                    <!--Header-->
                    <div class="modal-header d-flex justify-content-center">
                        <p class="heading">
                            <?= $this->input("HeadingItem"); ?>
                                   <?php echo $modalTempId ?>
                        </p>
                    </div>

                    <!--Body-->
                    <div class="modal-body">
                        <p>
                            <?= $this->input("myFullTextItem"); ?>
                                 <?php echo $modalTempId ?>
                        </p>
                    </div>

                    <!--Footer-->
                    <div class="modal-footer flex-center">
                        <a type="button" class="btn btn-outline-info waves-effect" data-dismiss="modal">Cerrar</a>
                    </div>
                </div>
                <!--/.Content-->
            </div>
        </div>
        <!--Modal: modalPush-->
    
    <?php } ?>