<?=$this->display('layout/html.top')?>

<body class="no-init page-login" ng-controller="AppController">
	<div class="preloader"></div>
	<div class="loader-wrap">
		<div class="loader-frame"><div class="loader">&nbsp;</div></div>
	</div>
	<?=$this->display('layout/html.body')?>

	<audio id="support-message-new">
		<source src="/assets/cockpit/audio/message-creation.wav"></source>
	</audio>
	<audio id="support-message-recieved">
		<source src="/assets/cockpit/audio/message-inbound.wav"></source>
	</audio>
	<audio id="orders-delivered">
		<source src="/assets/cockpit/audio/orders-delivered.mp3"></source>
	</audio>
	<audio id="new-order">
		<source src="/assets/cockpit/audio/new-order.wav"></source>
	</audio>

	<div class="loader" style="height: 1; width: 1;visibility: hidden;"></div>

	<?=$this->display('layout/html.bottom')?>
</body>

<? if (c::config()->bundle) : ?>
	<? $css = c::config()->site->config('s3-bundle')->val() ? 'https://'.c::config()->s3->buckets->build->cache.'/'.getenv('HEROKU_SLUG_COMMIT').'/css/cockpit.css' : '/assets/cockpit/css/bundle.css?v='.getenv('HEROKU_SLUG_COMMIT').'&s=cockpit' ?>
	<link rel="stylesheet" type="text/css" href="<?=$css?>">
<? else : ?>
	<?=$this->display('bundle/css')?>
<? endif ; ?>

<? if (getenv('EXTERNAL_CSS_POST')) : ?>
	<link rel="stylesheet" type="text/css" href="<?=getenv('EXTERNAL_CSS_POST')?>">
<? endif ; ?>

</html>
