<?php $__env->startSection('content'); ?>
<div class="page-header">
    <div class="page-title">
        <h3>Companies List</h3>
        <span>Good morning, John!</span>
    </div>
</div>

<div class="row">
    <!--=== Advanced Table ===-->
    <div class="col-md-12">
        <div class="widget">
            <div class="widget-content">
                <table class="table table-striped table-bordered table-highlight-head table-no-inner-border table-hover">
                    <thead>
                        <tr>
                            <?php foreach($columns as $column => $property): ?>
                            <th class="align-center"><?php echo $property['display']; ?></th>
                            <?php endforeach; ?>
                            <th class="align-center">Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if($companies->count()): ?>
                        <?php foreach($companies as $company): ?>
                        <tr>
                            <?php foreach($columns as $column => $property): ?>
                            <td><?php echo $property['getValue']($company); ?></td>
                            <?php endforeach; ?>
                            <td class="align-center">
                                <span class="btn-group">
                                    <a href="<?php echo URL::route('admin.company.edit', [$company->id]); ?>" class="btn btn-xs bs-tooltip" title="Edit"><i class="icon-pencil"></i></a>
                                </span>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                        <?php else: ?>
                        <tr>
                            <td colspan="5">New requests not found</td>
                        </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!-- /Advanced Table -->
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('cpanel.layouts.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>