<div class="box">
    <div class="box-header">
        <h3 class="box-title">Recent companies</h3>
    </div>
    <?php if(count($latest['companies']) > 0): ?>
        <div class="box-body table-responsive no-padding">
            <table class="table table-hover">
                <tr>
                    <th>#</th>
                    <th>Name</th>
                    <th>&nbsp;</th>
                </tr>
                <?php foreach($latest['companies'] as $company): ?>
                    <tr>
                        <td><?php echo e($company->id); ?></td>
                        <td><a href="<?php echo e(route('admin.companies.show', $company->id)); ?>"><?php echo e($company->name); ?></a></td>
                        <td class="text-right">
                            <a href="<?php echo e(route('admin.companies.show', $company->id)); ?>" class="btn btn-success btn-xs">view</a>
                            <a href="<?php echo e(route('admin.companies.edit', $company->id)); ?>" class="btn btn-warning btn-xs">edit</a>
                            <a href="<?php echo e(route('admin.companies.delete', $company->id)); ?>" class="btn btn-danger btn-xs confirm-action">delete</a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
    <?php else: ?>
        <div class="box-body">
            <div class="alert alert-info">Users list is empty.</div>
        </div>
    <?php endif; ?>
</div>