<div class="table-wrap">
    <div class="table-responsive">
        <table class="table table-sm text-white">
            <tbody>
                <tr>
                    <td width="20%"><?php echo $this->lang->line('title'); ?></td>
                    <td width="30%"><?php echo $category->title; ?></td>
                    <td width="20%"><?php echo $this->lang->line('bn_title'); ?></td>
                    <td width="30%"><?php echo $category->bn_title; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('sort_by'); ?></td>
                    <td><?php echo $category->sort_by; ?></td>
                    <td><?php echo $this->lang->line('image'); ?></td>
                    <td>
                        <div class="avatar">
                            <?php if ($category->image) { ?>
                                <img class="avatar-img rounded" src="<?php echo UPLOAD_PATH; ?>gallery-image/<?php echo $category->image; ?>" alt="<?php echo $category->title; ?>" />
                            <?php } ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('is_view_on_web'); ?></td>
                    <td><?php echo $category->is_view_on_web ? '<span class="badge badge-success">' . $this->lang->line('yes') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('no') . '</span>'; ?></td>
                    <td><?php echo $this->lang->line('status'); ?></td>
                    <td><?php echo $category->status ? '<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 colspan="4"><?php echo $this->lang->line('description'); ?></td>
                </tr>
                <tr>
                    <td colspan="4"><?php echo $category->description; ?></td>
                </tr>
                <tr>
                    <td colspan="4"><?php echo $this->lang->line('bn_description'); ?></td>
                </tr>
                <tr>
                    <td colspan="4"><?php echo $category->bn_description; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $category->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('M, d, Y h:ia', strtotime($category->created_at)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('modified_by'); ?></td>
                    <td><?php echo $category->modified_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo $category->modified_by ? date('M, d, Y h:ia', strtotime($category->modified_at)) : ''; ?>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>