<html>
    <head>

        <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
        <title>GT4</title>
        <style type="text/css">
        </style>
        <style>
            @media print {
                @page {
                    size: 100mm 200mm landscape; /* landscape */
                    /* you can also specify margins here: */
                    margin: 0mm;
                    margin-right: 0mm; /* for compatibility with both A4 and Letter */
                }

                #printdiv {

                    margin-top: {
                        $ billsettingsData [ 82 ] -> billsettingsvalue
                    }

                    mm

                    ; /* user margin */
                }

            }
            .td td {
                border: 1px solid #000;
                font-size: 16px;
                text-align: center
            }

            .NEE {
                font-size: 14px;
            }

            .newdesign {
                font-size: 14px;
            }

            .copywrites {
                font-size: 11px;
            }

            @media print {
                .form-control-static {
                    font-size: 17px;
                }
            }

            table.bill td {
                border: 1px solid #000;
                text-align: center
            }

            .hidden{
                display: none;
            }
        </style>


    </head>
    <script src="../views/default/assets/js/jquery.js"></script>


    {literal}

    <script language="javascript" type="text/javascript">
        /*$(document).ready(function() {
         //window.print();

         // printDiv();
         });*/
        function printDiv() {
            var divId = document.getElementById('printdiv');
            divId.setAttribute("className", "print_section print");
            divId.setAttribute("class", "print_section print");
            window.print();
            setTimeout(window.close, 0);
        }

    </script>
    <style>
        .td td {
            border: 1px solid #000;
            font-size: 16px;
        }

        .NEE {
            font-size: 14px;
        }

        .newdesign {
            font-size: 14px;
        }

        .copywrites {
            font-size: 11px;
        }
    </style>
    <style>
        .td td {
            border: 1px solid #000;
            font-size: 16px;
        }

        .NEE {
            font-size: 14px;
        }

        .newdesign {
            font-size: 14px;
        }

        .copywrites {
            font-size: 11px;
        }

        .style2 {
            font-family: tahoma
        }

        .style4 {
            font-family: tahoma;
            font-size: 12px;
            font-weight: bold;
        }

        .serial {
            background-color: #C8C8C8;
            height: 20px;
            width: 150px;
            padding: 5px;
            margin: 5px;
            border: medium double #000000;
            text-align: center;
        }

        .style1 {
            font-size: 14px
        }

        table td {
            font-size: 16px;
            direction: rtl;
        }

        .form-control-static {
            font-size: 17px
        }

        table.bill td {
            border: 1px solid #000;
            direction: rtl;
        }
    </style>
    {/literal}
    <!-- onLoad="printDiv()" -->
    <body onLoad="printDiv()">
        <div align="center" id="printdiv">
            <b>



                {literal}
                <style>
                    .a4 .s1 {
                        background: #CCC;
                    }

                    .a4 .s2 {
                        background: #EEE;
                    }

                    .a4 table {
                        text-align: center;
                    }

                    .a4 td, .a4 th {
                    }

                    .a4 th {
                        font-size: 13px;
                    }

                    /* .a4 td,.a4 th{border:1px solid #333;} */
                    .a4 .footer {

                        margin-top: 7px;
                    }

                    .a4 .bbottom, .a5 .bbottom {
                        position: absolute;
                        bottom: 7px;
                        right: 0;
                        left: 0;
                    }

                    .f-left {
                        float: left
                    }

                    .f-right {
                        float: right
                    }

                    .center {
                        text-align: center;
                    }

                    .b-radius td {
                        border: 1px solid #333;
                        border-radius: 50px;
                        padding: 4px 10px;
                        background-color: #fff;
                    }

                    .bg-black {
                        background-color: #817e91;

                    }

                    .bg-black td {
                        border: 0;
                        margin: 5px;
                    }

                    .table-pro {
                        border: 1px solid #444;
                        border-radius: 10px;
                        margin-top: 5px;
                        padding: 0px;
                    }

                    .table-pro td {
                        /* border:1px solid #444 */
                    }

                    /* .table-pro thead td{
                        border:1px solid #444
                    } */
                    .table-pro h6 {
                        margin: 0;
                    }

                    .table-bordered td, .table-bordered th {
                        border: 1px solid #444 !important
                    }

                    .table-bordered td {
                        border-bottom: 0 !important;
                        border-top: 0 !important;
                        border-left: 0 !important
                    }

                    .table-bordered th {
                        border-top: 0 !important;
                        border-left: 0 !important;
                        padding: 5px;
                    }

                    .borderBottom td {
                        border-bottom: 1px solid #444 !important;
                    }

                    .a5 td {
                        font-size: 15px;
                    }
                </style>


                {/literal}



                <div class="a4 a5">
                    {assign var=itrs value=1}
                    {assign var=itr value=1}
                    {foreach $sellbilldetailData as $sellbilldetails}
                    {if  $itr eq 1}
                    {if $Programsettingdata->imgprinthide eq 1}
                    <table width="100%" class="b-radius table-black" style="border: none;">
                        <tr style="border: none;">
                            <td width="100%" style="border: none;">
                                <img src="{$path}/images/upload/{$Programsettingdata->headerPrint}">
                            </td>
                        </tr>
                    </table>
                    {/if}

                    <table width="100%" class="b-radius table-black">
                        <tr>
                            <td width="40%">
                                <span class="f-left">Invoice Date</span>
                                <span class="center">{$sellbillData->sellbilldate}</span>
                                <span class="f-right">
                                    تاريخ الفاتوره
                                </span>
                            </td>
                            <td width="30%">
                                <span class="f-left">VAT</span>
                                <span class="center">{$Programsettingdata->taxcard}</span>
                                <span class="f-right">
                                    الرقم الضريبى
                                </span>
                            </td>

                            {if $Programsettingdata->clientserial eq 1}
                            <td width="30%">
                                <span class="f-left">Invoice No</span>
                                <span class="center">{if $sellbillData->taxBillNumber > 0}{$sellbillData->taxBillNumber}{else}{$sellbillData->sellbillid}{/if}</span>
                                <span class="f-right">
                                    رقم الفاتوره
                                </span>
                            </td>
                            {/IF}
                        </tr>
                    </table>


                    <table width="100%" class="b-radius bg-black">
                        <tr>
                            <td width="33%">
                                <span class="f-left">{if {$Programsettingdata->delegate_seller} eq 0} Seller {else}]Delegate {/if}</span>
                                <span class="center">{$sellbillData->employeename} </span>
                                <span class="f-right">
                                    {if $Programsettingdata->delegate_seller eq 0} بائع {elseif $Programsettingdata->delegate_seller == 1}مندوب {elseif $Programsettingdata->delegate_seller == 2}طبيب {/if}
                                </span>
                            </td>
                            <td width="33%">
                                <span class="f-left"> Mobile</span>
                                <span class="center">
                                    <!-- {if $billsettingsData[72]->billsettingsvalue == 0 || $userData->branchId == 0 || $userData->branchId == -1}
                                    {$Programsettingdata->phone}
                                    {else}
                                    {$branchData->mobile}
                                    {/if} -->
                                    {$clientdata->clientphone}
                                </span>
                                <span class="f-right">
                                    الجوال
                                </span>
                            </td>
                            <td width="33%">
                                <span class="f-left">Cust No</span>
                                <span class="center">{$sellbillData->sellbillclientid}</span>
                                <span class="f-right">
                                    رقم العميل
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td width="33%" {if {$billsettingsData[101]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                <span class="f-left">Bill Op.</span>
                                <span class="center">{$sellbillData->billoperationName}</span>
                                <span class="f-right">
                                    عملية الفاتورة
                                </span>
                            </td>
                            <td width="33%" {if {$billsettingsData[22]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                <span class="f-left">Comment</span>
                                <span class="center">{$sellbillData->comment}</span>
                                <span class="f-right">
                                    التعليق
                                </span>
                            </td>

                            <td width="33%">
                                <span class="f-left">User</span>
                                <span class="center">{$billUserData->employeename}</span>
                                <span class="f-right">
                                    المستخدم
                                </span>
                            </td>
                            <td width="33%">
                                <span class="f-left">Cust VAT</span>
                                <span class="center">{$clientdata->taxnumber}</span>
                                <span class="f-right">
                                    الرقم الضريبى للعميل
                                </span>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="9" {if {$billsettingsData[16]->billsettingsvalue} eq 0}  {else} style="display:none !important;" {/if}>
                                <span class="f-left">Cust Name</span>
                                <span class="center">
                                    {$sellbillData->tempclientName}
                                </span>
                                <span class="f-right">
                                    اسم العميل
                                </span>
                            </td>
                        </tr>

                    </table>
                    {/if}
                    <div  style="min-height: 550px" >


                        <table width="100%" class="table-pro table-bordered" cellspacing="0" dir="ltr">
                            <thead>
                                <tr>
                                    <th width="10%">
                                        <h6>م</h6>
                                        <h6>S</h6>
                                    </th>
                                    <th width="10%" {if {$billsettingsData[20]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                        <h6>الباركود</h6>
                                        <h6>{if {$billsettingsData[20]->billsettingsvalue} eq 0}  {else} style="display:none !important" {/if}  {$sellbilldetail->parcode}</h6>
                                    </th>
                                    <th colspan="3">
                                        <h6>اسم المنتج </h6>
                                        <h6>Name </h6>
                                    </th>
                                    <th width="10%" {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                        <h6> الوحدة </h6>
                                        <h6>unitName </h6>
                                    </th>
                                    <th width="10%" {if {$billsettingsData[46]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                        <h6>الكميه </h6>
                                        <h6>QTY </h6>
                                    </th>
                                    <th class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" width="10%">
                                        <h6>سعر  </h6>
                                        <h6>price </h6>
                                    </th>
                                    <th class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" width="10%" {if {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none" {/if} >
                                        <h6>الخصم </h6>
                                        <h6>Dis </h6>
                                    </th>
                                    <th class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" width="10%">
                                        <h6>المجموع </h6>
                                        <h6>Total </h6>
                                    </th>
                                    <th class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" width="10%">
                                        <h6>الضريبة </h6>
                                        <h6>VAT </h6>
                                    </th>
                                </tr>
                            </thead>
                            <tbody>

                                {foreach $sellbilldetails as $sellbilldetail}
                                <tr>
                                    <td>{$itrs}</td>
                                    <td {if {$billsettingsData[20]->billsettingsvalue} eq 0} {else} style="display:none !important"
                                        {/if}>{$sellbilldetail->parcode}
                                    </td>
                                    <td colspan="3" dir="rtl">
                                        {if $sellbilldetail->soldSerialsInDetails != ""} (sn: {$sellbilldetail->soldSerialsInDetails}) {/if}

                                        {$sellbilldetail->productName}{if {$billsettingsData[60]->billsettingsvalue} eq
                                        0}/{$sellbilldetail->productCatName}{/if}
                                        {if {$billsettingsData[79]->billsettingsvalue} eq 0}
                                        {if isset($sellbilldetail->sizeName) && $sellbilldetail->sizeName
                                        !=""}/{$sellbilldetail->sizeName}{/if}
                                        {if isset($sellbilldetail->colorName) && $sellbilldetail->colorName
                                        !=""}/{$sellbilldetail->colorName}{/if}
                                        {/if}


                                    </td>
                                    <td {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else} style="display:none"
                                        {/if}>{$sellbilldetail->unitName}
                                    </td>
                                    <td
                                        {if {$billsettingsData[46]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                        {$sellbilldetail->sellbilldetailquantity} </td>
                                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                                        {$sellbilldetail->sellbilldetailprice}
                                    </td>
                                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}" {if {$billsettingsData[23]->billsettingsvalue} eq 0} {else} style="display:none" {/if}>
                                        {$sellbilldetail->discountvalue}
                                    </td>

                                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}"> {$sellbilldetail->sellbilldetailtotalprice}</td>
                                    <!-- <td>{$taxvalue} {$Programsettingdata->currancy} ({$sellbillData->tax}%)</td> -->
                                    <td class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                                        {if $Programsettingdata->valueadded == 0}
                                        {($sellbillData->tax * $sellbilldetail->sellbilldetailtotalprice) / 100}
                                        {else if $Programsettingdata->valueadded == 1}
                                        {assign var=taxPer value=$sellbillData->tax/100}
                                        {assign var=taxCalculated value=(($sellbilldetail->sellbilldetailtotalprice * $taxPer) / (1 + $taxPer))}
                                        {$taxCalculated|string_format:"%.2f"}
                                        {/if}


                                        {$Programsettingdata->currancy} ({$sellbillData->tax}%)</td>
                                </tr>
                                {capture assign=itrs}{$itrs+1}{/capture}
                                {/foreach}

                                <!-- {if  {count($sellbilldetails)} < 21 and $itr > 1}
                                {for $foo=1 to {21 - count($sellbilldetails)} }
                                <tr style="display: block;height: 10px;">
                                    <td colspan="5"></td>
                                </tr>
                                {/for}
                                {/if} -->

                            </tbody>
                        </table>
                    </div>

                    {if  $itr eq  {count($sellbilldetailData)}}
                    <table width="99.5%" class="table-pro table-bordered borderBottom" border="1" cellpadding="" cellspacing="0" dir="rtl">

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                            <!-----------الدين بعد ------------------->

                            {if {$billsettingsData[19]->billsettingsvalue} eq 0}
                            <td width="70%" align="center" class="style1" {if {{$sellbillData->sellbilltotaldeptafter}}
                                <> 0} {else} style="display:none !important" {/if}} >اجمالى المديونيه
                            </td>


                            {/if}
                            <!-----------الدين بعد ------------------->


                            {if {$billsettingsData[19]->billsettingsvalue} eq 0}

                            <td align="center" class="style1" {if {{$sellbillData->sellbilltotaldeptafter}} <> 0} {else}
                                style="display:none !important" {/if}>{$sellbillData->sellbilltotaldeptafter}
                            </td>
                            {/if}
                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                            <!-----------الدين قبل ------------------->

                            {if {$billsettingsData[18]->billsettingsvalue} eq 0}
                            <td width="70%" align="center" class="style1" {if {{$sellbillData->sellbilltotaldeptbefor}}
                                <> 0} {else} style="display:none !important" {/if}} >المديونية السابقة
                            </td>


                            {/if}

                            <!-----------الدين قبل ------------------->


                            {if {$billsettingsData[18]->billsettingsvalue} eq 0}

                            <td align="center" class="style1" {if {{$sellbillData->sellbilltotaldeptbefor}} <> 0} {else}
                                style="display:none !important" {/if}>{$sellbillData->sellbilltotaldeptbefor}
                            </td>
                            {/if}
                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                            <!-----------الباقى ------------------->
                            {if {$billsettingsData[30]->billsettingsvalue} eq 0 && $sellbillData->sellbillfinalbill > 0}
                            <td width="70%" align="center">الباقي</td>
                            {/if}


                            <!--الباقى -->
                            {if {$billsettingsData[30]->billsettingsvalue} eq 0 && $sellbillData->sellbillfinalbill > 0}
                            <td align="center" class="style1">{$sellbillData->sellbillfinalbill}</td>
                            {/if}
                        </tr>


                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">


                            <!-----------الصافي ------------------->
                            {if {$billsettingsData[28]->billsettingsvalue} eq 0 && $sellbillData->sellbillaftertotalbill != $sellbillData->sellbilltotalbill}
                            <td width="9%" align="center">الصافي</td>
                            {/if}

                            <!--الصافي -->
                            {if {$billsettingsData[28]->billsettingsvalue} eq 0 && $sellbillData->sellbillaftertotalbill != $sellbillData->sellbilltotalbill}
                            <td align="center" class="style1">{$sellbillData->sellbillaftertotalbill}</td>
                            {/if}
                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                            <!-----------ضريبه المبيعات ------------------->
                            {if $billnameAddData->taxOfDiscountPrint eq 0 && $sellbillData->taxOfDiscountVal > 0}
                            <td width="8%" align="center">ضريبة خصم</td>
                            {/if}

                            {if $billnameAddData->taxOfDiscountPrint eq 0 && $sellbillData->taxOfDiscountVal > 0}
                            <td align="center" class="style1">
                                {$sellbillData->taxOfDiscountVal}
                            </td>
                            {/if}

                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                            {if {$billsettingsData[31]->billsettingsvalue} eq 0 && $taxvalue > 0}
                            <td width="8%" align="center">
                                الضريبه
                            </td>

                            {/if}


                            {if {$billsettingsData[31]->billsettingsvalue} eq 0 && $taxvalue > 0}
                            <td align="center" class="style1">
                                {$taxvalue}{$Programsettingdata->currancy} ({$sellbillData->tax}%)
                                <!-- <table style="width:100%; !important ;" >

                                    <tr>
                                        <td  style="text-align:center; width:50% "> {$taxvalue}</td>

                                        <td style="text-align:center; width:50% "> %{$sellbillData->tax}</td>

                                    </tr>

                                </table> -->
                            </td>
                            {/if}

                        </tr>


                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">
                            {if {$sellbillData->sellbilldiscount} > 0 && {$billsettingsData[47]->billsettingsvalue} eq
                            0}
                            <td width="8%" align="center">قيمة الخصم</td>
                            <!--<td width="8%" align="center">نوع الخصم</td>-->
                            {/if}
                            {if {$sellbillData->sellbilldiscount} > 0 && {$billsettingsData[47]->billsettingsvalue} eq
                            0}
                            <td align="center" class="style1">
                                {$discountvalue}{if $sellbillData->sellbilldiscounttype eq
                                2}(%{$sellbillData->sellbilldiscount}){/if}
                            </td>
                            {/if}


                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">


                            {if  $sellbillData->extraDiscountVal > 0 && $billsettingsData[90]->billsettingsvalue == 1 && $billnameAddData->extraDiscountPlace == 1}
                            <td width="8%" align="center">خصم اضافى</td>
                            {/if}

                            {if  $sellbillData->extraDiscountVal > 0 && $billsettingsData[90]->billsettingsvalue == 1 && $billnameAddData->extraDiscountPlace == 1}
                            <td align="center" class="style1">
                                {$sellbillData->extraDiscountVal}
                            </td>
                            {/if}

                        </tr>

                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                            <td width="70%" align="center" class="">الاجمالي</td>

                            <td align="center" class="style1">{$sellbillData->sellbilltotalbill}</td>

                        </tr>
                        <tr class="{if $Usergroupdata->hideBillPrices == 1}hidden{/if}">

                            <!-----------المدفوع ------------------->
                            {if {$billsettingsData[29]->billsettingsvalue} eq 0 && $sellbillData->sellbilltotalpayed != $sellbillData->sellbilltotalbill}
                            <td width="8%" align="center">المدفوع</td>
                            {/if}

                            <!--المدفوع -->
                            {if {$billsettingsData[29]->billsettingsvalue} eq 0 && $sellbillData->sellbilltotalpayed != $sellbillData->sellbilltotalbill}
                            <td align="center" class="style1">{$sellbillData->sellbilltotalpayed}</td>
                            {/if}
                        </tr>
                        <tr>
                            <td {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else} style="display:none
                                !important" {/if} width="9%" align="center" class="">عدد الوحدات
                            </td>

                            <td {if {$billsettingsData[21]->billsettingsvalue} eq 0} {else} style="display:none
                                !important" {/if} align="center" class="style1">
                                {if {$sellbillData->sellQuantity} <= 0}
                                {$quantity}
                                {else}
                                {$sellbillData->sellQuantity}
                                {/if}
                            </td>

                        </tr>


                        <tr>



















                            <!--                                <td align="center" class="style1">
                                                                {if {$sellbillData->sellbilldiscounttype} eq 1}
                                                                مباشر
                                                                {else}
                                                                بنسبة
                                                                {/if}
                                                            </td>-->






                            <!--</tr>-->
                    </table>
                    {if count($billPayments)>0}
                    <table width="99.5%" class="table-pro table-bordered borderBottom {if $Usergroupdata->hideBillPrices == 1}hidden{/if}" border="1" cellpadding="" cellspacing="0" dir="rtl">
                        <tr>
                            <td>    م</td>
                            <td>  قيمة الفاتورة</td>
                            <!--<td>  قيمة الدين قبل</td>-->
                            <td> القيمة المدفوعة </td>
                            <!--<td>  قيمة الدين بعد</td>-->
                            <td>   تاريخ الدفع</td>
                            <td>    طريقة الدفع</td>
                        </tr>
                        {foreach $billPayments as $data}
                        <tr class="gradeA ">
                            <td> {$data.itra}</td>
                            <td> {$data.finalnetbillvalue}  </td>
                            <!--<td> {$data.wait_before}</td>-->
                            <td> {$data.clientdebtchangeamount} </td>
                            <!--<td> {$data.wait_after}</td>-->
                            <td> {$data.date} </td>
                            <td> {$data.paytype} </td>
                        </tr>
                        {/foreach}
                    </table>
                    {/if}


                    <table width="99%" class="b-radius bg-black">
                        <tr {if $billsettingsData[72]->billsettingsvalue == 2}style="display:none;"{/if}>
                            <td width="50%">
                                <span class="f-left">Address</span>
                                <span class="center">
                                    {if $billsettingsData[72]->billsettingsvalue == 0 || $userData->branchId == 0 || $userData->branchId == -1}
                                    {$Programsettingdata->address}
                                    {else}
                                    {$branchData->branchAddress}
                                    {/if}
                                </span>
                                <span class="f-right">
                                    العنوان
                                </span>
                            </td>
                            <td width="50%">
                                <span class="f-left"> Mobile</span>
                                <span class="center">
                                    {if $billsettingsData[72]->billsettingsvalue == 0 || $userData->branchId == 0 || $userData->branchId == -1}
                                    {$Programsettingdata->phone}
                                    {else}
                                    {$branchData->mobile}
                                    {/if}
                                </span>
                                <span class="f-right">
                                    الجوال
                                </span>
                            </td>

                        </tr>

                    </table>

                    <table width="99%" class="table-pro">
                        <tr>
                            <td>
                                <p style="text-align: left;">

                                    ---------------------------------------------- Name</p>
                                <p style="text-align: left;">

                                    ----------------------------------------------Signture</p>
                                <p style="text-align: left;">

                                    ----------------------------------------------Recipt Date</p>

                            </td>

                            <td rowspan="3">
                                {if $qrerp == 3 ||  $qrerp == 4}
                                <img src="data:image/jpeg;base64,{$base64qr}" style="width:100px;height: 100px;"/>
                                {/if}
                                {if $qrerp == 2 ||  $qrerp == 4}
                                <img src="data:image/jpeg;base64,{$base64qrs}" style="width:100px;height: 100px;"/>
                                {/if}
                            </td>
                            <td>
                                <p style="text-align: right;">
                                    اسم العميل
                                    ----------------------------------------------</p>
                                <p style="text-align: right;">
                                    توقيع العميل
                                    ----------------------------------------------</p>
                                <p style="text-align: right;">
                                    تاريخ الاستلام
                                    ----------------------------------------------</p>

                            </td>
                        </tr>

                    </table>


                    <table>
                        <tr {if $billsettingsData[81]->billsettingsvalue == 1}style="display:none"{/if}>
                            <td colspan="5" style="text-align:center !important"><p><span class="copywrites1">تصميم شركة جي تي فور 01110070882</span>
                                </p></td>
                        </tr>
                    </table>
                    {/if}
                    {capture assign=itr}{$itr+1}{/capture}
                    {/foreach}
                </div>

                </body>