<div class="row">
    <div class="col-md-12">
        <table class="table">
            <caption style="text-align: center;font-weight: bolder;border: 1px solid #000000  !important;">عيادات يوم {$dayName}   
            </caption>
            <thead>
                <tr style="border: 1px solid #000000  !important;">
                    <th></th>
                    {foreach $rooms as $room}
                    <th>{$room.name} </th>
                    {/foreach}
                </tr>
            </thead>
            <tbody>

                {foreach $day.hours as $hour}
                <tr>
                    <td>{$hour} </td>

                    {foreach $rooms as $room}
                    {if in_array($hour, $room.resHours)} 
                    {assign var="key" value=$hour|array_search:$room.resHours}
                    <td class="dayBusy" data-dayNo="{$day.no}" data-room="{$room.id}"  data-hour="{$hour}" >
                        {if $key !== false}
                        {$room.resNames[$key]}
                        {/if}
                    </td>
                    {else}
                    <td class="dayFree" data-dayNo="{$day.no}" data-room="{$room.id}"   
                        data-hour="{$hour}" >
                    </td>
                    {/if}
                    <!------------------------------------------------------------------------------------------------------------>

                    {assign var="i" value="3"}
                    {assign var="k" value=""}
                    {/foreach}
                </tr>

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



{literal}
<style>

    .table tr { height: 7mm; }
    .bold { font-weight: bold;}
    th { background: #ccc !important;}

    .form-group.form-md-line-input .help-block {
        position: absolute;
        margin: 2px 0 0 0;
        opacity: 1;
        filter: alpha(opacity=0);
        font-size: 13px;
    }

    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }

        .table tr { height: 7mm; }
        .bold { font-weight: bold;}
        th { background: #ccc !important;}
    }
</style>
{/literal}

<style>

    @page {ldelim}
    size: auto;
    margin-top: {$programesetting->above2}cm !important;
    margin-bottom: {$programesetting->buttom2}cm !important;
    {rdelim}

    .arbfnt {ldelim}
    font-size: {$programesetting->fontsizear2}px !important;
    {rdelim}

    .enfnt {ldelim}
    font-size: {$programesetting->fontsizeen2}px !important;
    {rdelim}

    #content, #page {
        width: 100%; 
        margin: 0; 
        float: none;
    }



</style>

