<div class="table-wrap">
    <div class="table-responsive">
        <table class="table table-sm text-white">
            <tbody>
                <tr>
                    <td><?php echo $this->lang->line('type'); ?></td>
                    <td><?php echo $type->type; ?></td>
                    <td><?php echo $this->lang->line('total'); ?> <?php echo $this->lang->line('leave'); ?></td>
                    <td><?php echo $type->total_leave; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('remark'); ?></td>
                    <td><?php echo $type->remark; ?></td>
                    <td><?php echo $this->lang->line('status'); ?></td>
                    <td><?php echo $type->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><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $type->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('M d, Y h:ia', strtotime($type->created_at)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('modified_by'); ?></td>
                    <td><?php echo $type->modified_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo $type->modified_by ? date('M d, Y h:ia', strtotime($type->modified_at)) : ''; ?></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>