<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li><a href="#/complaints">Complaints</a></li>
	<li class="active">Complaint 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%">Date:</th>
								<td>{{vm.complaint.created_at_formatted}}</td>
							</tr>
							<tr>
								<th>Customer:</th>
								<td><a href="#/customers/{{vm.complaint.customer.id}}">{{vm.complaint.customer.name}}</a></td>
							</tr>
							<tr>
								<th>Employee:</th>
								<td ng-if="vm.complaint.employee"><a href="#/employees/{{vm.complaint.employee.id}}">{{vm.complaint.employee.name}}</a></td>
								<td ng-if="!vm.complaint.employee"><a>All</a></td>
							</tr>
							<tr>
								<th>Subject:</th>
								<td>{{vm.complaint.subject}}</td>
							</tr>
							<tr>
								<th>Description:</th>
								<td>{{vm.complaint.description}}</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 href="#/complaints/{{vm.complaint.id}}/edit">Edit</a></li>
						<li><a ng-click="vm._destroy(vm.complaint.id)">Delete</a></li>
					</ul>
				</li>
			</tabset>
		</div>
	</div>
</div>
