<?php $__env->startSection('title'); ?>
    Blog DUsers
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<img style="max-width: 30%;display: block; margin-top: -3rem; margin-left: auto; margin-right: auto;" src="/img/Prestige_Logo.jpg" />
<div style="width: 860px !important;border: solid #009ddc 7px;background-image: url(/img/da-background.jpg);" class="login">
			<div class="app-title">
				<h1>Manage Users</h1>
			</div>
    <div class="fullWidth darkGreyContainer">
        <div class="row">
            <div class="large-7 columns">
                <a href="/new-user">
                    <button style="margin-top: 1rem;margin-left: 6rem;" class="mybutton">Add New User</button>
                </a>
            </div>
            <div class="large-2 columns">
                <a  href="/dashboard"><button style="    margin-left: -8rem;
                                                         padding-bottom: 0.01rem;
                                                         padding-left: 0rem;"><i style="font-size: 1rem;" class="fa fa-arrow-circle-left" aria-hidden="true"></i>Back</button></a>
            </div>

        </div>
    </div>
    <div class="row contactbg">
        <div class="large-8 columns">

        </div>
    </div>
    <div class="row contactbg">
        <div style="margin-left: 6rem;width: 90%;" class="large-12 columns">
            <table>
                <thead>
                    <tr>
                        <th width="18%"><i style="margin-left: 0px; font-size: 2rem;" class="fa fa-user" aria-hidden="true"></i>Company Name</th>
                        <th style="text-align: center;" width="5%"></i>Edit</th>
                        <th style="text-align: center;" width="5%">Delete</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($users as $user): ?>
                        <tr>
                            <td><?php echo $user->name; ?></td>
                            <td class="text-center"><a href="edit-user/<?php echo $user->id; ?>"> <i style="font-size: 2rem;" class="fa fa-pencil-square-o" aria-hidden="true"></i> </a></td>
                            <td class="text-center red"><a onclick="return Conform_Delete()" class="green" href="deleteUser/<?php echo $user->id; ?>"> <i style="font-size: 2rem;" class="fa fa-times" aria-hidden="true"></i></a></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <div class="row">
                <div class="large-12 columns">
                    <div class="pagination"> <?php echo $users->links(); ?> </div>
                </div>
            </div>
        </div>
    </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    <script src="<?php echo asset('js/scripts.js'); ?>"></script>
    <script>
        function Conform_Delete()
        {
           return confirm("Are You Sure Want to Delete this this user?");
        }
    </script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>