@*   Xafari Framework version : 17.2.3011.1336   *@

@using Xafari.Mvc.Layout

@model LayoutGroupContainer

@{
    var controlPartialView = this.ViewData[LayoutGroupContainer.ControlPartialViewKey] as string;
    if (string.IsNullOrEmpty(controlPartialView)) { return; }

    DevExpress.ExpressApp.Web.Layout.LayoutCSSInfo layoutCSSInfo = this.Model.LayoutManager.LayoutCSSInfo;
    if (layoutCSSInfo != null)
    {
        DevExpress.ExpressApp.Web.Layout.LayoutItemCSSInfoBase cssInfo = layoutCSSInfo.GetCssInfo(this.Model.Model);
        if ((layoutCSSInfo != null) && cssInfo.CardItem)
        {
            if (((DevExpress.ExpressApp.Web.SystemModule.IModelLayoutGroupWeb)this.Model.Model).IsCollapsibleCardGroup)
            {
                @Html.Xafari().RelativePartial("_CollapsibleCardGroup")
            }
            else
            {
                @Html.Xafari().RelativePartial("_CardGroup")
            }

        }
        else
        {
            @Html.Xafari().RelativePartial("_LayoutContentHeader")
            @Html.Xafari().RelativePartial(controlPartialView)
        }

    }
    else
    {
        @Html.Xafari().RelativePartial("_LayoutContentHeader")
        @Html.Xafari().RelativePartial(controlPartialView)
    }
}
