<div >
    <label class="sr-only">تصنيف المنتج</label>
    <select class="select2 wdt300 productCatt" 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}