<?php echo $__env->make('admin.includes.errors', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->startSection('content'); ?>
<div class="container">
    <h2 class="text-center">Job List</h2>
    <div class="card">
        <div class="card-body">
            <table class="table table-hover">
                <thead>
                    <th>
                        Post Applied
                    </th>
                    <th>
                        Post Code
                    </th>
                    <th>
                        Full Name
                    </th>
                    <th>
                        Mobile
                    </th>
                    <th>
                        Email
                    </th>
                    <th>
                        Delete
                    </th>
                </thead>
                <tbody>
                    <?php if($posts->count() > 0): ?>
                    <?php $__currentLoopData = $posts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $post): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td>
                            <?php echo e($post->post_applied); ?>

                        </td>
                        <td>
                            <?php echo e($post->post_code); ?>

                        </td>
                        <td>
                            <?php echo e($post->full_name); ?>

                        </td>
                        <td>
                            <?php echo e($post->mobile); ?>

                        </td>
                        <td>
                            <?php echo e($post->email); ?>

                        </td>
                        <td>
                            <a href="<?php echo e(route('reg.delete', ['id' =>$post->id])); ?>" class="btn btn-danger">Delete</a>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                    <tr>
                        <th colspan="5" class="text-center">Not Listed.</th>
                    </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
        <div>
            <?php echo e($posts->links()); ?>

        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>