<div class="table-wrap">
	<div class="table-responsive">
		<table class="table table-sm mt-30 text-white">
			<tbody>
				<tr>
					<td><?php echo $this->lang->line('complaint'); ?> <?php echo $this->lang->line('type'); ?></td>
					<td><?php echo $complaint->complaint_type; ?></td>
					<td><?php echo $this->lang->line('complaint'); ?> <?php echo $this->lang->line('source'); ?></td>
					<td><?php echo $complaint->source; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('name'); ?></td>
					<td><?php echo $complaint->name; ?></td>
					<td><?php echo $this->lang->line('phone'); ?></td>
					<td><?php echo $complaint->phone; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('email'); ?></td>
					<td><?php echo $complaint->email; ?></td>
					<td><?php echo $this->lang->line('assigned'); ?></td>
					<td><?php echo $complaint->assigned; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('complaint'); ?> <?php echo $this->lang->line('date'); ?></td>
					<td><?php echo date($this->global_setting->date_format, strtotime($complaint->complaint_date)); ?></td>
					<td><?php echo $this->lang->line('action'); ?> <?php echo $this->lang->line('date'); ?></td>
					<td><?php echo date($this->global_setting->date_format, strtotime($complaint->action_date)); ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('attachment'); ?></td>
					<td>
						<?php if ($complaint->attachment) { ?>
							<a target="_blank" href="<?php echo UPLOAD_PATH; ?>attachment/<?php echo $complaint->attachment; ?>" class="btn btn-success btn-xs"><i class="fa fa-download"></i> <?php echo $this->lang->line('download'); ?></a>
						<?php } ?>
					</td>
					<td><?php echo $this->lang->line('status'); ?></td>
					<td><?php echo $complaint->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('complaint'); ?> <?php echo $this->lang->line('description'); ?></td>
				</tr>
				<tr>
					<td colspan="4"><?php echo $complaint->description; ?></td>
				</tr>
				<tr>
					<td colspan="4"><?php echo $this->lang->line('action'); ?> <?php echo $this->lang->line('note'); ?></td>
				</tr>
				<tr>
					<td colspan="4"><?php echo $complaint->action_note; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('created_by'); ?></td>
					<td><?php echo $complaint->created_by; ?></td>
					<td><?php echo $this->lang->line('date'); ?></td>
					<td><?php echo date('d F, Y h:i A', strtotime($complaint->created_at)); ?></td>
				</tr>
				<?php if ($this->session->userdata('role_id') == SUPER_ADMIN || !empty(custom_permission('modified_by'))) { ?>
					<tr>
						<td><?php echo $this->lang->line('modified_by'); ?></td>
						<td><?php echo $complaint->modified_by; ?></td>
						<td><?php echo $this->lang->line('date'); ?></td>
						<td><?php echo $complaint->modified_by ? date('d F, Y h:i A', strtotime($complaint->modified_at)) : ''; ?>
						</td>
					</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>