?>
 <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);
?>
</span></td>
        </tr>                        
    </tbody>
</table>         
?>
</span></td>
                    <td align="right"><span class="NumberData"><?php 
echo smarty_function_ratioPercentage(array('p1' => $this->_tpl_vars['sumTransaction']->count->approved, 'p2' => $this->_tpl_vars['clicks']->count->raw), $this);
?>
</span>
                                        /<span class="NumberData"><?php 
echo smarty_function_ratioPercentage(array('p1' => $this->_tpl_vars['sumTransaction']->count->approved, 'p2' => $this->_tpl_vars['clicks']->count->unique), $this);
?>
</span></td>
                    <td align="right"><span class="NumberData"><?php 
echo smarty_function_ratioPercentage(array('p1' => $this->_tpl_vars['sumTransaction']->count->paid, 'p2' => $this->_tpl_vars['clicks']->count->raw), $this);
?>
</span>
                                        /<span class="NumberData"><?php 
echo smarty_function_ratioPercentage(array('p1' => $this->_tpl_vars['sumTransaction']->count->paid, 'p2' => $this->_tpl_vars['clicks']->count->unique), $this);
?>
</span></td>
                </tr>
            </table>
        </div>
    </div>
</div>

<div class="OverviewDataBox">
    <div class="OverviewDataBoxContent">
        <div class="OverviewHeader">
            <strong>
                <?php 
echo smarty_function_localize(array('str' => 'Commissions'), $this);
?>