{if $visitsCount > 0 }
<table class="table table-striped table-bordered table-hover dataTable">
    <thead>
        <tr>
            <th>اسم الطبيب  </th>
            <th>إجمالى  الزيارات  </th>
            <th>تم الحضور   </th>
            <th>تم الكشف   </th>
        </tr>
    </thead>
    <tbody>
        {foreach $visits as $data}
        <tr>
            <td>  {$data.doctorName}   </td>
            <td>   
                {if $data.visitCount > 0 }
                <a class="btn blue btn-xs visitDetails wds20" data-id="{$data.userId}" data-rfc="{$rfc}"  href="javascript:;" >
                    {$data.visitCount} <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="{$data.userId}"  data-rfc="{$rfc}"   href="javascript:;" >
                    {$data.visitCount} <i class="fa fa-print fleft"></i>
                </a> 
                {else}
                {$data.visitCount} 
                {/if}
            </td>

            <td>   
                {if $data.confirmed > 0 }
                <a class="btn blue btn-xs visitDetails wds20" data-id="{$data.userId}"  href="javascript:;"   data-rfc="{$rfc}"  data-confirmed="1" >
                    {$data.confirmed} <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="{$data.userId}"  data-rfc="{$rfc}"  data-confirmed="1"   href="javascript:;" >
                    {$data.confirmed} <i class="fa fa-print fleft"></i>
                </a> 
                {else}
                {$data.confirmed} 
                {/if}
            </td>

            <td>   
                {if $data.attended > 0 }
                <a class="btn blue btn-xs visitDetails wds20" data-id="{$data.userId}"  href="javascript:;"  data-rfc="{$rfc}"   data-attended="1" >
                    {$data.attended} <i class="fa fa-eye fleft"></i>
                </a> 

                <a class="btn btn-primary btn-xs doctorVisitsPrint wds20" data-doctorId="{$data.userId}"  data-rfc="{$rfc}"  data-attended="1"   href="javascript:;" >
                    {$data.attended} <i class="fa fa-print fleft"></i>
                </a> 
                {else}
                {$data.attended} 
                {/if}
            </td>

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


{else}
<h2 style="text-align: center;color: red;"> No Data Available Now.</h2>
{/if}