<center>
    <h2>Summary of the Hemodialysis</h2>
    <h3>Clinic [Ratchawat]</h3>
    <h4>
    {{#if same_date}}
        As at {{fmt_date date_from}}
    {{else}}
        From {{fmt_date date_from}} to {{fmt_date date_to}}
    {{/if}}
    </h4>
</center>
<table class="table table-striped">
    <thead class="scroll-header">
        <tr>
			<th>
                Cycle
            </th>
            <th>
                Patient
            </th>
            <th>
                Doctor
            </th>
            <th>
                Patient Type
            </th>
            <th>
                HD Fee
            </th>
            <th>
                RC.No
            </th>
            <th>
                Dialyzer
            </th>
            <th>
                Nurse
            </th>
        </tr>
    </thead>
    <tbody>
		 {{#each lines context=context}}
            {{#if show_cycle}}
                <tr>
                    <td colspan="10" style="font-weight:bold">
                        {{cycle}}
                    </td>
                </tr>
            {{/if}}
            <tr class="{{color}}">
                {{#if no_patient}}
                    <td><b>TOTAL</b></td>
                    <td>{{no_patient}}</td>
                {{else}}
                    <td></td>
                    <td>{{patient}}</td>
                {{/if}}
                <td>
                    {{doctor}}
                </td>
                <td>
                    {{patient_type}}
                </td>
                <td>
                    {{total}}
                </td>
                <td>
                    {{rc_no}}
                </td>
                <td>
					{{dialyzer_name}}
                </td>
                <td>
                    {{nurse}}
                </td>
            </tr>
        {{/each}}
    </tbody>
    <tfoot>
        <tr style="font-weight:bold">
           
        </tr>
    </tfoot>
</table>