<!-- Modal Create -->
<?php if(isset($form_action)): ?>
<div class="modal fade" id="ModalCreate" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form id="form_validation6" action="<?php echo e(route($form_action)); ?>" method="post" autocomplete="off">
                <?php echo e(csrf_field()); ?>

                <?php echo e(method_field('POST')); ?>

                <div class="modal-header">
                    <h4 class="modal-title" id="largeModalLabel">Tambah</h4>
                </div>
                <div class="modal-body">
                    <!-- <input type="hidden" name="researche_id" class="researche_id"> -->
                    <?php $__empty_1 = true; $__currentLoopData = $form; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>


                    <?php if( $item['type'] == 'select'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'chain'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>_change">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'select2'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2_new_modal">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'chained'): ?>


                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>_change">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>

                            </select>

                        </div>
                    </div>
                    <?php elseif($item['type'] == 'tag'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="text" name="<?php echo e($item['name']); ?>" data-role="tagsinput"
                                        class="form-control" autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($item['type'] == 'date'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="date" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($item['type'] == 'daterange'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="text" name="<?php echo e($item['name']); ?>" class="form-control daterange"
                                        autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($item['type'] == 'hidden'): ?>
                    <input type="hidden" name="<?php echo e($item['name']); ?>" value="<?php echo e($item['value']); ?>">
                    <?php else: ?>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="<?php echo e($item['type']); ?>" name="<?php echo e($item['name']); ?>" class="form-control"
                                        autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>


                    <?php endif; ?>


                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>




                    <div class="modal-footer">
                        <button type="submit" class="btn btn-link waves-effect">SAVE</button>
                        <button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>



<?php endif; ?>

<?php if(isset($form_action_upload)): ?>
<div class="modal fade" id="ModalCreate" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form id="form_validation6" action="<?php echo e(route($form_action_upload)); ?>" method="post" autocomplete="off"
                enctype="multipart/form-data">
                <?php echo e(csrf_field()); ?>

                <?php echo e(method_field('POST')); ?>

                <div class="modal-header">
                    <h4 class="modal-title" id="largeModalLabel">Tambah</h4>
                </div>
                <div class="modal-body">
                    <!-- <input type="hidden" name="researche_id" class="researche_id"> -->
                    <?php $__empty_1 = true; $__currentLoopData = $form; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>


                    <?php if( $item['type'] == 'select'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'chain'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>_change">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'select2'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2_new_modal">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>

                    <?php elseif($item['type'] == 'chained'): ?>


                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>_change">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>

                            </select>

                        </div>
                    </div>
                    <?php elseif($item['type'] == 'tag'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="text" name="<?php echo e($item['name']); ?>" data-role="tagsinput"
                                        class="form-control" autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($item['type'] == 'date'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="date" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php elseif($item['type'] == 'daterange'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="text" name="<?php echo e($item['name']); ?>" class="form-control daterange"
                                        autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>

                    <?php elseif($item['type'] == 'file'): ?>




                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <input type="file" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off">

                        </div>
                    </div>
                    <?php elseif($item['type'] == 'hidden'): ?>
                    <input type="hidden" name="<?php echo e($item['name']); ?>" value="<?php echo e($item['value']); ?>">
                    <?php else: ?>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="<?php echo e($item['type']); ?>" name="<?php echo e($item['name']); ?>" class="form-control"
                                        autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>


                    <?php endif; ?>


                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>




                    <div class="modal-footer">
                        <button type="submit" class="btn btn-link waves-effect">SAVE</button>
                        <button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>



<?php endif; ?>


<?php if(isset($form_update)): ?>


<!-- Modal Edit -->
<div class="modal fade" id="ModalEdit" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form id="form_validation6" action="<?php echo e(route($form_update)); ?>" method="post" autocomplete="off">
                <?php echo e(csrf_field()); ?>

                <?php echo e(method_field('POST')); ?>

                <div class="modal-header">

                    <h4 class="modal-title" id="largeModalLabel">Edit</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" name="id" id="id">


                    <?php $__empty_1 = true; $__currentLoopData = $form; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                    <?php if($item['type'] == 'text'): ?>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="<?php echo e($item['type']); ?>" name="<?php echo e($item['name']); ?>" class="form-control"
                                        autocomplete="off" id="<?php echo e($item['name']); ?>">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if($item['type'] == 'password'): ?>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="<?php echo e($item['type']); ?>" name="<?php echo e($item['name']); ?>" class="form-control"
                                        autocomplete="off" id="<?php echo e($item['name']); ?>">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if($item['type'] == 'tag'): ?>


                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="text" name="<?php echo e($item['name']); ?>" data-role="tagsinput"
                                        id="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>

                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if( $item['type'] == 'select'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $items): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                                <option value="<?php echo e($items['id']); ?>"><?php echo e($items['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if( $item['type'] == 'select2'): ?>


                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2_new_modal_edit"
                                id="<?php echo e($item['name']); ?>">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $items): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($items['id']); ?>"><?php echo e($items['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if( $item['type'] == 'date'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <input type="date" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off"
                                id="<?php echo e($item['name']); ?>">

                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if( $item['type'] == 'number'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <input type="number" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off"
                                id="<?php echo e($item['name']); ?>">

                        </div>
                    </div>
                    <?php endif; ?>




                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>

                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-link waves-effect">SAVE</button>
                    <button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>
                </div>
            </form>
        </div>
    </div>
</div>



<?php endif; ?>

<?php if(isset($form_update_upload)): ?>


<!-- Modal Edit -->
<div class="modal fade" id="ModalEdit" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <form action="<?php echo e(route($form_update_upload)); ?>" method="post" enctype="multipart/form-data">
                <?php echo e(csrf_field()); ?>

                <?php echo e(method_field('POST')); ?>

                <div class="modal-header">
                    <h4 class="modal-title" id="largeModalLabel">Edit</h4>
                </div>
                <div class="modal-body">
                    <input type="hidden" name="id" id="id">


                    <?php $__empty_1 = true; $__currentLoopData = $form; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

                    <?php if($item['type'] == 'text'): ?>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group form-float">
                                <div class="form-line">
                                    <input type="<?php echo e($item['type']); ?>" name="<?php echo e($item['name']); ?>" class="form-control"
                                        autocomplete="off" id="<?php echo e($item['name']); ?>">
                                    <label class="form-label"><?php echo e($item['label']); ?></label>
                                </div>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if( $item['type'] == 'select'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2" id="<?php echo e($item['name']); ?>">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>
                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if($item['type'] == 'select2'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <select name="<?php echo e($item['name']); ?>" class="form-control select2_new_modal_edit"
                                id="<?php echo e($item['name']); ?>">
                                <option value="">-- <?php echo e($item['label']); ?> --</option>
                                <?php $__empty_2 = true; $__currentLoopData = $item['option']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_2 = false; ?>

                                <option value="<?php echo e($item['id']); ?>"><?php echo e($item['name']); ?></option>

                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_2): ?>
                                <?php endif; ?>
                            </select>

                        </div>
                    </div>
                    <?php endif; ?>

                    <?php if( $item['type'] == 'date'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <input type="date" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off"
                                id="<?php echo e($item['name']); ?>">

                        </div>
                    </div>
                    <?php endif; ?>
                    <?php if( $item['type'] == 'file'): ?>

                    <label class="form-label"><?php echo e($item['label']); ?></label>
                    <div class="form-group ">
                        <div class="form-line">
                            <input type="file" name="<?php echo e($item['name']); ?>" class="form-control" autocomplete="off"
                                id="<?php echo e($item['name']); ?>">

                        </div>
                    </div>
                    <?php endif; ?>




                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                    <?php endif; ?>

                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-link waves-effect">SAVE</button>
                    <button type="button" class="btn btn-link waves-effect" data-dismiss="modal">CLOSE</button>
                </div>
            </form>
        </div>
    </div>
</div>



<?php endif; ?>

<script>

</script><?php /**PATH /home/sety4218/public_html/sim_pt_setia_raya/resources/views/layouts/edit.blade.php ENDPATH**/ ?>