<table class="dashed">
    <tr>
        <th class="floatval"></th>
        <th class="floatval">{$i.projectadmin_client}</th>
        <th class="floatval">{$i.projectadmin_fee}</th>
        <th class="floatval">{$i.basic_percentage}</th>
    </tr>
{foreach name="loop" item="ranking" from=$customer_ranking}
    <tr>
        <th class="floatval">{$smarty.foreach.loop.iteration}</th>
        <td>{$ranking->client_name}</td>
        <td class="floatval">{float_to_usnumber($ranking->sum_costs,2)}</td>
        <td class="floatval">{if $fee_sum<>0}{float_to_usnumber($ranking->sum_costs/$fee_sum*100,2)}&nbsp;%{else}-{/if}</td>
    </tr>
{/foreach}
    {if $date_from != ''}
        <tr>
            <td colspan=4>{$i.reporting_time_period}: {$date_from} - {$date_to}</td>
        </tr>
    
    {/if}
</table>