|
|
|
|
|
|
|
|
] ; |
|
|
] ; |
|
|
?> |
|
|
?> |
|
|
|
|
|
|
|
|
<?= GridView::widget([ |
|
|
|
|
|
'dataProvider' => $dataProviderProducts, |
|
|
|
|
|
'summary' => '', |
|
|
|
|
|
'columns' => $columnsProducts |
|
|
|
|
|
]); ?> |
|
|
|
|
|
|
|
|
<?php if($dataProviderProducts->query->count()) : ?> |
|
|
|
|
|
<?= GridView::widget([ |
|
|
|
|
|
'dataProvider' => $dataProviderProducts, |
|
|
|
|
|
'summary' => '', |
|
|
|
|
|
'columns' => $columnsProducts |
|
|
|
|
|
]); ?> |
|
|
|
|
|
<?php endif; ?> |
|
|
|
|
|
|
|
|
<?php foreach($categories as $category): ?> |
|
|
<?php foreach($categories as $category): ?> |
|
|
<h4><?= Html::encode($category->name) ?></h4> |
|
|
|
|
|
|
|
|
<?php if($dataProviderProductsByCategories[$category->id]->query->count()): ?> |
|
|
|
|
|
<h4><?= Html::encode($category->name) ?></h4> |
|
|
<?= GridView::widget([ |
|
|
<?= GridView::widget([ |
|
|
'dataProvider' => $dataProviderProductsByCategories[$category->id], |
|
|
'dataProvider' => $dataProviderProductsByCategories[$category->id], |
|
|
'summary' => '', |
|
|
'summary' => '', |
|
|
'columns' => $columnsProducts |
|
|
'columns' => $columnsProducts |
|
|
]); ?> |
|
|
]); ?> |
|
|
|
|
|
<?php endif; ?> |
|
|
<?php endforeach; ?> |
|
|
<?php endforeach; ?> |
|
|
</section> |
|
|
</section> |