{if $target == "operation_rooms"}
<select class="form-control " id="operationRoomId"  data-placeholder="Select..." >
    <option></option>
    {foreach  $result as $data}
    <option value="{$data->id}">{$data->room_no}</option>
    {/foreach}
    <option value="-2" class="deleteoptincompo">حذف</option>
</select> 
{literal}
<script type="text/javascript" >
    $('#operationRoomId').select2({width: '170px', allowClear: true, });
</script>
{/literal}
{/if}
<!----------------------------------------------------------------------------------------------------------------------------------->


{if $target == "operation_dates"}
{foreach $day_times as $data}
{if  $data->id == 5 || $data->id == 6  || $data->id == 7  || $data->id == 8  || $data->id == 9 }
<div class="col-md-1  timeBusy" >{$data->time_from} - {$data->time_to} </div>
{else}
<div class="col-md-1 btn timeFree" data-sel="0" >{$data->time_from} - {$data->time_to} </div>
{/if}
{/foreach}
{/if}

<!----------------------------------------------------------------------------------------------------------------------------------->

{if $target == "residence_rooms"}
<select class="form-control " id="residenceRoomId"  data-placeholder="Select..." >
    <option></option>
    {foreach  $result as $data}
    <option value="{$data->id}">{$data->room_no}</option>
    {/foreach}
    <option value="-2" class="deleteoptincompo">حذف</option>
</select> 
{literal}
<script type="text/javascript" >
    $('#residenceRoomId').select2({width: '170px', allowClear: true, });
</script>
{/literal}
{/if}

<!----------------------------------------------------------------------------------------------------------------------------------->

{if $target == "residence_dates"}
{foreach $day_times as $data}
{if  $data->id == 14 || $data->id == 15  || $data->id == 16  || $data->id == 17 }
<div class="col-md-1  timeBusy" >{$data->time_from} - {$data->time_to} </div>
{else}
<div class="col-md-1 btn timeFree" data-sel="0" >{$data->time_from} - {$data->time_to} </div>
{/if}
{/foreach}
{/if}


