<?php
	require_once('schedule_func.php');
	include(SABLE_INCLUDES_PATH.'googleMaps.php');
	$bsid = $_SESSION['caller']['args'][1];
	$row = getServiceDetails($bsid);
	$serviceDate = new DateTime();
	//SableDebug::debug($row);
/**
?>
<div class="container no-padding">
	<div class="row">
		<div class="col-sm-12">
			<div class="navbar section no-padding" role="navigation" style="background-color:#FFFFFF;">
				<div class="heading" style="margin:10px;">
					<div class="container no-padding">
						<div class="row">
							<div class="col-sm-2">
								<a class="navbar-minimalize" title="Menu" href="<?php SableSystem::printThemeLinkPath('dashboard/index.php'); ?>">
									<span class="fa fa-2x fa-arrow-left">&nbsp;</span>
								</a>
							</div>
							<div class="col-sm-10">
							</div>							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<?php
**/
?>
<style>
	.sable-tab, .sable-tab-active{position:relative; display:inline-block;}
	.sable-tab-bar{border-radius:0;}
	#mapCanvas{width: 100vw;height: 80vh;}
	td {padding:3px;}
</style>
<script src="<?php echo(SABLE_THEME_ROOT.'mobi/mobi.js'); ?>?v=<?php echo(SABLE_VERSION); ?>"></script>
<div class="sable-tab-bar">
	<div class="container">
		<div class="row" style="background: white; padding: 6px 0 0 0; height:40px;">
			<div class="col-xs-2 pointer" onclick='window.location = "<?php SableSystem::printThemeLinkPath('dashboard/index.php'); ?>"'>
				<i class='fa fa-2x fa-arrow-left' title="Back"></i>
			</div>
			<div class="col-xs-2 pointer"></div>
			<div class="col-xs-8"></div>
		</div>

		<?php
		$tabs[] = ['title' => 'Services',	'icon' => 'fa-warehouse'];
		$tabs[] = ['title' => 'Payment',	'icon' => 'fa-dollar-sign'];
		$tabs[] = ['title' => 'Comments',	'icon' => 'fa-comment-dots'];
		$tabs[] = ['title' => 'Directions',	'icon' => 'fa-route'];
		?>

		<div class="row">
			<?php addAppTabs($tabs); ?>
		</div>
    </div>			
</div>

<div class="sable-tab-item"><?php require_once('schedule_info.php'); ?></div>
<div class="sable-tab-item"><?php require_once('schedule_pay.php'); ?></div>
<div class="sable-tab-item"><?php require_once('schedule_comments.php'); ?></div>
<div class="sable-tab-item"><?php require_once('schedule_map.php'); ?></div>

<?php require_once('schedule_bottom.php');