@section('header')
	@include('common.header')
@stop

@section('content')

	<div class="widget">
		<div class="widget-content">
			<div class="headline">
				<h4>VoIP Customers</h4>
			</div>
			<table class="table">
				<thead class="table-header">
					<th>Company Name</th>
					<th>Client Name</th>
					<th>Username</th>
					<th>Email</th>
					<th>Balance</th>
					<th>Credit Limit</th>
				</thead>
				<tbody>
					@foreach ($customers as $customer)
						<tr>
							<td><a href="{!! URL::route('voip.show', $customer['username']) !!}">{!! $customer['company_name'] !!}</a></td>
							<td>{!! $customer['firstname']. ' '. $customer['lastname'] !!}</td>
							<td>{!! $customer['username'] !!}</td>
							<td>{!! $customer['email'] !!}</td>
							<td>&pound;{!! number_format($customer['balance'], 2) !!}</td>
							<td>&pound;{!! number_format($customer['creditlimit'], 2) !!}</td>
						</tr>
					@endforeach
				</tbody>
			</table>
			<div class="text-right">
				<hr>
				<a href="" class="btn btn-primary"><i class="fa fa-plus"></i> Add a new customer</a>
			</div>
		</div>
	</div>
@stop