{if isset($t) && $t ==1}
<div class="form-group ">
    <div class="col-md-2">
        <label class="sr-only">تصنيف المنتج</label>
    </div>
    <select class="select2 wdt300 productCatt productCattId02" data-level="{$level}" name="productCattId{$level}"
        id="productCattId{$level}">
        <option value="-1">اختر تصنيف</option>
        {foreach $catDataReport as $data}
        <option value="{$data->productCatId}">{$data->productCatName}</option>
        {/foreach}
    </select>
</div>
{literal}
<script>
    var levelhere = $('#levelt').val();
    $('#productCattId' + levelhere).select2();
</script>
{/literal}
{else}
<div class="form-group ">
    <div class="col-md-2">
        <label class="sr-only">تصنيف المنتج</label>
    </div>
    <select class="select2 wdt300 productCat productCatId02" data-level="{$level}" name="productCatId{$level}"
        id="productCatId{$level}">
        <option value="-1">اختر تصنيف</option>
        {foreach $catDataReport as $data}
        <option value="{$data->productCatId}">{$data->productCatName}</option>
        {/foreach}
    </select>
</div>
{literal}
<script>
    var levelhere = $('#level').val();
    $('#productCatId' + levelhere).select2();
</script>
{/literal}
{/if}