<meta charset="utf8">
<!-- BEGIN CONTENT -->
<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">
                  <div class="caption fright">

                     الحجوزات و الأجازات 
                  </div>
                  <div class="tools fleft">
                     <a href="#" class="collapse" title="تصغير / تكبير"></a>
                  </div>
               </div>

               <div class="portlet-body">
                  <div class="table-toolbar">

                  </div>  

                  <table class="table table-bordered  table-hover rtl">
                     <thead>
                        <tr>
                           <th class="wds25">اليوم  </th>
                           <th> الحد الأقصى لعدد الزيارات الأونلاين </th>
                        </tr>
                     </thead>
                     <tbody>
                        {foreach $days as $day }
                        <tr>
                           <th>{$day.dayName}</th>
                           <td>
                              <input type="text" class="form-control updateLimit" data-dayNo="{$day.dayNo}"  
                                     data-branchId="0"    value="{$day.max_visits}"  />
                           </td>
                        </tr>
                        {/foreach}
                     </tbody>
                  </table>

                  <hr style="border: 1px solid black;     margin: 5px 0; ">

                  <table class="table table-bordered  table-hover rtl">
                     <caption class="txtc bold" style="background-color: #666;color: white; font-size: 19px;">  
                        أيام الأجازات القادمة للمركز  
                        <a  class="btn btn-default btn-sm  vacationAdd" data-branchId="0"   data-doctorId="0" 
                            data-container="vacationsTb"> 
                           <i class="fa fa-plus"></i> إضافة  </a>
                     </caption>
                     <thead>
                        <tr>
                           <th class="wds5">م   </th>
                           <th> التاريخ </th>
                           <th class="wds5">  </th>
                        </tr>
                     </thead>
                     <tbody id="vacationsTb">
                        {assign var=i value=1}
                        {foreach $allVacations as $vacation }
                        <tr>
                           <th>{$i}</th>
                           <td>
                              <input type="text" class="form-control datepicker  updateElement" data-id="{$vacation->id}"   readonly
                                     data-tableName="visits_vacation"   data-colName="day_date"    value="{$vacation->day_date}"  />
                           </td>
                           <td>
                              <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$vacation->id}"  
                                 data-tableName="visits_vacation"   data-link="{$controllname}"  data-fn="delItem">
                                 <i class="fa fa-times"></i>Delete </a>
                           </td>
                        </tr>
                        {capture assign=i}{$i+1}{/capture}
                        {/foreach}
                     </tbody>
                  </table>


               </div>
            </div>
         </div>
      </div>
   </div>
</div>


<input type="hidden" id="controllName" value="reserve_clinic"/>

<div id="displayClinicsDiv"></div>
<div id="printDayDiv"></div>
