<?php /* Smarty version Smarty-3.1.19, created on 2017-03-23 17:42:55
         compiled from "template__system/admin_admin:../field_types/input/items_complex.tpl" */ ?>
<?php /*%%SmartyHeaderCode:45891615858d4091fa765a0-58880550%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '86a0a03800fc99125310401d14c28c1024bcb146' => 
    array (
      0 => 'template__system/admin_admin:../field_types/input/items_complex.tpl',
      1 => 1483999131,
      2 => 'template__system/admin_admin',
    ),
  ),
  'nocache_hash' => '45891615858d4091fa765a0-58880550',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'complexElements' => 0,
    'complexField' => 0,
    'form_fields' => 0,
    'form_field' => 0,
    'complexElementKey' => 0,
    'value' => 0,
    'item_amount' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.19',
  'unifunc' => 'content_58d4091fa91959_25997145',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58d4091fa91959_25997145')) {function content_58d4091fa91959_25997145($_smarty_tpl) {?>
<?php $_smarty_tpl->tpl_vars["complexField"] = new Smarty_variable('items', null, 3);
$_ptr = $_smarty_tpl->parent; while ($_ptr != null) {$_ptr->tpl_vars["complexField"] = clone $_smarty_tpl->tpl_vars["complexField"]; $_ptr = $_ptr->parent; }
Smarty::$global_tpl_vars["complexField"] = clone $_smarty_tpl->tpl_vars["complexField"];?> 
	<tr>
		<td colspan="4"></td>
	</tr>
	<tr>
		<th class="text-left invoice__th"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Item<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
		<th class="text-left invoice__th"><?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array()); $_block_repeat=true; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
Price<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo $_smarty_tpl->smarty->registered_plugins['block']['tr'][0][0]->translate(array(), $_block_content, $_smarty_tpl, $_block_repeat); } array_pop($_smarty_tpl->smarty->_tag_stack);?>
</th>
	</tr>

	<?php  $_smarty_tpl->tpl_vars["complexElementItem"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["complexElementItem"]->_loop = false;
 $_smarty_tpl->tpl_vars["complexElementKey"] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['complexElements']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["complexElementItem"]->key => $_smarty_tpl->tpl_vars["complexElementItem"]->value) {
$_smarty_tpl->tpl_vars["complexElementItem"]->_loop = true;
 $_smarty_tpl->tpl_vars["complexElementKey"]->value = $_smarty_tpl->tpl_vars["complexElementItem"]->key;
?>
		<tr id='complexFields_<?php echo $_smarty_tpl->tpl_vars['complexField']->value;?>
'>
			<?php  $_smarty_tpl->tpl_vars['form_field'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['form_field']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['form_fields']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['form_field']->key => $_smarty_tpl->tpl_vars['form_field']->value) {
$_smarty_tpl->tpl_vars['form_field']->_loop = true;
?>
				<?php if ($_smarty_tpl->tpl_vars['form_field']->value['id']=='products') {?>
					<td class="text-left invoice__td">
						<?php if ($_smarty_tpl->tpl_vars['value']->value['names'][$_smarty_tpl->tpl_vars['complexElementKey']->value]) {?>
							<?php echo $_smarty_tpl->tpl_vars['value']->value['names'][$_smarty_tpl->tpl_vars['complexElementKey']->value];?>

						<?php } else { ?>
							<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['display'][0][0]->tpl_display(array('property'=>$_smarty_tpl->tpl_vars['form_field']->value['id'],'complexParent'=>$_smarty_tpl->tpl_vars['complexField']->value,'complexStep'=>$_smarty_tpl->tpl_vars['complexElementKey']->value,'template'=>"items_list.tpl"),$_smarty_tpl);?>

						<?php }?>
					</td>
				<?php } elseif ($_smarty_tpl->tpl_vars['form_field']->value['id']!='custom_info'&&$_smarty_tpl->tpl_vars['form_field']->value['id']!='qty'&&$_smarty_tpl->tpl_vars['form_field']->value['id']!='price') {?>
					<td class="text-left">
						<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['display'][0][0]->tpl_display(array('property'=>$_smarty_tpl->tpl_vars['form_field']->value['id'],'complexParent'=>$_smarty_tpl->tpl_vars['complexField']->value,'complexStep'=>$_smarty_tpl->tpl_vars['complexElementKey']->value,'assign'=>"item_amount"),$_smarty_tpl);?>
 <?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['currencyFormat'][0][0]->currencyFormat(array('amount'=>$_smarty_tpl->tpl_vars['item_amount']->value),$_smarty_tpl);?>

					</td>
				<?php }?>
			<?php } ?>
		</tr>
	<?php } ?>

<?php $_smarty_tpl->tpl_vars["complexField"] = new Smarty_variable(false, null, 3);
$_ptr = $_smarty_tpl->parent; while ($_ptr != null) {$_ptr->tpl_vars["complexField"] = clone $_smarty_tpl->tpl_vars["complexField"]; $_ptr = $_ptr->parent; }
Smarty::$global_tpl_vars["complexField"] = clone $_smarty_tpl->tpl_vars["complexField"];?> 
<?php }} ?>
