<table class="table">
	<thead>
		<tr>
			<th>User Resource Type Name</th>
			<th>User Role</th>
			<th>Actions</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($user_resources as $resource): ?>
		<tr>
			<td><?= $resource->user_resource_type_name; ?></td>
			<td><?php 
			foreach($user_roles as $role){
				echo ($role->role_ID == $resource->role_ID )? $role->role_name:'';
			}
			?></td>
			<td>
				<div style="width:80px;">
					<?php echo edit_action(base_url('user_resource'),$resource->user_resource_type_ID); ?>
					<?php echo delete_action(base_url('user_resource'),$resource->user_resource_type_ID,'Are you sure you want to delete this User Resource? Deleting this record may also result in deleting the data related to all Users.'); ?>
                </div>
			</td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>