<?php
/* Smarty version 4.3.2, created on 2024-04-08 17:37:40
  from '/var/www/html/public/legacy/themes/suite8/include/DetailView/tab_panel_content.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_66142b64c41d37_92159021',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'ae43a092a9981f271069403736095e48e030cc73' => 
    array (
      0 => '/var/www/html/public/legacy/themes/suite8/include/DetailView/tab_panel_content.tpl',
      1 => 1709743133,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_66142b64c41d37_92159021 (Smarty_Internal_Template $_smarty_tpl) {
$_smarty_tpl->_checkPlugins(array(0=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.counter.php','function'=>'smarty_function_counter',),1=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_evalcolumn.php','function'=>'smarty_function_sugar_evalcolumn',),2=>array('file'=>'/var/www/html/public/legacy/include/Smarty/plugins/function.sugar_field.php','function'=>'smarty_function_sugar_field',),));
?>
{*
/**
 *
 * SugarCRM Community Edition is a customer relationship management program developed by
 * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
 *
 * SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
 * Copyright (C) 2011 - 2018 SalesAgility Ltd.
 *
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 *
 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
 *
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 *
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo and "Supercharged by SuiteCRM" logo. If the display of the logos is not
 * reasonably feasible for technical reasons, the Appropriate Legal Notices must
 * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM".
 */
 *}
{*<!-- tab_panel_content.tpl START -->*}

{*<!-- tab panel main div -->*}

<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['panel']->value, 'rowData', false, 'row', 'rowIteration', array (
));
$_smarty_tpl->tpl_vars['rowData']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['row']->value => $_smarty_tpl->tpl_vars['rowData']->value) {
$_smarty_tpl->tpl_vars['rowData']->do_else = false;
?>

    {*row*}

    {*<!-- ROW -->*}
<div class="row detail-view-row">

    <?php echo smarty_function_counter(array('name'=>"columnCount",'start'=>0,'print'=>false,'assign'=>"columnCount"),$_smarty_tpl);?>


    <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['rowData']->value, 'colData', false, 'col', 'colIteration', array (
  'total' => true,
  'index' => true,
));
$_smarty_tpl->tpl_vars['colData']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['col']->value => $_smarty_tpl->tpl_vars['colData']->value) {
$_smarty_tpl->tpl_vars['colData']->do_else = false;
$_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']++;
?>

        {*column*}

        {*<!-- COLUMN -->*}

        <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total'] : null) > 1 && $_smarty_tpl->tpl_vars['colData']->value['colspan'] != 3) {?>
            {*<!-- DIV column - colspan != 3 -->*}
            <div class="col-xs-12 col-sm-6 detail-view-row-item detail-view-bordered" data-field="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['name'];?>
">
        <?php } else { ?>
            {*<!-- DIV column - colspan = 3 -->*}
            <div class="col-xs-12 col-sm-12 detail-view-row-item" data-field="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['name'];?>
">
        <?php }?>


        <?php echo smarty_function_counter(array('name'=>"fieldCount",'start'=>0,'print'=>false,'assign'=>"fieldCount"),$_smarty_tpl);?>


        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['colData']->value, 'subField', false, 'field', 'fieldIteration', array (
));
$_smarty_tpl->tpl_vars['subField']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['field']->value => $_smarty_tpl->tpl_vars['subField']->value) {
$_smarty_tpl->tpl_vars['subField']->do_else = false;
?>

            <?php if (!(!(isset($_smarty_tpl->tpl_vars['subField']->value['name'])) || !$_smarty_tpl->tpl_vars['subField']->value['name'])) {?>
                {*<!-- [hide!!] -->*}

                <?php if ($_smarty_tpl->tpl_vars['fieldCount']->value < (isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total'] : null) && !empty($_smarty_tpl->tpl_vars['colData']->value['field']['name'])) {?>

                    <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total'] : null) > 1 && $_smarty_tpl->tpl_vars['colData']->value['colspan'] != 3) {?>
                        {*<!-- DIV inside - colspan != 3 -->*}

                    <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['index'] : null) == 0) {?>
                        <div class="col-xs-12 col-sm-4 label col-1-label">
                    <?php } else { ?>
                        <div class="col-xs-12 col-sm-4 label col-2-label">
                    <?php }?>
                    <?php } else { ?>
                        {*<!-- DIV inside - colspan = 3 -->*}
                        <div class="col-xs-12 col-sm-2 label col-1-label">
                    <?php }?>

                    {*label*}

                    {*<!-- LABEL -->*}

                    <?php if ((isset($_smarty_tpl->tpl_vars['colData']->value['field']['customLabel']))) {?>
                        <?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['customLabel'];?>

                    <?php } elseif ((isset($_smarty_tpl->tpl_vars['colData']->value['field']['label'])) && strpos($_smarty_tpl->tpl_vars['colData']->value['field']['label'],'$')) {?>
                        {capture name="label" assign="label"}<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['label'];?>
{/capture}
                        {$label|strip_semicolon}:
                    <?php } elseif ((isset($_smarty_tpl->tpl_vars['colData']->value['field']['label']))) {?>
                        {capture name="label" assign="label"}{sugar_translate label='<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['label'];?>
' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}{/capture}
                        {$label|strip_semicolon}:
                    <?php } elseif ((isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]))) {?>
                        {capture name="label" assign="label"}{sugar_translate label='<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['vname'];?>
' module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}{/capture}
                        {$label|strip_semicolon}:
                    <?php } else { ?>
                        &nbsp;
                    <?php }?>

                    <?php if ((isset($_smarty_tpl->tpl_vars['colData']->value['field']['popupHelp'])) || (isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']])) && (isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['popupHelp']))) {?>
                        <?php if ((isset($_smarty_tpl->tpl_vars['colData']->value['field']['popupHelp']))) {?>
                            {capture name="popupText" assign="popupText"}{sugar_translate label="<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['popupHelp'];?>
" module="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
"}{/capture}
                        <?php } elseif ((isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['popupHelp']))) {?>
                            {capture name="popupText" assign="popupText"}{sugar_translate label="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['popupHelp'];?>
" module='<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
'}{/capture}
                        <?php }?>
                        {sugar_help text=$popupText WIDTH=400}
                    <?php }?>

                    </div>
                    {*<!-- /DIV inside  -->*}

                    <?php if ((isset($_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total']) ? $_smarty_tpl->tpl_vars['__smarty_foreach_colIteration']->value['total'] : null) > 1 && $_smarty_tpl->tpl_vars['colData']->value['colspan'] != 3) {?>
                        {*<!-- phone (version 1) -->*}
                        <div class="col-xs-12 col-sm-8 detail-view-field d-flex<?php if ($_smarty_tpl->tpl_vars['inline_edit']->value && !empty($_smarty_tpl->tpl_vars['colData']->value['field']['name']) && ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'] == 1 || !(isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'])))) {?> inlineEdit<?php }
if ((isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'])) && $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'] == 'phone') {?> phone<?php }?>" type="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'];?>
" field="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['name'];?>
" <?php if ($_smarty_tpl->tpl_vars['colData']->value['colspan']) {?>colspan='<?php echo $_smarty_tpl->tpl_vars['colData']->value['colspan'];?>
'<?php }?>>
                    <?php } else { ?>
                        {*<!-- phone (version 2) -->*}
                        <div class="col-xs-12 col-sm-10 detail-view-field d-flex<?php if ($_smarty_tpl->tpl_vars['inline_edit']->value && !empty($_smarty_tpl->tpl_vars['colData']->value['field']['name']) && ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'] == 1 || !(isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'])))) {?> inlineEdit<?php }
if ((isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'])) && $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'] == 'phone') {?> phone<?php }?>" type="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['type'];?>
" field="<?php echo $_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['name'];?>
" <?php if ($_smarty_tpl->tpl_vars['colData']->value['colspan']) {?>colspan='<?php echo $_smarty_tpl->tpl_vars['colData']->value['colspan'];?>
'<?php }?>>
                    <?php }?>

                    <?php if (!empty($_smarty_tpl->tpl_vars['colData']->value['field']['name'])) {?>



                    {*<!-- simple hidden start -->*}
                    {if !$fields.<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['name'];?>
.hidden}



                    <?php }?>

                    <?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['prefix'];?>



                    <?php if (($_smarty_tpl->tpl_vars['colData']->value['field']['customCode'] && !$_smarty_tpl->tpl_vars['colData']->value['field']['customCodeRenderField']) || $_smarty_tpl->tpl_vars['colData']->value['field']['assign']) {?>
                        {counter name="panelFieldCount" print=false}
                        <span id="<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['name'];?>
" class="sugar_field"><?php echo smarty_function_sugar_evalcolumn(array('var'=>$_smarty_tpl->tpl_vars['colData']->value['field'],'colData'=>$_smarty_tpl->tpl_vars['colData']->value),$_smarty_tpl);?>
</span>
                    <?php } elseif ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']] && !empty($_smarty_tpl->tpl_vars['colData']->value['field']['fields'])) {?>

                        <?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['colData']->value['field']['fields'], 'subField');
$_smarty_tpl->tpl_vars['subField']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['subField']->value) {
$_smarty_tpl->tpl_vars['subField']->do_else = false;
?>
                            <?php if ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['subField']->value]) {?>
                                {counter name="panelFieldCount" print=false}
                                <?php echo smarty_function_sugar_field(array('parentFieldArray'=>'fields','tabindex'=>$_smarty_tpl->tpl_vars['tabIndex']->value,'vardef'=>$_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['subField']->value],'displayType'=>'DetailView'),$_smarty_tpl);?>
&nbsp;
                            <?php } else { ?>
                                {counter name="panelFieldCount" print=false}
                                <?php echo $_smarty_tpl->tpl_vars['subField']->value;?>

                            <?php }?>
                        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

                    <?php } elseif ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]) {?>
                        {counter name="panelFieldCount" print=false}
                        <?php echo smarty_function_sugar_field(array('parentFieldArray'=>'fields','vardef'=>$_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']],'displayType'=>'DetailView','displayParams'=>$_smarty_tpl->tpl_vars['colData']->value['field']['displayParams'],'typeOverride'=>$_smarty_tpl->tpl_vars['colData']->value['field']['type']),$_smarty_tpl);?>

                    <?php }?>

                    <?php if (!empty($_smarty_tpl->tpl_vars['colData']->value['field']['customCode']) && $_smarty_tpl->tpl_vars['colData']->value['field']['customCodeRenderField']) {?>
                        {counter name="panelFieldCount" print=false}
                        <span id="<?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['name'];?>
" class="sugar_field"><?php echo smarty_function_sugar_evalcolumn(array('var'=>$_smarty_tpl->tpl_vars['colData']->value['field'],'colData'=>$_smarty_tpl->tpl_vars['colData']->value),$_smarty_tpl);?>
</span>
                    <?php }?>

                    <?php echo $_smarty_tpl->tpl_vars['colData']->value['field']['suffix'];?>


                    <?php if (!empty($_smarty_tpl->tpl_vars['colData']->value['field']['name'])) {?>



                    {/if}
                    {*<!-- simple hidden finish -->*}



                    <?php }?>

                        <?php if ($_smarty_tpl->tpl_vars['inline_edit']->value && !empty($_smarty_tpl->tpl_vars['colData']->value['field']['name']) && ($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'] == 1 || !(isset($_smarty_tpl->tpl_vars['fields']->value[$_smarty_tpl->tpl_vars['colData']->value['field']['name']]['inline_edit'])))) {?>
                        <div class="inlineEditIcon col-xs-hidden">
                            {sugar_getimage name="pencil"}
                        </div>
                        <?php }?>

                    </div>
                    <div class="dotted-border"></div>
                    {*<!-- /phone (version 1/2) -->*}

                <?php }?>



                <?php echo smarty_function_counter(array('name'=>"fieldCount",'print'=>false),$_smarty_tpl);?>


            {*<!-- [/hide!!] -->*}
            <?php }?>

        <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

        </div>
        {*<!-- /DIV column -->*}


    <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
    <?php echo smarty_function_counter(array('name'=>"columnCount",'print'=>false),$_smarty_tpl);?>


</div>
<?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>

{*<!-- /tab panel main div -->*}
<?php }
}
