{foreach from=$lieux item=lieu}
<table class="table panier">
    <thead>
        <tr class="lieuTitre" lieu_ref="{$lieu.ref}">
            <th colspan="3">{$lieu.nom}</th>
            <th class="nb_total_paniers">{$lieu.nb_paniers} paniers</th>
        </tr>
        <tr class="head">
            <th class="status">#</th>
            <th class="nom">client</th>
            <th class="frequence">fréquence</th>
            <th class="nb_paniers_restants">nb. de paniers restant</th>
        </tr>
    </thead>
    <tbody>
    {foreach from=$lieu.paniers item=pType}
        <tr class="panierTitre" type_ref="{$pType.type_ref}">
            <th colspan="4">{$pType.type_nom} <small>(x{$pType.paniers|@count})</small></th>
        </tr>
        {foreach from=$pType.paniers item=p}
        <tr class="panier{if $p.absence} absent{/if}" lieu_ref="{$p.lieu_depot_ref}" contrat="{$p.contrat_ref}" type_ref="{$pType.type_ref}" type_nom="{$pType.type_nom}"{if $p.absence} data-toggle="tooltip" data-placement="left" title="Absent {$p.absence.periode}{if $p.absence.remarque!=''} ({$p.absence.remarque}){/if}"{/if}>
            <td class="status"><input type='checkbox' name='status'{if $p.absence} disabled{/if}/></td>
            <td class="nom">{$p.client_prenom} {$p.client_nom}</td>
            <td class="frequence">{$p.frequence_print}</td>
            <td class="nb_paniers_restants">{$p.nb_paniers_restants}</td>
        </tr>
        {/foreach}
    {/foreach}
    </tbody>
</table>
{foreachelse}
<span class="nullChild">aucun panier éligible</span>
{/foreach}