<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="row">
            <div class="col-lg-12 d-flex flex-column">
                <div class="row flex-grow">
                    
                    <div class="col-12 grid-margin stretch-card">
                        
                        <div class="card"
                            style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">
                            <div class="card-body">
                                <div class="d-sm-flex justify-content-between align-items-start">
                                    <div>
                                        <h4 class="card-title card-title-dash">List Jadwal Dosen</h4>

                                    </div>
                                </div>
                                <br>
                                <div class="d-sm-flex align-items-center mt-1 justify-content-between">
                                </div>
                                <?php if(Session::has('pesan')): ?>
                                    <div class="alert alert-info alert-dismissible">
                                        <a href="#" class="close" data-dismiss="alert">&times;</a>
                                        <?php echo e(Session::get('pesan')); ?>

                                    </div>
                                <?php endif; ?>

                                <?php if($proposal->isEmpty()): ?>
                                    <h4>Anda Belum Membuat Jadwal</h4>
                                <?php else: ?>
                                    <table class="table table-light">
                                        <thead class="thead-light">
                                            <tr>
                                                <th>No</th>
                                                <th>Nama Dosen</th>
                                                <th>Status Reviewer</th>
                                                <th>Jadwal </th>
                                                <th>Aksi</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php $__currentLoopData = $proposal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($loop->iteration); ?></td>
                                                    <td><?php echo e($row->nama); ?></td>
                                                    <td>
                                                        <?php if($row->stat_reviewer =='off'): ?>
                                                        Bukan Reviewer
                                                        <?php else: ?>
                                                        Reviewer
                                                        <?php endif; ?>
                                                    </td>
                                                    <td>
                                                        <?php if(isset($row->jadwal_id)): ?>
                                                        <?php echo e($row->jadwal->namajadwal); ?>

                                                        <?php else: ?>
                                                        Belum ada Jadwal
                                                        <?php endif; ?>
                                                        
                                                    <td>
                                                        
                                                        <a href="<?php echo e(url('admin/terapjadwal/tambah/' . $row->id, [])); ?>"
                                                            class="btn btn-sm btn-primary">Tambah Jadwal</a>
                                                        
                                                    </td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                    </table>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>

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


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

<?php echo $__env->make('layouts.TF', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\My Project\Penelitian\resources\views/administrator/jadwal/terapan.blade.php ENDPATH**/ ?>