<?php $__env->startSection('content'); ?>




<div class="row clearfix">
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
        <div class="card">
            <div class="header">
                <h2>
                    <?php echo e($pageTitle); ?>

                </h2>

                <ul class="header-dropdown m-r--5">
                    <li class="dropdown">


                    </li>
                </ul>
            </div>
            <div class="body">
                <form action="<?php echo e(route('record.store')); ?>" method="post">
                    <?php echo e(csrf_field()); ?>

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

                    <input type="hidden" name="group_id" value="<?php echo e($group_id); ?>">
                    <h2 class="card-inside-title">Perusahaan Mitra</h2>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <div class="demo-radio-button">


                                        <select name="partner_id" class="form-control select2_new">
                                            <option value="">-- select --</option>
                                            <?php $__empty_1 = true; $__currentLoopData = $partner; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>

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

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

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

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




                    <h2 class="card-inside-title"><?php echo e($item['title']); ?></h2>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <div class="demo-radio-button">
                                        <!-- <?php $__currentLoopData = explode(',', $item['option']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                        <input name="<?php echo e($item['title']); ?>" type="radio" id="<?php echo e($item['title'].'_'.$key); ?>"
                                            class="with-gap" />
                                        <label for="<?php echo e($item['title'].'_'.$key); ?>"><?php echo e($info); ?></label>
                                        </br>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> -->

                                        <select name="<?php echo e($item['id']); ?>" class="form-control select2_new jawaban">
                                            <option value="">-- select --</option>
                                            <!-- <?php $__currentLoopData = explode(',', $item['option']); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $info): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($info); ?>"><?php echo e($info); ?></option>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> -->
                                            <option value="2">Baik Sekali</option>
                                            <option value="1">Baik</option>
                                            <option value="0">Buruk</option>


                                        </select>
                                    </div>
                                </div>
                                <div class="form-group form_<?php echo e($item['id']); ?>">
                                    <div class="form-line">
                                        <input type="text" name="note_<?php echo e($item['id']); ?>" class="form-control no-resize"
                                            placeholder="Tindaklanjut" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>



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

                    <h2 class="card-inside-title">Area Pekerjaan</h2>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <input type="text" name="area_pekerjaan" class="form-control no-resize"
                                        placeholder="Area" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <h2 class="card-inside-title">Permasalahan</h2>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <input type="text" name="masalah" class="form-control no-resize"
                                        placeholder="Masalah" />
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- <div class="hidden" id="tindaklanjut">
                        <h2 class="card-inside-title">Tindaklanjut</h2>
                        <div class="row clearfix">
                            <div class="col-sm-12">
                                <div class="form-group">
                                    <div class="form-line">
                                        <input type="text" name="tindaklanjut" class="form-control no-resize"
                                            placeholder="Tindaklanjut" />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div> -->

                    <h2 class="card-inside-title">Catatan Tambahan</h2>
                    <div class="row clearfix">
                        <div class="col-sm-12">
                            <div class="form-group">
                                <div class="form-line">
                                    <textarea id="ckeditor" name="catatan" class="form-control no-resize"
                                        placeholder="Jawaban"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                    <button type="submit" class="btn btn-primary waves-effect">SAVE</button>

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






<?php $__env->stopSection(); ?>
<?php $__env->startSection('customjs'); ?>

<script>
$(document).ready(function() {
    $(function() {
        //CKEditor
        CKEDITOR.replace('ckeditor');

    })

});


// $(document).on('change', '.jawaban', function() {

//     // $('.edit_folder').on('click', function() {
//     // console.log('asdasdas');

//     // console.log($(this).prop("name"));
//     var name = $(this).prop("name");

//     // var data = $(this).val();
//     var jab = $.map($('.jawaban'), function(el) {
//         return el.value;
//     });

//     // var jab = $('.jawaban').val();
//     // console.log(jab.filter(function(number) {
//     //     return number === "0";
//     // }));
//     var nilai = jab.filter(function(number) {
//         return number === "0";
//     });
//     if (nilai.length > 0) {
//         // $("#tindaklanjut").removeClass("hidden").addClass("");
//         $(".form_" + name).removeClass("hidden").addClass("");
//     };
//     // console.log(jab);


// });
</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sety4218/public_html/sim_pt_setia_raya/resources/views/dashboard/record/nilai.blade.php ENDPATH**/ ?>