<center> <h3> {{company_name}} </h3> </center> <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>Date</th> <th>Cycle</th> <th>Number</th> <th>Patient</th> <th>Type</th> <th>Department</th> <th>Qty</th> </tr> </thead> <tbody> {{#each lines}} <tr> <td>{{no}}</td> <td>{{date}}</td> <td>{{cname}}</td> <td> {{#if is_shop}} {{view "link" string=hname action="clinic_shop" action_options="mode=form" active_id=hid}} {{else}} {{view "link" string=hname action="clinic_hd_case" action_options="mode=form" active_id=hid}} {{/if}} </td> <td>{{pname}}</td> <td>{{tname}}</td> <td>{{dpt_name}}</td> <td>{{qty}}</td> </tr> {{/each}} </tbody> <tfoot> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th></th> <th>{{total_qty}}</th> </tfoot> </table>