<?php
use yii\helpers\Url;
use yii\helpers\ArrayHelper;
use yii\helpers\StringHelper;
use home\models\Portlet;

/* @var $this yii\web\View */

$this->title="工作台";
?>

<?= \home\widgets\Alert::widget(); ?>

<?php foreach ($portlets as $portlet) : ?>
    <?= call_user_func([Portlet::getPortletWidgetName($portlet['portlet']), 'widget'], ['title' => $portlet['title'], 'portletId' => $portlet['portlet'], 'x' => $portlet['x'], 'y' => $portlet['y']]) ?>
<?php endforeach; ?>

<div class="container container-project" id="portlet" data-position-url="<?= Url::to(['/user-portlet/modify-position']) ?>" data-remove-portlet-url="<?= Url::to(['/user-portlet/remove-portlet']) ?>" style="min-height: 720px; padding: 15px 5px 50px 10px;">
</div>
