<?php /* Smarty version Smarty-3.1.11, created on 2023-08-16 18:24:05
         compiled from "..\views\obgy\visits\childs.html" */ ?>
<?php /*%%SmartyHeaderCode:1306964dcf825c393a3-09162221%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '326a49aa9fd32b22e5167e34be711c11cbbf9dbf' => 
    array (
      0 => '..\\views\\obgy\\visits\\childs.html',
      1 => 1638654722,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1306964dcf825c393a3-09162221',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'count' => 0,
    'childs' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64dcf825d2c746_68347871',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64dcf825d2c746_68347871')) {function content_64dcf825d2c746_68347871($_smarty_tpl) {?><select  class="form-control" name="child" id="childFor" placeholder="اختر طفل " >
    <option value=""></option>
    <?php if ($_smarty_tpl->tpl_vars['count']->value>0){?>

    <?php  $_smarty_tpl->tpl_vars['data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['data']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['childs']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['data']->key => $_smarty_tpl->tpl_vars['data']->value){
$_smarty_tpl->tpl_vars['data']->_loop = true;
?>
    <option value="<?php echo $_smarty_tpl->tpl_vars['data']->value->id;?>
"><?php echo $_smarty_tpl->tpl_vars['data']->value->child_name;?>
</option>
    <?php } ?>

    <?php }?>
</select>



<script>
    $('#childFor').select2();
</script>
<?php }} ?>