<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">
                <?php echo $__env->make('admin.includes.crud_utils_add', ['add_url' => url()->current().'/add'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
            -->
            <a href="<?php echo e(url()->current().'/export'); ?>" class="btn btn-success">Export</a>

            <div class="card-body">
                <div class="table-responsive">
                    <table class="table" id="pegawai">
                        <thead class=" text-primary">
                        <th>
                            Nama
                        </th>
                        <th>
                            NIP
                        </th>
                        <th>
                            Jabatan
                        </th>
                        <th>
                            Golongan
                        </th>
                        <th>
                            Ruang
                        </th>
                        <th>
                            telepon
                        </th>
                        <th>
                            Email
                        </th>
                        <th>
                            Alamat
                        </th>
                        <th>

                        </th>
                        </thead>
                        <tbody>
                        <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($row['nama']); ?></td>
                                <td><?php echo e($row['nip']); ?></td>
                                <td><a href="<?php echo e(url('admin/jabatan/detail/'.$row['pangkat_pegawai_id'])); ?>" target="_blank"><?php echo e($row['jabatan']); ?></a></td>
                                <td><?php echo e($row['golongan']); ?></td>
                                <td><?php echo e($row['ruang']); ?></td>
                                <td><?php echo e($row['telepon']); ?></td>
                                <td><?php echo e($row['email']); ?></td>
                                <td><?php echo e($row['alamat']); ?></td>
                                <td>
                                    <a href="<?php echo e(url('admin/pengajuan?pegawai_id='.$row['id'])); ?>" class="btn btn-default" target="_blank"> <i class="nc-icon nc-paper"></i>Pengajuan</a>
                                    <a href="<?php echo e(url('admin/pengajuan/byid/export/'.$row['id'])); ?>" class="btn btn-primary" target="_blank"> <i class="nc-icon nc-paper"></i>Export</a>
                                    <?php echo $__env->make('admin.includes.crud_utils_opt',
                                    ['detail_url' => url()->current().'/detail/'.$row['id'],
                                    'delete_url' => url()->current().'/delete/'.$row['id']], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                </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' => '#pegawai'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php /**PATH C:\New Project\New folder\resources\views/admin/pages/pegawai.blade.php ENDPATH**/ ?>