<center>
    <h2>รายชื่อผู้ป่วยจำหน่าย</h2>
    <h3>
        {{parent_company_name}}&nbsp;{{company_name}}<br/>
    </h3>
    <h4>
        {{#if is_duration}}
            ระหว่างวันที่ {{from}} ถึง {{to}}
        {{else}}
            ประจำเดือน {{month}} {{year}}
        {{/if}}
    </h4>
</center>
{{#if lines}}
<table class="table">
    <thead>
        <th>#</th>
        <th>วันที่</th>
        <th>ชื่อ</th>
        <th>หมายเหตุ</th>
    </thead>
    <tbody>
        {{#each lines}}
            <tr>
                <td>{{no}}</td>
                <td>{{resign_date}}</td>
                <td>
                    {{view "link" string=name action="clinic_patient" action_options="mode=form" active_id=pid}}
                </td>
                <td>{{note}}</td>
            </tr>
        {{/each}}
    </tbody>
    <tfoot>
    </tfoot>
</table>
{{else}}
    No items to display.
{{/if}}