<?php $__env->startSection('title'); ?>
    Manage Users
<?php $__env->stopSection(); ?>

<?php $__env->startSection('styles'); ?>

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

<?php $__env->startSection('content'); ?>

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

<h1>Companies</h1>
<a class="myButton" style="width:12% ;text-align: center;" href="/new-company">Add New Company</a>
    <div class="comapanyTable">
            <table>
                <thead>
                    <tr>
                        <th width="10%%">Companies</th>
                        <th style="text-align: center;" width="10%"></i>View Users</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($companies as $company): ?>
                        <tr>
                            <td><?php echo $company->companyName; ?></td>
                            <td class="text-center red"><a onclick="return Conform_Delete()" href="view-users/<?php echo $company->companyName; ?>"> <i class="fa fa-search" aria-hidden="true"></i></a></td>
                        </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>
            <div class="row">
                <div class="large-12 columns">
                    <div class="pagination"> <?php echo $companies->links(); ?> </div>
                </div>
            </div>
    </div>
<?php echo $__env->make('partials.footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>