<div class="wds50 fleft">
    {assign var=i value=1}
    {foreach $allRayCats1 as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="iiin {$cat->id}Check" id="" value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}

    {assign var=i value=1}
    {foreach $allRayCats3 as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" id="" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="iiin {$cat->id}Check"  value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}


</div>
<div class="wds50 fleft">
    {assign var=i value=1}
    {foreach $allRayCats2 as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="iiin {$cat->id}Check" id="" value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}

    {assign var=i value=1}
    {foreach $allRayCats4 as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" id="" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="iiin {if $cat->name == 'Male(Husband)'}husbandCheck{/if} {$cat->id}Check"
                       value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}


</div>



<div class="wds34 fleft">
    <label style="font-weight:bold; text-decoration:underline" for="form_control_1">  Favorites
        <span>
            <input type="checkbox" data-gClass="favoriteCheck" class="iiin checkGroup">
        </span>

    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $favoritesRays as $inv}
        <label>
            <span>
                <input type="checkbox" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="favoriteCheck iiin" id="" value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>

    {foreach $otherRays  as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="{$cat->id}Check iiin" id="" value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}

    {assign var=i value=1}
    {foreach $allRayCats5 as $cat}

    <label style="font-weight:bold; text-decoration:underline" for="form_control_1"> {$cat->name}
        <span>
            <input type="checkbox" data-gClass="{$cat->id}Check" class="iiin checkGroup">
        </span>
    </label>
    <div class="checkbox-list">
        {assign var=j value=1}
        {foreach $cat->rays as $inv}
        <label>
            <span>
                <input type="checkbox" data-name="{$inv->name}"   data-price="{$inv->price}" data-contract="{$inv->contract}"
                       data-discount="{$inv->discount}" data-hold="{$inv->hold}" data-originalPrice="{$inv->originalPrice}"
                       class="iiin {$cat->id}Check" id="" value="{$inv->id}" name="rayCheck[]">
            </span> {$inv->name}   <span class="fright">  {if $inv->contract > 0 } ({$inv->contract}) =>  ({$inv->hold})  {else }  ( 0 )    {/if} </span>
        </label>

        {capture assign=j}{$j+1}{/capture}
        {/foreach}
    </div>
    {capture assign=i}{$i+1}{/capture}
    {/foreach}
</div>
