<div class="table-responsive">
    <table class="table table-sm mt-30 text-white">
        <tbody>
            <tr>
                <td><?php echo $this->lang->line('doctor'); ?></td>
                <td><?php echo $charge->doctor; ?></td>
                <td><?php echo $this->lang->line('specialist'); ?></td>
                <td><?php echo $charge->specialist; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('ipd'); ?> <?php echo $this->lang->line('charge'); ?></td>
                <td><?php echo $charge->ipd_charge; ?></td>
                <td><?php echo $this->lang->line('ot'); ?> <?php echo $this->lang->line('charge'); ?></td>
                <td><?php echo $charge->ot_charge; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('first_fee'); ?></td>
                <td><?php echo $charge->first_fee_day; ?></td>
                <td><?php echo $this->lang->line('second_fee'); ?></td>
                <td><?php echo $charge->second_fee; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('hospital'); ?> <?php echo $this->lang->line('commission'); ?></td>
                <td><?php echo $charge->hospital_commission; ?></td>
                <td><?php echo $this->lang->line('reference'); ?> <?php echo $this->lang->line('commission'); ?></td>
                <td><?php echo $charge->reference_commission; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('discount'); ?> <?php echo $this->lang->line('limit'); ?></td>
                <td><?php echo $charge->discount_limit; ?></td>
                <td><?php echo $this->lang->line('first_fee_day'); ?></td>
                <td><?php echo $charge->first_fee_day; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('discount'); ?> <?php echo $this->lang->line('status'); ?></td>
                <td><?php echo $charge->is_discount ? '<span class="badge badge-success">' . $this->lang->line('active') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('in_active') . '</span>'; ?></td>
                <td><?php echo $this->lang->line('limit'); ?> <?php echo $this->lang->line('status'); ?></td>
                <td><?php echo $charge->is_limit ? '<span class="badge badge-success">' . $this->lang->line('active') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('in_active') . '</span>'; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('status'); ?></td>
                <td><?php echo $charge->status ? '<span class="badge badge-success">' . $this->lang->line('active') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('in_active') . '</span>'; ?></td>
                <td><?php echo $this->lang->line('serial_no'); ?></td>
                <td><?php echo $charge->serial_no; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('charge'); ?> <?php echo $this->lang->line('note'); ?></td>
                <td colspan="3"><?php echo $charge->note; ?></td>
            </tr>
            <tr>
                <td><?php echo $this->lang->line('created_by'); ?></td>
                <td><?php echo $charge->created_by; ?></td>
                <td><?php echo $this->lang->line('date'); ?></td>
                <td><?php echo $charge->created_by ? date('d F, Y h:i A', strtotime($charge->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 $charge->modified_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo $charge->modified_by ? date('d F, Y h:i A', strtotime($charge->modified_at)) : ''; ?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>