<!DOCTYPE html>
<html>

<head>
    <title>Print</title>

    <style>
        body {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 14px;
        }

        .page {
            width: 90%;
            margin: 0 auto;
        }

        @page {
            size: A4;
            margin: 0;
        }

        @media print {

            html,
            body {
                font-family: Arial, Helvetica, sans-serif;
            }

            .page {
                width: 90%;
                margin: 0 auto;
                border: initial;
                border-radius: initial;
                min-height: initial;
                box-shadow: initial;
                background: initial;
            }
        }

        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table-info tbody td {
            color: #000;
            padding: 2x;
            vertical-align: middle;
            border: 1px solid #000;
            font-size: 14px;
        }
    </style>
</head>

<body>
    <div class="page">
        <table class="table" style="text-align: center;">
            <tbody>
                <tr>
                    <td>
                        <h2 style="margin-bottom: 0; font-size: 28px;"><?php echo $this->global_setting->brand_title; ?></h2>
                    </td>
                </tr>
                <tr>
                    <td><b><?php echo $this->global_setting->address; ?></b></td>
                </tr>
                <tr>
                    <td><b><?php echo $this->global_setting->email; ?></b></td>
                </tr>
                <tr>
                    <td><b><?php echo $this->global_setting->phone; ?></b></td>
                </tr>
            </tbody>
        </table>
        <div class="mian">
            <h2 align="center"><?php echo $this->lang->line('online'); ?> <?php echo $this->lang->line('appointment'); ?></h2>
            <table class="table table-info">
                <tbody>
                    <tr>
                        <td width="20%"><?php echo $this->lang->line('appointment_no'); ?></td>
                        <td width="30%"><?php echo $appointment->appointment_no; ?></td>
                        <td width="20%"><?php echo $this->lang->line('date'); ?></td>
                        <td width="30%"><?php echo $appointment->date; ?></td>
                    </tr>
                    <tr>
                        <td><?php echo $this->lang->line('serial_no'); ?></td>
                        <td><?php echo $appointment->serial_no; ?></td>
                        <td><?php echo $this->lang->line('patient_id'); ?></td>
                        <td><?php echo $appointment->patient_unique_id; ?></td>
                    </tr>
                    <tr>
                        <td><?php echo $this->lang->line('doctor'); ?></td>
                        <td colspan="3"><?php echo $appointment->doctor; ?>, <?php echo $appointment->specialist; ?></td>
                    </tr>
                    <tr>
                        <td><?php echo $this->lang->line('name'); ?></td>
                        <td><?php echo $appointment->name; ?></td>
                        <td><?php echo $this->lang->line('gender'); ?></td>
                        <td><?php echo $this->lang->line($appointment->gender); ?></td>
                    </tr>
                    <tr>
                        <td><?php echo $this->lang->line('phone'); ?></td>
                        <td><?php echo $appointment->phone; ?></td>
                        <td><?php echo $this->lang->line('address'); ?></td>
                        <td><?php echo $appointment->address; ?></td>
                    </tr>
                    <tr>
                        <td><?php echo $this->lang->line('remark'); ?></td>
                        <td colspan="3"><?php echo $appointment->note; ?></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</body>

</html>