<div class="container no-padding">
	<div class="row forms-grid">
		<div class="col-xs-12">&nbsp;</div>		
		<div class="col-xs-7"><h2>Booking Details</h2></div>

		<div class="col-xs-4">
		<?php
		if (!$row['bs_completed'])
		{
		?>			
			<button onclick="addServiceItem('<?php echo($bsid); ?>')" style="margin:0;">
				<i class="fa fa-plus"></i>&nbsp;Add
			</button>
		
		<?php
		} 
		?>
		</div>
		<div class="col-xs-12">
			<table>
				<tr>
					<td colspan='2'><h3>Client Details</h3></td>
				</tr>
				<tr>
					<td width="30%"><label>Client:&nbsp;</label></td>
					<td width="70%"><span><?php echo($row['client_full_name']); ?></span></td>
				</tr>
				<!--
				<tr>
					<td><label>Cell No:&nbsp;</label></td>
					<td>
						<span>
							<a href="tel:<?php echo(SableGeneralFunctions::getInternationalNumber($row['client_phone'])); ?>">
								<i class="fa fa-phone"></i>&nbsp;<?php echo($row['client_phone']); ?>
							</a>
						</span>
					</td>
				</tr>
				-->
				<tr>
					<td><label>Area:&nbsp;</label></td>
					<td>
						<span>
							<a href="javascript:openSableTab('sable-tab-4')">
								<i class="fa fa-location-arrow"></i>&nbsp;<?php echo($row['suburb_name'].', '.$row['region_name']); ?>
							</a>
						</span>
					</td>
				</tr>
				<?php if (!empty($row['client_address_note'])) { ?>
				<tr>
					<td><label>Notes:&nbsp;</label></td>
					<td>
						<span>
							<?php echo($row['client_address_note']); ?>
						</span>
					</td>
				</tr>
				<?php } ?>
				<tr>
					<td colspan='2'>&nbsp;</td>
				</tr>				
				<tr>
					<td><h3>Service Details</h3></td>
					<td></td>
				</tr>
				<?php printBuildingServiceInfo($bsid, $row); ?>
			</table>
		</div>
	</div>
</div>
<?php
	
	/**
	{
		Array
		(
			[booking_id] => 2
			[booking_date] => 2021-07-16
			[booking_time] => 2021-07-16 10:30:00
			[team_id] => 2
			[client_full_name] => Christie Calitz 
			[suburb_name] => Meyersdal Nature Estate
			[region_name] => Alberton
			[sa_description] => Single Booking
			[address_id] => 8
			[address_lng] => -26.281233
			[address_lat] => 28.089066
			[service_info] => Array
				(
					[0] => Array
						(
							[area_type_name] => Dog
							[area_name] => Mini Schnauzer
							[building_name] => Zoe
							[building_notes] => 
							[building_special_instructions] => Doesn't like the blower
							[service_name] => Wash & Brush (Medium Dogs & Cats)
							[service_price] => 325
							[service_duration] => 65
						)

					[1] => Array
						(
							[area_type_name] => Dog
							[area_name] => Mini Schnauzer
							[building_name] => Zoe
							[building_notes] => 
							[building_special_instructions] => Doesn't like the blower
							[service_name] => Groom Small Dog (Long Hair)
							[service_price] => 280
							[service_duration] => 45
						)

					[2] => Array
						(
							[area_type_name] => Dog
							[area_name] => Mini Schnauzer
							[building_name] => Zoe
							[building_notes] => 
							[building_special_instructions] => Doesn't like the blower
							[service_name] => Groom Small Dog (Short Hair)
							[service_price] => 250
							[service_duration] => 30
						)

				)

		)
	}
	**/
	