<?php if(isset($attachments) && is_array($attachments)): ?>
	<table class="table table-striped table-hover" id="attach-list-<?php echo $requestUniqueCode; ?>">
		<tbody>
			<?php foreach($attachments as $attach): ?>
				<tr id="attach-row-id-<?php echo $attach['id']; ?>">
					<td>
						<?php echo $this->helper->getPreviewLink($attach, false); ?>
					</td>
					<td width="1%" class="text-right"><button type="button" class="btn btn-danger btn-sm rounded-button delete-attach" data-attachtitle="<?php echo $attach['file_title']; ?>" data-attachname="<?php echo $attach['file_name']; ?>" data-attachid="<?php echo $attach['id']; ?>"><span class="icon-cross"></span></button></td>
				</tr>
			<?php endforeach; ?>
		</tbody>
	</table>
<?php endif; ?>