<?php
/* Smarty version 3.1.33, created on 2020-08-11 10:27:25
  from '/Users/codeworldweb.com/websites/uvocorp/content/modules/leavetip/views/order.tip.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f32728db7d562_96698915',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'f0d4895e75b67538a08e9d415054f308b6fd2bb2' => 
    array (
      0 => '/Users/codeworldweb.com/websites/uvocorp/content/modules/leavetip/views/order.tip.tpl',
      1 => 1597141624,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f32728db7d562_96698915 (Smarty_Internal_Template $_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['user']->value['is_admin'] || $_smarty_tpl->tpl_vars['user']->value['is_sub_admin']) {?>
    <tr>
        <th>Customer Tip</th>
        <td>
            <span class="text-success text-lg"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['amountFormatted']->value, ENT_QUOTES, 'UTF-8');?>
</span>
        </td>
    </tr>

    <?php if ($_smarty_tpl->tpl_vars['writerTipAmount']->value > 0) {?>
        <tr>
            <th>Writer Tip</th>
            <td>
                <span class="text-success text-lg"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['writerTipAmountFormatted']->value, ENT_QUOTES, 'UTF-8');?>
</span>
            </td>
        </tr>
    <?php }?>

    <?php if ($_smarty_tpl->tpl_vars['editorTipAmount']->value > 0) {?>
        <tr>
            <th>Editor Tip</th>
            <td>
                <span class="text-success text-lg"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['editorTipAmountFormatted']->value, ENT_QUOTES, 'UTF-8');?>
</span>
            </td>
        </tr>
    <?php }
}?>

<?php if ($_smarty_tpl->tpl_vars['user']->value['is_writer'] && $_smarty_tpl->tpl_vars['writerTipAmount']->value > 0) {?>
    <tr>
        <th>Tip</th>
        <td>
            <span class="text-md">You received a <span class="text-success"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['writerTipAmountFormatted']->value, ENT_QUOTES, 'UTF-8');?>
</span> tip</span>
        </td>
    </tr>
<?php }?>

<?php if ($_smarty_tpl->tpl_vars['user']->value['is_editor'] && $_smarty_tpl->tpl_vars['editorTipAmount']->value > 0) {?>
    <tr>
        <th>Tip</th>
        <td>
            <span class="text-md">You received a <span class="text-success"><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['editorTipAmountFormatted']->value, ENT_QUOTES, 'UTF-8');?>
</span> tip</span>
        </td>
    </tr>
<?php }
}
}
