<div class="widget">
    <h5 class="mb-2 ls-1 text-uppercase fw-bold">Survey Kepuasan Masyarakat</h5>
    <div class="line line-xs line-tech"></div>
    <?php if($data): ?>
        <div class="table-responsive">
            <table class="table table-sm" style="font-size: 10pt" width="100%">
                <thead class="table-primary">
                    <tr>
                        <th colspan="3" class="text-center"><?php echo e($data->unit_kerja); ?></th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td colspan="3" class="text-center fw-semibold table-active">Responden</td>
                    </tr>
                    <tr>
                        <td width="50%" class="text-start">Total Responden</td>
                        <td width="1%">:</td>
                        <td><?php echo e($data->total_responden); ?></td>
                    </tr>
                    <tr>
                        <td width="50%" class="text-start">Laki-laki</td>
                        <td width="1%">:</td>
                        <td><?php echo e($data->jk_pria); ?></td>
                    </tr>
                    <tr>
                        <td width="50%" class="text-start">Perempuan</td>
                        <td width="1%">:</td>
                        <td><?php echo e($data->jk_wanita); ?></td>
                    </tr>

                    <tr>
                        <td colspan="3" class="text-center fw-semibold table-active">Pendidikan</td>
                    </tr>
                    <?php $__currentLoopData = $data->pendidikan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pend): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td width="50%" class="text-start"><?php echo e($pend->name); ?></td>
                            <td width="1%">:</td>
                            <td><?php echo e($pend->value); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td colspan="3" class="text-center fw-semibold table-active">Nilai</td>
                    </tr>
                    <tr>
                        <td width="50%" class="text-start">Skor</td>
                        <td width="1%">:</td>
                        <td><?php echo e($data->total_skor); ?> dari 100</td>
                    </tr>
                    <tr>
                        <td width="50%" class="text-start">Predikat</td>
                        <td width="1%">:</td>
                        <td><?php echo e($data->grade.' ('.$data->keterangan.')'); ?></td>
                    </tr>

                    <tr>
                        <td colspan="3" class="text-center fw-semibold table-active">Periode Survey</td>
                    </tr>
                    <tr>
                        <td colspan="3" class="text-center"><?php echo e($data->periode_survey); ?></td>
                    </tr>

                </tbody>
            </table>
        </div>
        <div class="row mt-0">
            <div class="col-md-12 text-center">
                <a href="<?php echo e(env('SKM_URL')); ?>" target="_blank" class="mt-2 button button-small button-rounded bg-primary text-uppercase">Beri
                    Penilaian</a>
            </div>
        </div>
    <?php else: ?>
        <span>Belum Terintegrasi Dengan SKM</span>
    <?php endif; ?>

</div>
<?php /**PATH /Users/aptika/Workspace/stunting/resources/views/components/guest/skm.blade.php ENDPATH**/ ?>