<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 $supplier->name; ?></td>
					<td><?php echo $this->lang->line('phone'); ?></td>
					<td><?php echo $supplier->phone; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('email'); ?></td>
					<td><?php echo $supplier->email; ?></td>
					<td><?php echo $this->lang->line('fax'); ?></td>
					<td><?php echo $supplier->fax; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('web'); ?></td>
					<td><?php echo $supplier->web; ?></td>
					<td><?php echo $this->lang->line('address'); ?></td>
					<td><?php echo $supplier->address; ?></td>
				</tr>
				<tr>
					<td><?php echo $this->lang->line('sort_by'); ?></td>
					<td><?php echo $supplier->sort_by; ?></td>
					<td><?php echo $this->lang->line('status'); ?></td>
					<td><?php echo $supplier->status ? '<span class="badge badge-primary">' . $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 $supplier->created_by; ?></td>
					<td><?php echo $this->lang->line('date'); ?></td>
					<td><?php echo date('d F, Y h:i A', strtotime($supplier->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 $supplier->modified_by; ?></td>
						<td><?php echo $this->lang->line('date'); ?></td>
						<td><?php echo $supplier->modified_by ? date('d F, Y h:i A', strtotime($supplier->modified_at)) : ''; ?>
						</td>
					</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>