<?php 
	$section = new \App\Sections; 
	$variable = new \App\Variable;
?>
<!DOCTYPE html>
<html lang="en">
	<head>
    	<meta charset="utf-8">
    	<meta property="og:description" content="CentraCom Local 10 streams many community events, school activites and more live and on demand." />
    	<title>
    		<?php if(isset($title)): ?>
    			<?php echo e($title); ?>

    		<?php else: ?>
    			CentraCom - Local Channel 10
    		<?php endif; ?>
    	</title>
    	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    	<?php echo $section->getEvaluatedSpecial('IncStyle'); ?>
    	<?php echo $__env->yieldContent('extras'); ?>
	</head>
	<body>
		<?php echo $section->getEvaluatedSpecial('NavBlack'); ?>
		<?php eval("?>".$section->get('local10WhiteNav')); ?>
		
		<?php if(session('status')): ?>
			<div class="alert alert-success" style="margin-bottom: 0;">
				<?php echo e(session('status')); ?>

			</div>
		<?php endif; ?>

		<?php if(count($errors) > 0): ?>
			<div class="alert alert-danger" style="margin-bottom: 0;">
				<strong>Whoops!</strong> An error has occurred.<br><br>
				<ul>
					<?php foreach($errors->all() as $error): ?>
						<li><?php echo e($error); ?></li>
					<?php endforeach; ?>
				</ul>
			</div>
		<?php endif; ?>
		
		<?php echo $__env->yieldContent('content'); ?>
		
		<?php eval("?>".$section->where('name', '=', 'local10Footer')->first()->content); ?>
		<?php echo $section->getEvaluatedSpecial('IncScripts'); ?>

		<?php echo $__env->yieldContent('bottom'); ?>
		
			<script type="text/javascript">
			    $(window).on('load',function(){
			        if(getCookie('seenalert') == '')
			        {
			        	//$('#view-l10-alert').modal('show');
			        	//setCookie('seenalert', 'yes', 30);
			        }
			        
			    });
			    $('#view-l10-alert').on('click',function(){

			        	$('#view-l10-alert').modal('hide');

			        
			    });
			
			    function setCookie(cname, cvalue, minutes) {
			        var d = new Date();
			        d.setTime(d.getTime() + (minutes*60*1000));
			        var expires = "expires="+ d.toUTCString();
			        document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
			    }
			    function getCookie(cname) {
			        var name = cname + "=";
			        var decodedCookie = decodeURIComponent(document.cookie);
			        var ca = decodedCookie.split(';');
			        for(var i = 0; i <ca.length; i++) {
			            var c = ca[i];
			            while (c.charAt(0) == ' ') {
			                c = c.substring(1);
			            }
			            if (c.indexOf(name) == 0) {
			                return c.substring(name.length, c.length);
			            }
			        }
			        return "";
			    }
			</script>
		
		<script>
			 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
			 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
			 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
			 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
			
			 ga('create', 'UA-11233770-1', 'auto');
			 ga('send', 'pageview');
			
		</script>

	</body>
</html>