?>

                    <?php 
    echo smarty_function_math(array('equation' => "x-y-z", 'x' => $this->_tpl_vars['selectedTotalCost'], 'y' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[2]->totalCost->all, 'z' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[3]->totalCost->all, 'assign' => 'selectedTotalCostMinusLoss'), $this);
    echo is_array($_tmp = $this->_tpl_vars['selectedTotalCostMinusLoss']) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
    ?>
 <br>
                    <span style="font-size:10px">
                        <?php 
    echo smarty_function_math(array('equation' => "x+y+z", 'x' => $this->_tpl_vars['selectedTotalCostMinusLoss'], 'y' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[2]->totalCost->all, 'z' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[3]->totalCost->all, 'assign' => 'selectedTotalCost'), $this);
    echo is_array($_tmp = $this->_tpl_vars['selectedTotalCost']) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
    ?>
 / 
                        <?php 
    echo smarty_function_math(array('equation' => "-x-y", 'x' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[2]->totalCost->all, 'y' => $this->_tpl_vars['selected']['transactionTypesFirstTier']->types[3]->totalCost->all, 'assign' => 'selectedTotalLoss'), $this);
    echo is_array($_tmp = $this->_tpl_vars['selectedTotalLoss']) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
    ?>

                    </span>
                </td>
            <?php 
}
?>
        </tr>
        <tr class="light">
            <td><?php 
echo smarty_function_localize(array('str' => 'avg commission'), $this);
?>
</td>
            <td><span class="NumberData"><?php 
echo smarty_function_ratioPercentage(array('p1' => $this->_tpl_vars['selected']['transactions']->commission->all, 'p2' => $this->_tpl_vars['selected']['transactionsFirstTier']->totalCost->all), $this);
  <tr class="light">
    <td align="left" width="30%" nowrap><?php 
echo smarty_function_localize(array('str' => 'All Chargebacks'), $this);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['todayChargebacks']->commission->approved) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['todayChargebacks']->commission->paid) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['todayChargebacks']->commission->pending) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['thisMonthChargebacks']->commission->approved) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['thisMonthChargebacks']->commission->paid) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
    <td align="center"><?php 
echo is_array($_tmp = $this->_tpl_vars['thisMonthChargebacks']->commission->pending) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</td>
  </tr>
</table>
                                        /<span class="NumberData"><?php 
echo is_array($_tmp = smarty_function_ratio(array('p1' => $this->_tpl_vars['sumTransaction']->commission->paid, 'p2' => $this->_tpl_vars['impressions']->count->unique), $this)) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</span></td>
                </tr>
                <tr>
                    <td align="left"><?php 
echo smarty_function_localize(array('str' => 'Avg. commission per sale'), $this);
?>
</td>
                    <td align="right"><span class="NumberData"><?php 
echo is_array($_tmp = smarty_function_ratio(array('p1' => $this->_tpl_vars['sumTransaction']->commission->pending, 'p2' => $this->_tpl_vars['sales']->count->pending), $this)) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</span></td>
                    <td align="right"><span class="NumberData"><?php 
echo is_array($_tmp = smarty_function_ratio(array('p1' => $this->_tpl_vars['sumTransaction']->commission->declined, 'p2' => $this->_tpl_vars['sales']->count->declined), $this)) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</span></td>
                    <td align="right"><span class="NumberData"><?php 
echo is_array($_tmp = smarty_function_ratio(array('p1' => $this->_tpl_vars['sumTransaction']->commission->approved, 'p2' => $this->_tpl_vars['sales']->count->approved), $this)) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</span></td>
                    <td align="right"><span class="NumberData"><?php 
echo is_array($_tmp = smarty_function_ratio(array('p1' => $this->_tpl_vars['sumTransaction']->commission->paid, 'p2' => $this->_tpl_vars['sales']->count->paid), $this)) ? $this->_run_mod_handler('currency_span', true, $_tmp) : smarty_modifier_currency_span($_tmp);
?>
</span></td>
                </tr>
            </table>
        </div>
    </div>
</div>