{if $wtag==1}
{else}
{/if}

LVZ-Logistik (PIN-Rtour) {$datum1}

{foreach from=$pin_tour1 item=tour} {/foreach}
{$tour.tour} {if $tour.smsid==0 && $tour.fahrer_id>0}{/if} {if $tour.smsid>0 && $tour.fahrer_id>0}{/if} {if $tour.fahrer_id==0}{/if}
{if $wtag==2}
{else}
{/if}

LVZ-Logistik (PIN-Rtour) {$datum2}

{foreach from=$pin_tour2 item=tour} {/foreach}
{$tour.tour} {if $tour.smsid==0 && $tour.fahrer_id>0}{/if} {if $tour.smsid>0 && $tour.fahrer_id>0}{/if} {if $tour.fahrer_id==0}{/if}
{if $wtag==3}
{else}
{/if}

LVZ-Logistik (PIN-Rtour) {$datum3}

{foreach from=$pin_tour3 item=tour} {/foreach}
{$tour.tour} {if $tour.smsid==0 && $tour.fahrer_id>0}{/if} {if $tour.smsid>0 && $tour.fahrer_id>0}{/if} {if $tour.fahrer_id==0}{/if}
{if $wtag==4}
{else}
{/if}

LVZ-Logistik (PIN-Rtour) {$datum4}

{foreach from=$pin_tour4 item=tour} {/foreach}
{$tour.tour} {if $tour.smsid==0 && $tour.fahrer_id>0}{/if} {if $tour.smsid>0 && $tour.fahrer_id>0}{/if} {if $tour.fahrer_id==0}{/if}
{if $wtag==5}
{else}
{/if}

LVZ-Logistik (PIN-Rtour) {$datum5}

{foreach from=$pin_tour5 item=tour} {/foreach}
{$tour.tour} {if $tour.smsid==0 && $tour.fahrer_id>0}{/if} {if $tour.smsid>0 && $tour.fahrer_id>0}{/if} {if $tour.fahrer_id==0}{/if}
{literal} {/literal}