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

<?php $__env->stopSection(); ?>

<?php $__env->startPush('before-script'); ?>

<?php if(session('status')): ?>
<?php if (isset($component)) { $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Sweetalertsession::class, ['tipe' => ''.e(session('tipe')).'','status' => ''.e(session('status')).'']); ?>
<?php $component->withName('sweetalertsession'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5)): ?>
<?php $component = $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5; ?>
<?php unset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5); ?>
<?php endif; ?>
<?php endif; ?>
<?php $__env->stopPush(); ?>


<?php $__env->startSection('content'); ?>
<section class="section">
    <div class="section-header">
        <h1><?php echo $__env->yieldContent('title'); ?></h1>
        <div class="section-header-breadcrumb">
            <div class="breadcrumb-item active"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></div>
            <div class="breadcrumb-item"><a href="<?php echo e(route('silabus')); ?>">Silabus</a></div>
            <div class="breadcrumb-item"><?php echo $__env->yieldContent('title'); ?></div>
        </div>
    </div>

    <div class="section-body">
        <div class="card">
            <div class="card-body">

                <div id="babeng-bar" class="text-center mt-2">

                    <div id="babeng-row ">

                        <form action="<?php echo e(route('silabus.cari')); ?>" method="GET" class=" d-inline">
                            <input type="text" class="babeng babeng-select  ml-0" name="cari">

                            <span>
                                <input class="btn btn-info ml-1 mt-2 mt-sm-0" type="submit" id="babeng-submit"
                                    value="Cari">
                            </span>
                            
                                     </form>
</form>

                    </div>
                </div>

                

                <table id="example" class="table table-striped table-bordered mt-1 table-sm" style="width:100%">
                    <thead>
                        <tr style="background-color: #F1F1F1">
                            <th  class="text-center py-2 ">
                                No</th>
                            

                            <th   class="text-center py-2 ">Mata Pelajaran</th>
                            
                            <th   class="text-center py-2">Guru Pengampu</th>
                            <th class="text-center ">Tuntas/Belum</th>
                            <th class="text-center">Detail</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr id="sid">
                            <td class="text-center babeng-min-row">
                                <?php echo e((($loop->index)+1)); ?></td>

                                
                                <td class="text-center">
                                    <?php echo e($data->mapel!=null ? $data->mapel : 'Data tidak ditemukan'); ?>

                                </td>
                                <td class="text-center">
                                    <?php echo e($data->guru_nama!=null ? $data->guru_nama : 'Data tidak ditemukan'); ?>

                                </td>

                                

                                <td class="text-center">
                                    <?php
                                        $warna='warning';
                                        $tuntas='Belum tuntas';
                                        if($data->avg!=null AND $data->avg>=75){
                                            $warna='success';
                                        $tuntas='Tuntas';
                                        }
                                    ?>
                                    
                                    <button class="btn btn-sm btn-<?php echo e($warna); ?>"><?php echo e($tuntas); ?></button>
                                </td>

                                <td class="text-center babeng-min-row">
                                    <a class="btn btn-sm btn-info" href="<?php echo e(route('menusiswa.detailpenilaian',$data->id)); ?>">Detail</a>
                                </td>



                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="5" class="text-center">Data tidak ditemukan</td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>

            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Xampp 8.2\htdocs\sim\resources\views/pages/siswa/dataajar/lihatnilai.blade.php ENDPATH**/ ?>