<div class="row">
    <hr >
    <div class="col-lg-6">
        <h4>المبيعات</h4>
    </div>
</div>
<!-- end of title row-->

<div class="table-responsive">
    <table class="table billtable table-bordered table-black"
           id="containerpros">
        <thead>
        <tr>
            <th class="wdt60 myblack" {if {$billsettingsData[40]->
                billsettingsvalue} eq 0} {else} style="display:none !important;"
                {/if}>رقم
            </th>
            <th class="wdt60 myblack" {if {$billsettingsData[59]->
                billsettingsvalue} eq 0} {else} style="display:none !important"
                {/if} class="wdt120">الباركود
            </th>
            <th class="wdt300 myblack">اسم المنتج</th>
            {if {$billsettingsData[26]->billsettingsvalue} eq 0}

            <th class="wdt240 myblack">المخزن</th>


            {/if}

            <th class=" myblack hidden-print" {if {$billsettingsData[7]->
                billsettingsvalue} eq 0} {else} style="display:none !important"
                {/if} class="wdt240">ملاحظات
            </th>
            <th class=" myblack wdt100n" {if {$billsettingsData[53]->
                billsettingsvalue} eq 0} {else} style="display:none !important"
                {/if}">الوحدة
            </th>
            <th class="wdt100n myblack" {if {$billsettingsData[64]->
                billsettingsvalue} eq 0} {else} style="display:none" {/if}>العدد
            </th>
            <th class="wdt100n check_tr_unit  {if {$Programsettingdata->scunitname} eq '0'}  hidden {/if}">
                {$Programsettingdata->scunitname}
            </th>

            <th class="wdt100n myblack">السعر</th>

            <th class=" myblack" {if {$billsettingsData[8]->billsettingsvalue}
                eq 0} {else} style="display:none" {/if} class="wdt100n">الخصم
            </th>
            <th class="wdt100n myblack"> الاجمالى</th>
        </tr>
        </thead>

        <tbody>


        {assign var=x value=1}
        {foreach $faidaProductData as $sellbilldetail}

        <tr>
            <td class=" myblack" {if {$billsettingsData[40]->billsettingsvalue}
                eq 0} {else} style="display:none !important;" {/if}>{$x}
            </td>
            <td class=" myblack" {if {$billsettingsData[59]->billsettingsvalue}
                eq 0} {else} style="display:none" {/if}>
                <div id="productparcode1">
                    <p class="form-control-static" id="parcode">
                        {$sellbilldetail->parcode} </p>
                </div>
            </td>
            <td class="myblack">
                <p class="form-control-static" id="productName">
                    {$sellbilldetail->productName} / {$sellbilldetail->productCatName}</p>
            </td>

            {if {$billsettingsData[26]->billsettingsvalue} eq 0}
            {if {$sellbilldetail->storeName} <> ""}
            <td class=" myblack">
                <div id="productparcode1">
                    <p class="form-control-static" id="storename">
                        {$sellbilldetail->storeName} </p>
                </div>
            </td>
            {else}
            <td class=" myblack">
                <div id="productparcode1">
                    <p class="form-control-static" id="storename">

                        {$sellbillData->storeName}
                    </p>
                </div>
            </td>
            {/if}
            {/if}


            <td class=" myblack  {if  $sellbilldetail->note eq ''} hidden-print{/if}"
                {if {$billsettingsData[7]->billsettingsvalue} eq 0} {else}
                style="display:none !important" {/if}>
                <p class="form-control-static" id="note"> {$sellbilldetail->note} </p>
            </td>
            <td class=" myblack" {if {$billsettingsData[53]->billsettingsvalue}
                eq 0} {else} style="display:none" {/if}>
                <div id="productunitdiv1">
                    <p class="form-control-static" id="untiname">
                        {$sellbilldetail->unitName} </p>
                </div>
            </td>

            <td class=" myblack" {if {$billsettingsData[64]->billsettingsvalue}
                eq 0} {else} style="display:none" {/if}>
                <p class="form-control-static" id="pronum"> {$sellbilldetail->pronum} </p>
            </td>

            <td class="check_tr_quantity  {if {$Programsettingdata->scunitname} eq '0'}  hidden {/if}">
                {$sellbilldetail->otherdetailquantity}
            </td>

            <td class=" myblack">
                <div id="propricechange1">
                    <p class="form-control-static" id="proprice">
                        {$sellbilldetail->proprice} </p>
                </div>
            </td>

            <td class=" myblack" {if {$billsettingsData[8]->billsettingsvalue}
                eq 0} {else} style="display:none" {/if}>
                <p class="form-control-static" id="discountvalue">
                    {$sellbilldetail->discountvalue}
                </p>
            </td>
            <td class=" myblack">
                <p class="form-control-static" id="totalprice">
                    {$sellbilldetail->faidaproducttotalprice} </p>
            </td>
        </tr>
        {capture assign=x}{$x+1}{/capture}
        {/foreach}

        </tbody>

    </table>
</div>
<button type="button" class="btn btn-primary pull-left ft-nor"> اجمالى المبيعات
    <span class="badge wht-clo">
                                            <div id="sellbilltotal">{$faidatotal}</div>
                                        </span></button>
