<div class="table-wrap">
    <div class="table-responsive">
        <table class="table table-sm text-white">
            <tbody>
                <tr>
                    <td><?php echo $this->lang->line('patient'); ?> <?php echo $this->lang->line('name'); ?></td>
                    <td><?php echo $bed->patient_name; ?></td>
                    <td><?php echo $this->lang->line('patient_id'); ?></td>
                    <td><?php echo $bed->patient_unique_id; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('ward'); ?></td>
                    <td><?php echo $bed->ward_name; ?></td>
                    <td><?php echo $this->lang->line('bed'); ?></td>
                    <td><?php echo $bed->bed; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('from_date'); ?></td>
                    <td><?php echo $bed->from_date ? date('d/m/Y h:i A', strtotime($bed->from_date)) : ''; ?></td>
                    <td><?php echo $this->lang->line('to_date'); ?></td>
                    <td><?php echo $bed->to_date ? date('d/m/Y h:i A', strtotime($bed->to_date)) : ''; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $bed->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('d F, Y h:i A', strtotime($bed->created_at)); ?></td>
                </tr>
                <?php if ($this->session->userdata('role_id') == SUPER_ADMIN || !empty(custom_permission('modified_by'))) { ?>
                    <tr>
                        <td><?php echo $this->lang->line('modified_by'); ?></td>
                        <td><?php echo $bed->modified_by; ?></td>
                        <td><?php echo $this->lang->line('date'); ?></td>
                        <td><?php echo $bed->modified_by ? date('d F, Y h:i A', strtotime($bed->modified_at)) : ''; ?>
                        </td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>