<div class="table-wrap">
    <div class="table-responsive">
        <table class="table table-sm text-white">
            <tbody>
                <tr>
                    <td><?php echo $this->lang->line('name'); ?></td>
                    <td><?php echo $tube->name; ?></td>
                    <td><?php echo $this->lang->line('type'); ?></td>
                    <td><?php echo $this->lang->line($tube->type); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('price'); ?></td>
                    <td><?php echo $tube->price; ?></td>
                    <td><?php echo $this->lang->line('sort_by'); ?></td>
                    <td><?php echo $tube->sort_by; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('status'); ?></td>
                    <td><?php echo $tube->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('remark'); ?></td>
                    <td><?php echo $tube->note; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $tube->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('d F, Y h:i A', strtotime($tube->created_at)); ?></td>
                </tr>
                <?php if ($this->session->userdata('role_id') == SUPER_ADMIN) { ?>
                    <tr>
                        <td><?php echo $this->lang->line('modified_by'); ?></td>
                        <td><?php echo $tube->modified_by; ?></td>
                        <td><?php echo $this->lang->line('date'); ?></td>
                        <td><?php echo $tube->modified_by ? date('d F, Y h:i A', strtotime($tube->modified_at)) : ''; ?>
                        </td>
                    </tr>
                <?php } ?>
            </tbody>
        </table>
    </div>
</div>