<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 $department->name; ?></td>
                    <td><?php echo $this->lang->line('bn_name'); ?></td>
                    <td><?php echo $department->bn_name; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('type'); ?></td>
                    <td><?php echo $this->lang->line($department->type); ?></td>
                    <td><?php echo $this->lang->line('image'); ?></td>
                    <td>
                        <div class="avatar">
                            <?php if ($department->image) { ?>
                                <img class="avatar-img rounded" src="<?php echo UPLOAD_PATH; ?>department-image/<?php echo $department->image; ?>" alt="<?php echo $department->name; ?>" />
                            <?php } ?>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('is_view_on_web'); ?></td>
                    <td><?php echo $department->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 $department->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 $department->description; ?></td>
                </tr>
                <tr>
                    <td colspan="4"><?php echo $this->lang->line('bangla'); ?> <?php echo $this->lang->line('description'); ?></td>
                </tr>
                <tr>
                    <td colspan="4"><?php echo $department->bn_description; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $department->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('M d, Y h:ia', strtotime($department->created_at)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('modified_by'); ?></td>
                    <td><?php echo $department->modified_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo $department->modified_by ? date('M d, Y h:ia', strtotime($department->modified_at)) : ''; ?>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>