{if $programesetting->system_type == 2 || $programesetting->system_lang == 2 } {else} {/if}
اسم {if $programesetting->system_type == 2 || $programesetting->system_lang == 2} الحالة {else} المريضة {/if}
{if $programesetting->system_lang != 2}
{/if}

يرجى إختيار حالة اولاً

{if $showBtn1 == 1 } {/if} {if $showBtn2 == 1 } {/if}
{if $programesetting->branches == 1 }
الكل {foreach $branches as $branch} {$branch->name} {/foreach}
{/if} {if $programesetting->visit_period == 1 }
الكل {foreach $visit_periods as $period} {$period->name} {/foreach}
{/if}
اسم / رقم الحالة
{if $viewAll == -1}
{if $allvisit}
{assign var=i value=1} {foreach $allvisit as $key=>$value} limit_approve == 1 || $value->dept_approve == 1} style="background-color: #a59fb1 !important;" {/if} > {capture assign=i}{$i+1}{/capture} {/foreach}
{$i} {if $value->link == -1 || $value->link == '' } limit_approve != 1 && $value->dept_approve != 1 } class="visitviewed" {else} class="visitNotviewed" {/if}> {$value->patientName} {else} {$value->patientName} {/if} {if $value->leave != 1 && $smarty.session.role_id == 3 } {/if} {$value->statusno} {$value->visit_time} {$value->doctorName} {$value->detectionType}
{else}

لا توجد زيارات بعد

{/if}
{else}
{if $allvisit}
{assign var=i value=1} {foreach $allvisit as $key=>$value} limit_approve == 1 || $value->dept_approve == 1} style="background-color: #a59fb1 !important;" {/if}> {if $value->for_department eq 12 && $value->view == 1 } {else if $value->for_department eq 12 && $value->view != 1} {else } {/if} {capture assign=i}{$i+1}{/capture} {/foreach}
{$i} {if $value->link == -1 || $value->link == '' } limit_approve != 1 && $value->dept_approve != 1 } class="visitviewed" {else} class="visitNotviewed" {/if} > {$value->patientName} {else} {$value->patientName} {/if} {$value->statusno} {$value->visit_time} طباعة طباعة {$value->doctorName} {$value->detectionType}
{else}

لا توجد زيارات بعد

{/if}
{/if}