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