<?php $__env->startSection('title', 'Detail Penilaian Ujian'); ?>

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-4">
        <div class="card">
            <div class="card-header"><h3 class="card-title">Data Mahasiswa</h3></div>
            <div class="card-body">
                <strong>NIM</strong>
                <p class="text-muted"><?php echo e($p4->nim_mahasiswa); ?></p>
                <hr>
                <strong>Nama</strong>
                <p class="text-muted"><?php echo e($p4->nama_mahasiswa); ?></p>
                <hr>
                <strong>Judul Skripsi</strong>
                <p class="text-muted text-justify"><i>"<?php echo e($p4->judul_skripsi); ?>"</i></p>
                
                <hr>
                <a href="<?php echo e(route('penilaian.cetak_rekap', $p4->nim_mahasiswa)); ?>" target="_blank" class="btn btn-primary btn-block">Cetak Rekap Nilai & Berita Acara</a>
                <a href="<?php echo e(route('penilaian.index')); ?>" class="btn btn-secondary btn-block">Kembali</a>
            </div>
        </div>
    </div>
    
    <div class="col-md-8">
        <div class="card">
            <div class="card-header"><h3 class="card-title">Daftar Tim Penguji & Input Nilai</h3></div>
            <div class="card-body">
                <?php if(session('success')): ?>
                    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
                <?php endif; ?>
                
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th width="30">Ke</th>
                            <th>Nama Penguji</th>
                            <th>Status Penilaian</th>
                            <th>Nilai Akhir</th>
                            <th width="200">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $pengujis; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $penguji): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td class="text-center"><?php echo e($penguji->penguji_ke); ?></td>
                            <td><?php echo e($penguji->nama); ?></td>
                            <td>
                                <?php if($penguji->penilaian): ?>
                                    <span class="badge badge-success">Sudah Dinilai</span>
                                <?php else: ?>
                                    <span class="badge badge-warning">Belum Dinilai</span>
                                <?php endif; ?>
                            </td>
                            <td>
                                <strong><?php echo e($penguji->penilaian ? number_format($penguji->penilaian->nilai_total, 2) : '-'); ?></strong>
                            </td>
                            <td>
                                <a href="<?php echo e(route('penilaian.input', [$p4->nim_mahasiswa, $penguji->penguji_ke])); ?>" class="btn btn-info btn-sm">Input Nilai</a>
                                <?php if($penguji->penilaian): ?>
                                    <a href="<?php echo e(route('penilaian.cetak_form', [$p4->nim_mahasiswa, $penguji->penguji_ke])); ?>" target="_blank" class="btn btn-secondary btn-sm">Cetak</a>
                                <?php endif; ?>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /opt/lampp/htdocs/skripsifh/resources/views/penilaian/detail.blade.php ENDPATH**/ ?>