{assign var="attrCounter" value="1"}
	{assign var="attrCount" value=$bodyStyles|count}
	{*{foreach from=$bodyStyles key="attributeID" item="attributes"}*}
        
	<div class="FltrSctn py-3 border-bottom prodBodyStyles">
		{*{html->anchor caption=$language.lblClear class="clearAttributeSearch float-right font-weight-bold" rel=$attributes}*}
		<h6 class="expand-clsps font-weight-bold m-0 px-4 py-2"><span class="openListing spriteImg"></span>{$language.lblBodyType}</h6>
        <div class="list-wrap">
            {form->textbox name="attrSearchFilter" class="attrSearchFilter form-control my-3 py-2" placeholder=$language.lblRefine}
            <div class="listMenu listMenuScroll slip scrollbox">							
            <ul class="attrOptionList list-unstyled mb-0"> 
                
            {foreach from=$bodyStyles|default:array() item="attrOptions" key="optids"}
                            {assign var="dispBodyType" value="{$attrOptions}"}
                           {assign var="attrOptionID" value="{$optids}"}
                            
                             
                <li>
                    {assign var="attrKey" value=$attributes.attributeKey|default:''} 
                    {assign var="readOnlyVar" value=""}
                    {assign var="attrOptChecked" value=""}

                     {if $bodyStyle|default:''}
                     
                        {if in_array($dispBodyType,$bodyStyle)}
                            {assign var="attrOptChecked" value="checked"} 
                        {else}
                             {assign var="readOnlyVar" value="disabled"}
                        {/if}
                     {else}


                     {/if}
                    
                    {form->checkbox disabled="{$readOnlyVar}" refinehead=$attrOptions refineval=$attrOptions id="searchAttrOptID_{$attrOptionID}" class="searchAttrOptID" name="searchAttrOptID[]" value={$attrOptionID} checked={$attrOptChecked} rel='bodytype'}
                    <label class="attributeSearchLabel" disabled="{$readOnlyVar}"  id="searchAttrLabel_{$attrOptionID}" for="searchAttrOptID_{$attrOptionID}">{$dispBodyType}</label>
                </li>															
            {/foreach}
            </ul>							
            </div>
        </div>
		{assign var="attrCounter" value=$attrCounter+1}
		</div>