require header ;

local $index_menu = qq~<div class="col-md-8">
                        <div class="dash-tray">
                            <a href="$useropts{'folder'}/search-cameras">
                                <div><i class="glyphicons glyphicons-security-camera" title="Cameras" data-toggle="tooltip" data-placement="left"></i></div>
                            </a>
                        </div>   
                    </div>~ ;

if (substr($usertype,0,6) eq 'casual') {
	$index_menu = qq~<div class="col-md-8">
					<div class="dash-tray">
						<a href="$useropts{'folder'}/calendar">
							<div><i class="glyphicons glyphicons-calendar" title="Calendar" data-toggle="tooltip" data-placement="left"></i></div>
						</a>
					</div>   
				</div>~ ;
	}

print <<ENDOFTEXT;

<div id="content" class="col-lg-12 col-sm-12">
    <!-- content starts -->
    $useropts{'breadcrumbs'}
    
    <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-home"></i> Dashboard</h2>
            </div>
            <div class="box-content">
                <div class="row"><div class="col-md-12">&nbsp;</div></div>
                <div class="row">
                    <div class="col-md-2">&nbsp;</div>
						$index_menu
                    <div class="col-md-2">&nbsp;</div>            
                </div>
                <div class="row"><div class="col-md-12">&nbsp;</div></div>        
            </div>
        </div>
    </div>
    
    </div><!--/row-->
    
    <!-- content ends -->
    </div><!--/#content.col-md-0-->
</div><!--/fluid-row-->

    
    <hr>

ENDOFTEXT

require footer ;

print <<ENDOFTEXT;

$chart_js

</body>
</html>
ENDOFTEXT
#