<!DOCTYPE html>
<html lang="en">
<head>
    <title>
        VeteranLogix - Attendance Management System
    </title>
    <?php echo HTML::script('js/charisma/js/jquery-1.7.2.min.js'); ?>

    <?php echo HTML::script('js/pnotify/jquery.pnotify.js'); ?>

    <?php echo HTML::script('js/timer.js'); ?>

    <?php echo HTML::script('css/bootstrap/js/bootstrap-alert.js'); ?>

    <?php echo HTML::style('css/bootstrap/css/bootstrap.css'); ?>

    <?php echo HTML::style('css/bootstrap/css/bootstrap-responsive.css'); ?>

    <?php echo HTML::style('css/charisma/css/bootstrap-cerulean.css'); ?>

    <?php echo HTML::style('css/charisma/css/charisma-app.css'); ?>

    <?php echo HTML::style('css/jquery-ui.css'); ?>

    <?php echo HTML::style('css/charisma/css/opa-icons.css'); ?>

    <?php echo HTML::style('css/pnotify/jquery.pnotify.default.icons.css'); ?>

    <?php echo HTML::style('css/pnotify/jquery.pnotify.default.css'); ?>

    <?php echo HTML::style('css/custom.css'); ?>

    <?php echo HTML::script('js/angular.min.js'); ?>

    <?php echo $__env->yieldContent('cssTop'); ?>
    <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-60038966-1', 'auto');
        ga('send', 'pageview');
    </script>
    <?php /*timer js function */ ?>
    <script>
        $(document).ready(function() {
            function timeNow() {
                var d = new Date(),
                        h = (d.getHours()<10?'0':'') + d.getHours(),
                        m = (d.getMinutes()<10?'0':'') + d.getMinutes();
                        s = (d.getSeconds()<10?'0':'') + d.getSeconds();;
                return h + ':' + m+ ':' + s;
            }
            <?php if(Auth::user()->auto_punch_out_time != '00:00:00'): ?>
            var autoPunchOutTime = "<?php echo Auth::user()->auto_punch_out_time; ?>";
            <?php endif; ?>
    function startTimer(duration, display) {
                var timer = duration, minutes, seconds;
                setInterval(function () {
                    <?php if(Auth::user()->auto_punch_out_time != '00:00:00'): ?>
                        if(autoPunchOutTime == timeNow() || autoPunchOutTime < timeNow()){
                            window.location.href = "<?php echo URL::to('user/punch-out'); ?>";
                        }
                    <?php endif; ?>
                    hours = parseInt(timer / 60 / 60, 10);
                    minutes = parseInt(timer / 60 , 10);
                    minutes = parseInt(minutes % 60 , 10);
                    seconds = parseInt(timer % 60, 10);

                    hours = hours < 10 ? "0" + hours : hours;
                    minutes = minutes < 10 ? "0" + minutes : minutes;
                    seconds = seconds < 10 ? "0" + seconds : seconds;

                    display.text(hours + ":" +minutes + ":" + seconds);

                    if (++timer < 0) {
                        timer = duration;
                    }
                }, 1000);
            }

            <?php if(Session::has('timeTrack')): ?>
                jQuery(function ($) {
                    var fiveMinutes = parseInt(<?php echo Session::get('timeTrack')?>),
                            display = $('#time');
                    startTimer(fiveMinutes, display);
                });
            <?php endif; ?>
        });
    </script>
    <?php echo $__env->yieldContent('jsBottom'); ?>
    <script>
        $(function() {
            $( ".datepicker" ).datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat:'yy-mm-dd'
            });
            $( ".datepicker2" ).datepicker({
                changeMonth: true,
                changeYear: true,
                dateFormat:'yy-mm-dd'
            });
        });
    </script>
    <script>
        $(function(){
            $(".input").bind("keyup blur",function() {
                var $th = $(this);
                $th.val( $th.val().replace(/[^A-z0-9,#. _@-]/g, function(str) { return ''; } ) );
            });
        })
    </script>
    <!-- The HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js') !!}
    <![endif]-->
    <script type="text/javascript" language="javascript">
        function resultDelete()
        {
            var chk=confirm("Are you sure to delete this?");
            if(chk)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    </script>
</head>

<body>


<!-- topbar starts -->
<div class="navbar navbar-inverse">
    <div class="navbar-inner">
        <div class="container-fluid">
            <a class="btn btn-navbar" data-toggle="collapse" data-target=".top-nav.nav-collapse,.sidebar-nav.nav-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>
            <a class="brand" href="http://hr.veteranlogix.com">VeteranLogix</a>
            <!-- user dropdown starts -->
            <div class="btn-group pull-right" >
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="icon-user"></i><span class="hidden-phone"> <?php echo e(Auth::user()->username); ?></span>
                    <span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li>
                        <?php echo link_to("user/logout","Logout"); ?>


                    </li>
                </ul>
            </div>
            <?php if(Session::get('timeTrack')): ?>
            <div class="btn-group pull-right" >
                <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="icon-time"></i><span class="hidden-phone" id="time">00:00:00</span>
                </a>
            </div>
            <?php endif; ?>
            <?php if(Auth::user()->designation_id): ?>
            <div class="btn-group pull-right" style="margin-top: 0.5%;margin-right: 1%;">
                <span class="label label-success"><?php echo e(Auth::user()->Designation->name); ?></span>
            </div>
            <?php endif; ?>
        </div>
    </div>
</div>
<!-- topbar ends -->
<div class="container-fluid">
    <div class="row-fluid">
        <!-- left menu starts -->
        <div class="span2 main-menu-span">
            <div class="well nav-collapse sidebar-nav">
                <ul class="nav nav-tabs nav-stacked main-menu">
                    <li class="nav-header hidden-tablet">Main</li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user'); ?>"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
                    <li class="nav-header hidden-tablet"> Profile</li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/update-profile'); ?>"><i class="icon-edit"></i><span class="hidden-tablet"> Edit Info</span></a></li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/change-password'); ?>"><i class="icon-edit"></i><span class="hidden-tablet"> Change Password</span></a></li>
                    <li class="nav-header hidden-tablet"> Leave</li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/apply-leave'); ?>"><i class="icon-align-justify"></i><span class="hidden-tablet"> Apply</span></a></li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/my-leave'); ?>"><i class="icon-calendar"></i><span class="hidden-tablet"> My Leave</span></a></li>
                    <li class="nav-header hidden-tablet"> Notice Board</li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/notice-board'); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Notice Board</span></a></li>
                    <li class="nav-header hidden-tablet"> Report</li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/full-calender'); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Full Calender Report</span></a></li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/table-report'); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Table Report</span></a></li>
                    <li><a class="ajax-link" href="<?php echo URL::to('user/chat'); ?>"><i class="icon-list"></i><span class="hidden-tablet"> Chat</span></a></li>
                </ul>
                <label id="for-is-ajax" class="hidden-tablet" for="is-ajax"></label>
            </div><!--/.well -->
            <?php /*<div class="row-fluid margin-15">
                <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <!-- 3df41369dc030c11a47065f34cd... - 2 (mobile, www.kingpabel.com) -->
                <ins class="adsbygoogle"
                     style="display:block"
                     data-ad-client="ca-pub-3284345266094241"
                     data-ad-slot="2638367211"
                     data-ad-format="auto"></ins>
                <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
            </div>*/ ?>
        </div><!--/span-->
        <!-- left menu ends -->

        <noscript>
            <div class="alert alert-block span10">
                <h4 class="alert-heading">Warning!</h4>
                <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
            </div>
        </noscript>

        <div id="content" class="span10">

            <?php echo $__env->yieldContent('content'); ?>
            <?php /*<div class="row-fluid">
        <div class="span12 margin-15">
            <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- 3df41369dc030c11a47065f34cd... - 2 (mobile, www.kingpabel.com) -->
            <ins class="adsbygoogle"
                 style="display:block"
                 data-ad-client="ca-pub-3284345266094241"
                 data-ad-slot="2638367211"
                 data-ad-format="auto"></ins>
            <script>
                (adsbygoogle = window.adsbygoogle || []).push({});
            </script>
        </div>
        </div>*/ ?>
            <?php /*<div class="row-fluid margin-15">
                <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <!-- 3df41369dc030c11a47065f34cd... - 2 (mobile, www.kingpabel.com) -->
                <ins class="adsbygoogle"
                     style="display:block"
                     data-ad-client="ca-pub-3284345266094241"
                     data-ad-slot="2638367211"
                     data-ad-format="auto"></ins>
                <script>
                    (adsbygoogle = window.adsbygoogle || []).push({});
                </script>
            </div>*/ ?>

        </div><!--/row-->





        <!-- content ends -->
    </div><!--/#content.span10-->
</div><!--/fluid-row-->

<hr>



<footer>

</footer>

</div><!--/.fluid-container-->

<!-- external javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<?php echo HTML::script('js/jquery-ui.js'); ?>

<?php echo HTML::script('js/charisma/js/bootstrap-dropdown.js'); ?>

<?php echo HTML::script('js/charisma/js/bootstrap-tab.js'); ?>

<?php echo HTML::script('js/charisma/js/bootstrap-tooltip.js'); ?>

<?php echo HTML::script('js/charisma/js/bootstrap-popover.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.cookie.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.chosen.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.uniform.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.uniform.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.cleditor.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.noty.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.elfinder.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.raty.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.iphone.toggle.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.autogrow-textarea.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.uploadify-3.1.min.js'); ?>

<?php echo HTML::script('js/charisma/js/jquery.history.js'); ?>

<?php /*<?php echo HTML::script('js/charisma/js/charisma.js'); ?>*/ ?>

</body>
</html>