<?php //debug($this->view->referrals); ?>

<?php if($this->view->error != ''): ?>
	<div class="alert alert-danger"><?php echo $this->view->error; ?></div>
<?php else: ?>
	<?php if(is_array($this->view->referrals) && !empty($this->view->referrals)): ?>
		<table class="table table-hover">
			<tbody>
				<?php foreach($this->view->referrals as $referral): ?>
					<tr>
						<td><input type="checkbox" name="data[recipients_ids][value][]" checked value="<?php echo $referral['user_id']; ?>"></td>
						<td><?php echo ucwords($referral['surname']); ?></td>
						<td><?php echo ucwords($referral['name']); ?></td>
						<td><?php echo $referral['ms_list']; ?></td>
						<td><?php echo $referral['cc_list']; ?></td>
					</tr>
				<?php endforeach; ?>
			</tbody>
		</table>
	<?php else: ?>
		<div class="alert alert-danger"><?php echo _('No Responders available for this Request.'); ?></div>
	<?php endif ?>
<?php endif; ?>