

<table class="display table-black" id="">
    <tfoot>

    </tfoot>
    <thead>
        <tr>


            <th>الباركود</th>
            <th>اسم المنتج</th>
            <th>الحالة</th>

            <th class="hidden-print">التعديل</th>
        </tr>
    </thead>
    <tbody>

        {foreach $productsData as $data}
        {if {$data->conditions} eq 1}

        <tr  style="background:#C99">
            {else}
        <tr>
            {/if}
            <td> {$data->parcode} </td>
            <td> {$data->productName} </td>
            <td>  {if $data->conditions eq 1}محذوف{else}غير محذوف{/if}</td>
            <td  class="hidden-print"><a href="productController.php?do=edit&id={$data->productId}" type="button" class="btn btn-default btn-lg editicon"></a></td>
        </tr>
        {/foreach}


    </tbody>

</table>

