


{if count($generalSearchData)>0}
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h6 class="text-center"><strong> النتائج</strong> </h6>
            </div>
            <div class="panel-body">
                <div class="table-responsive">
                    {foreach $generalSearchData as $myData}

                    {if $myData->ourSerial!=''}
                    <table class="table table-condensed table-blak">
                        <thead>
                            <!--border-top-style:solid; border-top-color:#eed3d7;-->
                            <tr style="background-color:#eed3d7;">
                                <td><strong>اسم العميل</strong></td>
                                <td class="text-center"><strong>اسم الجهاز</strong></td>
                                <td class="text-center"><strong>سيريال الفاتورة</strong></td>
                                <td class="text-center"><strong> السيريال الخاص</strong></td>
                                <td class="text-center"><strong> سيريال القطعة</strong></td>
                                <td class="text-center"><strong> نوع الصيانة</strong></td>
                                <td class="text-center"><strong> المرحلة الحالية</strong></td>
                            </tr>
                        </thead>
                        <tbody>

                            <tr  style="border-bottom-style:solid; border-bottom-color:#eed3d7;background-color:yellow;">
                                <td>{$myData->clientname}</td>
                                <td class="text-center">{$myData->productName}</td>
                                <td class="text-center">{$myData->receiptserial}</td>
                                <td class="text-center">{$myData->ourSerial}</td>
                                <td class="text-center">{$myData->productserial}</td>
                                <td class="text-center">
                                    {if $myData->granttype == 0}
                                    صيانة
                                    {else if $myData->granttype == 1}
                                    ضمان عميل
                                    {else if $myData->granttype == 2}
                                    ضمان شركة
                                    {/if}
                                </td>
                                <td class="text-center">{$myData->title}{if $myData->title=='ضمان ذهاب' || $myData->title=='ضمان' || $myData->title=='تجهيز'}<strong style="color:green;">({$myData->suppliername}){/if}</strong></td>
                            </tr>


                        </tbody>
                    </table>
                    {/if}
                    <!---------------------------------------- small tabel ----------------------------------------->
                    {if $type==2}
                    <table class="table table-condensed table-black">

                        <thead>
                            {if $myData->ourSerial!=''}
                            <tr>
                                <td width="200" class="text-center"><strong> المرحلة من </strong></td>
                                <td width="200" class="text-center"><strong> المرحلة الى </strong></td>
                                <td width="200" class="text-center"><strong> التعليق</strong></td>
                                <td width="200" class="text-center"><strong> التاريخ/الوقت </strong></td>
                                <td width="200" class="text-center"><strong> التكلفة</strong></td>
                            </tr>


                            {/if}
                        </thead>

                        <tbody>
                            <tr>
                                <td width="200" width="200"  class="text-center" style="width:200px;">{$myData->stageTitle}</td>
                                <td width="200" class="text-center">{$myData->stageTitle2}</td>
                                <td width="200" class="text-center">{$myData->comment}</td>
                                <td width="200" class="text-center">{$myData->productHistoryDate}</td>
                                <td width="200" class="text-center">{$myData->cost}</td>
                            </tr>
                        </tbody>
                    </table>
                    {/if}
                    {/foreach}
                    <!---------------------------------------- small tabel ----------------------------------------->
                </div>
            </div>
        </div>
    </div>
</div>
{/if}

