<ol class="breadcrumb">
	<li><a href="#/">Dashboard</a></li>
	<li><a href="#/services">Services</a></li>
	<li class="active">Service 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%">Category:</th>
								<td>
									<a href="#/service-categories/{{vm.service.service_category.id}}">
										{{vm.service.service_category.name}}
									</a>
								</td>
							</tr>
							<tr>
								<th>Name:</th>
								<td>{{vm.service.name}}</td>
							</tr>
							<tr ng-if="vm.service.cost">
								<th>Cost Price:</th>
								<td>{{vm.service.cost | currency: "$"}}</td>
							</tr>
							<tr>
								<th>Base Price:</th>
								<td>{{vm.service.price | currency: "$"}}</td>
							</tr>
							<tr>
								<th>Duration:</th>
								<td>{{vm.service.duration_minutes}} minutes</td>
							</tr>
							<tr ng-if="vm.service.description">
								<th>Description:</th>
								<td>{{vm.service.description}}</td>
							</tr>
							<tr ng-if="vm.service.quickbooks_id">
								<th>Quickbooks ID:</th>
								<td>{{vm.service.quickbooks_id}}</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="#/services/{{vm.service.id}}/edit">Edit</a></li>
						<li><a ng-click="vm._destroy(vm.service.id)">Delete</a></li>
						<li class="divider"></li>
						<li>
							<a ng-click="vm._sendToQuickbooks(vm.service.id)">
								<span ng-if="vm.service.quickbooks_id">Update To Quickbooks</span>
								<span ng-if="!vm.service.quickbooks_id">Add To Quickbooks</span>
							</a>
						</li>
					</ul>
				</li>
			</tabset>
		</div>
	</div>
</div>
