<AppPortletCard
  name="{{portlet.name}}"
  :isContainer="true"
{{#if portlet.caption}}
  title="{{portlet.caption}}"
{{/if}}
  :showCaption="{{#if portlet.isShowTitleBar}}true{{else}}false{{/if}}"
{{#if portlet.psSysImage}}
  {{#if portlet.psSysImage.imagePath}}imgPath="{{portlet.psSysImage.imagePath}}"{{else if portlet.psSysImage.cssClass}}iconClass="{{portlet.psSysImage.cssClass}}"{{/if}}
{{/if}}
  :layoutOpts="{{> @macro/front-end/common/layoutPos.hbs layout=portlet.psLayout layoutPos=portlet.psLayoutPos}}"
  class="app-portlet-container {{portlet.psSysCss.cssName}}"
{{#if (or portlet.width portlet.height)}}
  style="{{#if portlet.width}}width: {{portlet.width}}px;{{/if}}{{#if portlet.height}}height: {{portlet.height}}px;{{/if}}"
{{/if}}
>
{{#each portlet.psControls as | subPortlet | }}
  {{#eq subPortlet.portletType 'CONTAINER'}}
    {{> @macro/front-end/widgets/dashboard-detail/include-dashboard.hbs type='PORTLET_CONTAINER' portlet=subPortlet}}
  {{else}}
    {{> @macro/front-end/widgets/dashboard-detail/include-dashboard.hbs type='PORTLET' portlet=subPortlet}}
  {{/eq}}
{{/each}}
</AppPortletCard>
