<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 $shift->name; ?></td>
                    <td><?php echo $this->lang->line('bn_name'); ?></td>
                    <td><?php echo $shift->bn_name; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('in_time'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->in_time)); ?></td>
                    <td><?php echo $this->lang->line('out_time'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->out_time)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('late_time'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->late_time)); ?></td>
                    <td><?php echo $this->lang->line('absent_time'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->absent_time)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('lunch_out'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->lunch_out_time)); ?></td>
                    <td><?php echo $this->lang->line('lunch_in'); ?></td>
                    <td><?php echo date('h:ia', strtotime($shift->lunch_in_time)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('late_allow'); ?></td>
                    <td><?php echo $shift->late_allow ? '<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('special'); ?> <?php echo $this->lang->line('late_allow'); ?></td>
                    <td><?php echo $shift->special_late_allow ? '<span class="badge badge-success">' . $this->lang->line('yes') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('no') . '</span>'; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('early'); ?> <?php echo $this->lang->line('out_allow'); ?></td>
                    <td><?php echo $shift->early_out_allow ? '<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('out_next_day'); ?></td>
                    <td><?php echo $shift->out_next_day ? '<span class="badge badge-success">' . $this->lang->line('yes') . '</span>' : '<span class="badge badge-danger">' . $this->lang->line('no') . '</span>'; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('work'); ?> <?php echo $this->lang->line('hour'); ?></td>
                    <td>
                        <?php
                        echo date('h', strtotime($shift->work_hour)) . 'H,';
                        echo date('i', strtotime($shift->work_hour)) > 0 ? date('i', strtotime($shift->work_hour)) . 'M' : '';
                        ?>
                    </td>
                    <td><?php echo $this->lang->line('status'); ?></td>
                    <td><?php echo $shift->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('weekend'); ?></td>
                    <td><?php echo $this->lang->line($shift->weekend); ?></td>
                    <td><?php echo $this->lang->line('remark'); ?></td>
                    <td><?php echo $shift->remark; ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('created_by'); ?></td>
                    <td><?php echo $shift->created_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo date('M d, Y h:ia', strtotime($shift->created_at)); ?></td>
                </tr>
                <tr>
                    <td><?php echo $this->lang->line('modified_by'); ?></td>
                    <td><?php echo $shift->modified_by; ?></td>
                    <td><?php echo $this->lang->line('date'); ?></td>
                    <td><?php echo $shift->modified_by ? date('M d, Y h:ia', strtotime($shift->modified_at)) : ''; ?>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>