{assign var=op_itr value=1} {foreach $rooms_info as $single} {if $single->room_no eq 4 and $op_itr <= 3} {capture assign=op_itr}{$op_itr+1}{/capture} {/if} {/foreach}
غرفة عمليات رقم 1
الدخول - الخروج الطبيب المعالج اسم العملية اسم الحالة غرفة الاقامة
{$single->enterance} - {$single->p_exit} {$single->doctor_name} {$single->operation_name} {$single->patient_name} غرفة {$single-> res_room_name}
{assign var=op_itr value=1} {foreach $rooms_info as $single} {if $single->room_no eq 5 and $op_itr <= 3} {capture assign=op_itr}{$op_itr+1}{/capture} {/if} {/foreach}
غرفة عمليات رقم 2
الدخول - الخروج الطبيب المعالج اسم العملية اسم الحالة غرفة الاقامة
{$single->enterance} - {$single->p_exit} {$single->doctor_name} {$single->operation_name} {$single->patient_name} غرفة {$single-> res_room_name}
{assign var=op_itr value=1} {foreach $rooms_info as $single} {if $single->room_no eq 6 and $op_itr <= 3} {capture assign=op_itr}{$op_itr+1}{/capture} {/if} {/foreach}
غرفة عمليات رقم 3
الدخول - الخروج الطبيب المعالج اسم العملية اسم الحالة غرفة الاقامة
{$single->enterance} - {$single->p_exit} {$single->doctor_name} {$single->operation_name} {$single->patient_name} غرفة {$single-> res_room_name}
{assign var=op_itr value=1} {foreach $rooms_info as $single} {if $single->room_no eq 7 and $op_itr <= 3} {capture assign=op_itr}{$op_itr+1}{/capture} {/if} {/foreach}
غرفة عمليات رقم 4
الدخول - الخروج الطبيب المعالج اسم العملية اسم الحالة غرفة الاقامة
{$single->enterance} - {$single->p_exit} {$single->doctor_name} {$single->operation_name} {$single->patient_name} غرفة {$single-> res_room_name}