{literal} {/literal}
{literal} {/literal}
{if $showDate && $showDate == 1 } {/if} {assign var="i" value="1"} {foreach $allData as $data} {if $showDate && $showDate == 1 } {/if} {assign var="i" value={$i+1}} {/foreach} {if !empty($allData)} {if $showDate && $showDate == 1 } {/if} {/if}
# Patient Name Patient NumberVisit DateType Total Discount Cash Visa Debt
{$i} {$data.wifename} {$data.statusno} {$data.visitdate} {$data.type} {$data.totaldetectionvalue} {$data.discount} {$data.detectionvalue_cash} {$data.detectionvalue_visa} {$data.restdetectionvalue}
Total {$totalCost} {$totalDiscount} {$totalCash} {$totalVisa} {$totalDept}