<?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-7 grid-margin stretch-card">

                    </div>

                    
                    <div class="col-md-5 grid-margin stretch-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>
                    
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-lg-8 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">Data Laporan Kegiatan Penelitian</h4>
                                    <p> Judul : <?php echo e($judul->judul); ?> </p> 

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

                                </div>
                            <?php endif; ?>
                            <?php if(Session::has('pesan1')): ?>
                            <div class="alert alert-success alert-dismissible">
                                <a href="#" class="close" data-dismiss="alert">&times;</a>
                                <?php echo e(Session::get('pesan1')); ?>

                            </div>
                        <?php endif; ?>

                            <?php if($proposal->isEmpty()): ?>
                                <h4>Anda Belum Mengupload Berkas</h4>
                            <?php else: ?>
                                <table class="table table-light">
                                    <thead class="thead-light">
                                        <tr>
                                            <th>No</th>
                                            <th>Laporan</th>
                                            <th>File / Link Publikasi</th>
                                            <th>Status</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->jenispenelitian->nama_jenis); ?></td>
                                                <?php if(isset($row->file)): ?>
                                                <td><a href="<?php echo e(\Storage::url($row->file)); ?>" target="_blank">Download
                                                    File</a></td>
                                                <?php elseif(isset($row->link_publikasi)): ?>
                                                <td><a href="<?php echo e($row->link_publikasi); ?>" target="_blank">Lihat Publikasi</a></td>
                                                <?php endif; ?>
                                                
                                                <td>
                                                    <?php echo e($row->status); ?>

                                                    
                                                </td>
                                                <td>


                                                    
                                                    <a href="<?php echo e(url('dosen/hapus-laporan/' . $row->id, [])); ?>"
                                                                class="btn btn-sm btn-primary"
                                                                onclick="return confirm('Anda yakin?')"><i
                                                                    class="mdi mdi-delete"></i></a>
                                                </td>
                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </tbody>
                                </table>
                            <?php endif; ?>

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

        <div class="col-lg-4 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">Laporan Kegiatan Penelitian</h4>
                                </div>
                            </div>
                            <br>

                            <?php echo Form::model($objek, ['action' => $action, 'method' => $method, 'files' => true]); ?>


                            <div class="form-group">
                                <label for="jenispenelitian_id">Jenis Kegiatan Penelitian</label>
                                <?php echo e(Form::select('jenispenelitian_id', \App\Jenispenelitian::pluck('nama_jenis', 'id'), null, ['class' => 'form-control'])); ?>

                                
                            </div>

                            <div class="form-group">
                                <div class="row">
                                    <div class="col-lg-5">
                                        <label for="link_publikasi">Link Publikasi</label>
                                        <?php echo Form::text('link_publikasi', null, ['class' => 'form-control']); ?>

                                        
                                    </div>
                                    <div class="col-lg-7">
                                        <label for="file">File (Format: pdf, word)</label>
                                        <?php echo e(Form::file('file', ['class' => 'form-control'])); ?>

                                        <span class="text-danger"><?php echo e($errors->first('file')); ?></span>
                                    </div>
                                </div>
                            </div>

                            

                            

                            <?php echo Form::submit('Simpan', ['class' => 'btn btn-primary']); ?>

                            <?php echo Form::close(); ?>


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


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

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