
<table class="table table-striped table-hover table-bordered rtl" style=" width: 98%;margin-bottom: 2px;">
    <thead>
        <tr>
            <th colspan="6">     عدد المرضى          </th>
        </tr>
        <tr style="    background-color: yellow;">
            <td class="col-md-2 wds15">{$rescount}</td>
            <td class="col-md-2 wds14">{$res2count}</td>
            <td class="col-md-2 wds15">{$res3count}</td>
            <td class="col-md-2 wds14">{$res6count}</td>
            <td class="col-md-2 wds14">{$res4count}</td>
            <td class="col-md-2 wds14">{$res5count}</td>
            <td class="col-md-2 wds14">{$res9count}</td>
        </tr>
        <tr>
            <th class="col-md-2 wds15  searchRecords2"   data-cat ="1"
                style="background-color: white;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/all.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
            <th class="col-md-2 wds14  searchRecords2"   data-cat ="2"
                style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/new2.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
            <th class="col-md-2 wds15  searchRecords2"   data-cat ="3"
                style="background-color: white;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/inProgress.jpeg" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
            <th class="col-md-2 wds14  searchRecords2"   data-cat ="6"
                style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/sand_clock.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
            <th class="col-md-2 wds14  searchRecords2"   data-cat ="4"
                style="background-color: white;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/printed.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
            <th class="col-md-2 wds14  searchRecords2"   data-cat ="5"
                style="background-color: #82e6e6;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/verified-symbol.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>

            <th class="col-md-2 wds14  searchRecords2"   data-cat ="9"
                style="background-color: white;" data-type="invests" data-type1="lab" >
                <img alt="" class="img-circle" 
                     src="{$hosturl}/../upload/inv_status/s-icon.png" 
                     style="height: 30px;border-radius: 0%;width: 50%;"/>
            </th>
        </tr>
    </thead>
</table>

<div style="overflow-y:  auto; max-height: 550px;" id='result_1'>
    <table class="table table-striped table-hover table-bordered rtl" style=" width: 98%;" >
        <tbody>

            {foreach $requests_all as $single}
            <tr>
                <td>
                    <a class="invStatus"   id="invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}

                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 
            {/foreach}
        </tbody>
    </table>
</div>

<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_2'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;" >
        <tbody>

            {foreach $requests_2 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>
<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_3'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;" '>
        <tbody>

            {foreach $requests_3 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>


<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_6'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;" '>
        <tbody>

            {foreach $requests_6 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>


<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_4'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;">
        <tbody>

            {foreach $requests_4 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>
<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_5'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;" >
        <tbody>

            {foreach $requests_5 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>




<div style="overflow-y:  auto; max-height: 550px;display: none;" id='result_9'>
    <table class="table table-striped table-hover table-bordered rtl" 
           style=" width: 98%;" >
        <tbody>

            {foreach $requests_9 as $single}
            <tr>
                <td>
                    <a class=" invStatus"   id=" invStatus{$single.visitid}" href="javascript:;" style=" float: right;"  data-visitid="{$single.visitid}" >
                        {if  $single.for_husband == 1 }
                        {$single.husbandName}
                        {else if  $single.for_husband == 2}

                        {if $single.child_name != ''  && $single.child_name != null } 
                        {$single.child_name}  /  {$single.wifeName}
                        {else}
                        {if $single.child_gender eq 1} طفل {else} طفلة  {/if}     /  {$single.wifeName}
                        {/if} 

                        {else}
                        {$single.wifeName}
                        {/if}
                    </a>
                </td>
                <td class="wds10">
                    <img alt="" class="img-circle" 
                         src="{$hosturl}/../upload/inv_status/{$single.statusImg}" 
                         style="height: 30px;border-radius: 0%;width: 100%;"/>
                </td>
                <td class="wds29">
                    {$single.visitDate}
                </td>
            </tr> 

            {/foreach}
        </tbody>
    </table>
</div>


