<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li><a href="#/batch-messages">Batch Messages</a></li>
	<li class="active">Batch Message Details</li>
</ol>

<div class="container-fluid">
	<div class="row">
		<div class="col-md-12">
			<tabset tab-theme="orange" tab-position="top">
				<tab heading="General Information">
					<table class="table">
						<tbody>
							<tr>
								<th width="15%">From:</th>
								<td>
									<a href="#/employees/{{vm.batch_message.employee_id}}">
										{{vm.batch_message.employee.name}}
									</a>
								</td>
							</tr>
							<tr>
								<th>Subject:</th>
								<td>{{vm.batch_message.subject}}</td>
							</tr>
							<tr>
								<th>Send To:</th>
								<td>
									<span ng-repeat="customer in vm.batch_message.send_to">
										{{customer.name}}
										<a href="mailto:{{customer.email}}" target="_blank">
											<<i>{{customer.email}}</i>>;
										</a>
									</span>
								</td>
							</tr>
							<tr ng-if="vm.batch_message.description">
								<th>Description:</th>
								<td ng-bind-html="vm.batch_message.description"></td>
							</tr>
							<tr ng-if="vm.batch_message.attachments.length">
								<th>Attachments:</th>
								<td>
									<div ng-repeat="attachment in vm.batch_message.attachments">
										<a href="{{attachment.url}}" target="_blank">{{attachment.name}}</a>
									</div>
								</td>
							</tr>
						</tbody>
					</table>
				</tab>
				<li class="tab-controls dropdown" dropdown>
					<a class="dropdown-toggle" dropdown-toggle>
						<i class="ti ti-settings"></i>&nbsp;&nbsp;Actions&nbsp;&nbsp;<span class="caret"></span>
					</a>
					<ul class="dropdown-menu pull-left">
						<li><a ng-click="vm._destroy(vm.batch_message.id)">Delete</a></li>
					</ul>
				</li>
			</tabset>
		</div>
	</div>
</div>
