<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height:5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> Operation Data
                        </div>

                        <div class="actions">
                            <a target="_blank"  class="btn btn-default btn-sm"
                               href="{$hosturl}/controllers/{$controllname}.php?ac=operation_all"  >
                                Show All </a>
                        </div>


                    </div>
                    <div class="portlet-body " >
                        <input type="hidden" id="operationData" value="1">
                        {foreach $floors_arr as $floor}
                        <table class="table table-bordered table-striped table-hover">
                            <caption style="    font-weight: 600;margin-top: 11px;background-color: #4DB3A2;
                                     color: #FFFFFF;text-align: center;"> 
                                غرف عمليات  {$floor->floorName}
                            </caption>
                            <tbody>
                                <tr>
                                    {foreach $floor->o_rooms as $room}
                                    <td>
                                        <table class="table table-bordered table-striped table-hover" style="margin: 0 !important ;">
                                            <tr>
                                                <th>    غرفة رقم    {$room->name}  </th>
                                            </tr>
                                            {if $room->visitCount == 1 }
                                            <tr>
                                                <td>     
                                                    <a  target="_blank"
                                                        href="{$hosturl}/controllers/{$controllname}.php?ac=operation_details&id={$room->visitId}&patientid={$room->patientId}" > 
                                                        <ul>
                                                            <li> {$room->detectionName}  </li>
                                                            <li> {$room->patientName}  </li>
                                                            <li> {$room->drName}  </li>
                                                        </ul>
                                                    </a>

                                                </td>
                                            </tr>
                                            {/if}
                                        </table>
                                    </td>
                                    {/foreach}
                                </tr>
                            </tbody>
                        </table>
                        {/foreach}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>








