{literal}
<style>
    .myresult
    {
        -webkit-print-color-adjust: exact;
    }
    @media print{
        tr > .myborder{
            border: 1px solid black !important;

        }

        .myborder
        {
            color: solid #000 !important;


        }
    }

</style>
{/literal}

<input type="hidden" name="togetherArrCount" id="togetherArrCount" value="{$togetherArrCount}"/>
<input type="hidden" name="togetherArrJSON" id="togetherArrJSON" value='{$togetherArrJSON}'/>
{foreach $togetherArr as $key}
<table class="table billtable table-bordered table-black" id="printOrderTable">
    <thead>
        <tr>
            <th colspan="2" class="myborder" style="background: #fff !important;color: #000 !important">
                {if $arrayToPrint[$key][0]->fromBillDirectWithId > 0}
                رقم الفاتورة: {$arrayToPrint[$key][0]->fromBillDirectWithId}
                {elseif $arrayToPrint[$key][0]->tableId == -2 || $arrayToPrint[$key][0]->tableId == -1}
                رقم الطلب: {$arrayToPrint[$key][0]->daySreial}
                {else}
                {$arrayToPrint[$key][0]->tableId}
                اسم الصالة: {$arrayToPrint[$key][0]->hallName}
                {/if}
            </th>
        </tr>
        {if $arrayToPrint[$key][0]->fromBillDirectWithId < 1}
        <tr>
            <th colspan="2" class="myborder" style="background: #fff !important;color: #000 !important">
                {if $arrayToPrint[$key][0]->tableId == -2}
                دليفرى
                {elseif $arrayToPrint[$key][0]->tableId == -1}
                تيك أواى
                {else}
                طاولة:{$arrayToPrint[$key][0]->tableId}-{$arrayToPrint[$key][0]->name}
                {/if}
            </th>
        </tr>
        {/if}
        <tr>
            <th class="wdt200 myborder" style="background: #fff !important;color: #000 !important">الصــــــــنف</th>
            <th class="wdt200 myborder" style="background: #fff !important;color: #000 !important">لكميه</th>
        </tr>
    </thead>
    <tbody>
        {foreach $arrayToPrint[$key] as $product}
        <tr>
            <td class="myborder">
                {$product->productCatName}  -   {$product->productName} {if $product->notesStr!=""}- {$product->notesStr}{/if}
            </td>
            <td  class="myborder">
                {$product->quantity}
            </td>

        </tr>
        {/foreach}
        {if $arrayToPrint[$key][0]->billComment != ""}
        <tr>
            <th class="myborder">
                تعليق:
            </th>
            <td class="myborder">
                {$arrayToPrint[$key][0]->billComment}
            </td>
        </tr>
        {/if}
    </tbody>
</table>
<br/>
{/foreach}
