<?php /* Smarty version Smarty-3.1.11, created on 2023-09-02 16:46:20
         compiled from "../views/obgy/visits/childs.html" */ ?>
<?php /*%%SmartyHeaderCode:26560430164d12ff5468713-53406890%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c1095e2d53cc6b2d04770dc21a37405a487c080e' => 
    array (
      0 => '../views/obgy/visits/childs.html',
      1 => 1638661922,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '26560430164d12ff5468713-53406890',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_64d12ff54b9ea9_48036264',
  'variables' => 
  array (
    'count' => 0,
    'childs' => 0,
    'data' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_64d12ff54b9ea9_48036264')) {function content_64d12ff54b9ea9_48036264($_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 }} ?>