<div class="row">
    <?php if(session()->has('alert')): ?>
        <div class="col-md-12">
            <?php echo $__env->make('includes.alert', ['type' => json_decode(session()->get('alert'))->type,
            'message' => json_decode(session()->get('alert'))->message], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
    <?php endif; ?>
    <div class="col-md-12">
        <div class="card">
            <div class="card-header">
                <a href="<?php echo e(url()->current().'/export'); ?>" class="btn btn-success">Export</a>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table" id="pengajuan">
                        <thead class=" text-primary">
                        <th>
                            Nama
                        </th>
                        <th>
                            NIP
                        </th>
                        <th>
                            NIK
                        </th>
                        <th>
                            Jenis Pengajuan
                        </th>
                        <th>
                            SKPD
                        </th>
                        <th>
                            Cabang SKPD
                        </th>
                        <th>
                            Nomor SK
                        </th>
                        <th>
                            Nomor Sertifikat *Khusus PPBJ/Pokja
                        </th>
                        <th>
                            Masa Berlaku
                        </th>
                        <th>
                            Lampiran SK
                        </th>
                        <th>
                            Lampiran TTD
                        </th>
                        
                        <th>
                            Print Data
                        </th>
                        <th>
                            Keterangan
                        </th>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><a href="<?php echo e(url('admin/pegawai/detail/'.$row['pegawai_id'])); ?>" target="_blank"> <?php echo e($row['nama_pegawai']); ?> </a></td>
                                <td><?php echo e($row['nip']); ?></td>
                                <a href="<?php echo e(url('admin/pegawai/detail/'.$row['pegawai_id'])); ?>" target="_blank"> <?php echo e($row['nik_pegawai']); ?> </a>
                                <td><?php echo e($row['nik']); ?></td>
                                <td><?php echo e($row['type_pengajuan']); ?></td>
                                <td><?php echo e($row['nama_skpd']); ?></td>
                                <td><?php echo e($row['nama_cabang']); ?></td>
                                <td><?php echo e($row['nomor_sk']); ?></td>
                                <td><?php echo e($row['sertifikat']); ?></td>
                                <td><?php echo e($row['masa_berlaku']); ?></td>
                                <td>
                                    <?php if($row['lampiran_file'] != ""): ?>
                                        <a href="<?php echo e(url(env('UPLOAD_PATH').'/'.$row['lampiran_file'])); ?>" download>Unduh</a>
                                    <?php else: ?>
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <?php if($row['lampiran_ttd'] != ""): ?>
                                        <a href="<?php echo e(url(env('UPLOAD_PATH').'/'.$row['lampiran_ttd'])); ?>" download>Unduh</a>
                                    <?php else: ?>
                                    <?php endif; ?>
                                </td>
                                  <td><a href="<?php echo e(url('admin/pengajuan/printpengajuan/'. $row['id'])); ?>"> Print</a></td>
                                
                                <td><?php echo e($row['keterangan']); ?></td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<?php echo $__env->make('admin.includes.data_table', ['target' => '#pengajuan'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/sandipbj/public_html/resources/views/admin/pages/pengajuan.blade.php ENDPATH**/ ?>