{foreach from=$infos.paniers_eligibles item=lieu}
<table class="table panier">
    <thead>
        <tr class="lieuTitre">
            <th colspan="2">{$lieu.nom}</th>
            <th{if $smarty.request.complements==1} colspan="3"{/if}>{$lieu.nb_paniers} paniers</th>
        </tr>
        <tr class="head">
            <th class="nom">client</th>
            <th class="frequence">fréquence</th>
            <th class="nb_paniers_restants">nb. de paniers restant</th>
            {if $smarty.request.complements==1}
            <th class="complement center">complement</th>
            <th class="complement_regle center">réglé</th>
            {/if}
        </tr>
    </thead>
    <tbody>
    {foreach from=$lieu.paniers item=pType}
        <tr class="panierTitre">
            <th colspan="6">{$pType.type_nom} <small>(x{$pType.nb_paniers})</small></th>
        </tr>
        {foreach from=$pType.paniers item=p}
        <tr{if !$p.present} class="absent"{/if} contrat="{$p.contrat_ref}">
            <td class="nom">{$p.client_prenom} {$p.client_nom}</td>
            <td class="frequence">{if $p.present}{$p.frequence_print}{else}absent{/if}</td>
            <td class="nb_paniers_restants">{$p.nb_paniers_restants}</td>
            {if $smarty.request.complements==1}
            <td class="complement center">{if $p.complement >0}{$p.complement} €{else}.{/if}</td>
            <td class="complement_regle center">{if $p.complement_regle >0}{$p.complement_regle} €{else}.{/if}</td>
            {/if}
        </tr>
        {/foreach}
    {/foreach}
    </tbody>
</table>
{/foreach}