<?php $__env->startSection('content'); ?>
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>

                <div class="card-body">
                    <?php if(session('status')): ?>
                        <div class="alert alert-success" role="alert">
                            <?php echo e(session('status')); ?>

                        </div>
                    <?php endif; ?>

                        <div class="row">
                                <div class="col-md-9 pull-left">
                                    <h2>Priorities Management</h2>
                                </div>

                            <div class="pull-right">
                                <a class="btn btn-success" href="<?php echo e(url('/createpriorities')); ?>">Create new priority</a>
                            </div>
                        </div>



                        <table class="table table-bordered">
                            <tr>
                                <th>No</th>
                                <th>Priority</th>
                                <th width="280px">Action</th>
                            </tr>
                            <?php $__currentLoopData = $priority; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $proity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($proity->id); ?></td>
                                    <td><?php echo e($proity->name); ?></td>
                                    <td>
                                        <form action="" method="POST">

                                            <a class="btn btn-primary" href="">Edit</a>


                                            <?php echo csrf_field(); ?>
                                            <?php echo method_field('DELETE'); ?>


                                            <button type="submit" class="btn btn-danger">Delete</button>
                                        </form>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </table>


                        <?php echo $priority->links(); ?>


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

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