<?php

/**
 * @var \Application\Admin\Widget\WidgetsCollection $widgets
 * @var \Application\Admin\Widget\Widget            $widget
 */

?>
<div id="dashboard-widgets">
    <?php foreach ($widgets as $widget): ?>
        <div class="dashboard-widget-column-<?php echo $widget->getColumns(); ?>">
            <div class="dashboard-widget" id="dashboard-widget-<?php echo $widget->getKey(); ?>" data-key="<?php echo $widget->getKey(); ?>">
                <h3><?php echo $widget->getName(); ?></h3>
                <div class="dashboard-widget-content"><?php echo $widget->render(); ?></div>
            </div>
        </div>
    <?php endforeach; ?>
</div>
