<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="<?php echo e(URL::asset('/')); ?>assets/img/favicon.png"/>
<link rel="icon" href="<?php echo e(URL::asset('/')); ?>assets/img/favicon.png" type="image/x-icon" />
<title>Smart Expense Keeping</title>

<!-- Bootstrap core CSS -->
<link href="<?php echo e(URL::asset('/')); ?>assets/stylesheets/css/bootstrap.css" rel="stylesheet">

<!-- Custom styles for this template -->
<link href="<?php echo e(URL::asset('/')); ?>assets/stylesheets/css/app.css" rel="stylesheet">
<link href="<?php echo e(URL::asset('/')); ?>assets/stylesheets/css/custom-style.css" rel="stylesheet">
<link href="<?php echo e(URL::asset('/')); ?>assets/stylesheets/css/font-awesome.min.css" rel="stylesheet">
<link href="<?php echo e(URL::asset('/')); ?>assets/js/chosen_v1.4.2/chosen.css" rel="stylesheet">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">

 <!-- <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
   <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
   
   -->
   
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.13/css/jquery.dataTables.min.css">
   <script type="text/javascript" charset="utf8" src="http://code.jquery.com/jquery-1.12.4.js"></script>
  <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->


</head>

<body>

<!-- Static navbar -->
<nav class="navbar navbar-default navbar-static-top head-style">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      <a class="navbar-brand heading-style" href="<?php echo e(URL::asset('/')); ?>">
      <?php if(Auth::user()->company_name!=NULL){ echo Auth::user()->company_name; }else{ echo 'Project name'; } ?>
      </a> </div>
    <div style="width:1160px;" id="navbar" class="navbar-collapse collapse">
      <ul class="nav navbar-nav navbar-right">
        <li><a class=" heading-style" href="<?php echo e(URL::asset('/')); ?>companies">Change Company</a></li>
		<li><a class="heading-style" href="<?php echo e(URL::asset('/')); ?>budgets/periods">Depart. & Periods</a></li>
		<li><a class=" heading-style" href="<?php echo e(URL::asset('/')); ?>budgets">Budgets</a></li>
        <li><a class=" heading-style" href="<?php echo e(URL::asset('/')); ?>expenses">Expense Requests</a></li>
        <li><a class=" heading-style" href="<?php echo e(URL::asset('/')); ?>users">Users</a></li>
        <li class="dropdown" ><a href="#" class=" heading-style dropdown-toggle dropdwn dropdwn-border" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Reports<span class="heading-style caret"></span></a>
        
                  <ul class="dropdown-menu">
                    <li><a href="<?php echo e(URL::asset('/')); ?>expense-reports">Expense report</a></li>
                    <li><a href="<?php echo e(URL::asset('/')); ?>budget-reports">Budget report</a></li>
                  
                  </ul>
        </li>
        <li>
          <form class="navbar-form navbar-left" role="search" action="<?php echo e(URL::asset('/')); ?>expenses/search" method="post">
            <input type="hidden" name="_token" value="<?php echo csrf_token(); ?>">
            <div class="form-group">
              <input type="text" class="form-control" name="search" placeholder="Search">
            </div>
            <button type="submit" style="padding: 6px 10px;" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button>
          </form>
        </li>
      
      
	  <?php /* if(Auth::user()->logo==""){ ?>
        <li><img src="{{ URL::asset('/') }}uploads/logo.png" alt="{{Auth::user()->name}}" class="img-rounded avatar" width="40px" style="position: relative; margin-top: 0px; top: 7px; margin-right: 5px; width:32px; " /></li>
	 <?php } else { ?>
		  <li><img src="{{ URL::asset('/') }}uploads/{{Auth::user()->logo}}" alt="{{Auth::user()->name}}" class="img-rounded avatar" width="40px" style="position: relative; margin-top: 0px; top: 10px; margin-right: 5px; width:32px; " /></li>
	<?php  } */?>
		
        <li class="dropdown"> <a href="#" class="dropdown-toggle dropdwn dropdwn-border" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="fa fa-cog fa-lg heading-style"></i><span class="heading-style caret"></span></a>
          <ul class="dropdown-menu">
            <li><a href="<?php echo e(URL::asset('/')); ?>profile"> <?php echo e(Auth::user()->name); ?></a></li>
            <li><a href="<?php echo e(URL::asset('/')); ?>profile"><?php echo e(trans("app.profile")); ?></a></li>
            <li><a href="<?php echo e(URL::asset('/')); ?>auth/logout"><?php echo e(trans("app.logout")); ?></a></li>
          </ul>
        </li>
      </ul>
    </div>
    <!--/.nav-collapse --> 
  </div>
</nav>
<div class="container"> 
<?php if($errors->any()): ?>
  <?php foreach($errors->all() as $error): ?>
  	<p class="text-danger" style="margin-bottom: 0px;"><?php echo e($error); ?></p>
  <?php endforeach; ?>
<?php endif; ?>
  
  <?php if(Session::has("message")): ?>
  <div class="alert alert-success"><?php echo e(Session::get("message")); ?></div>
  <?php endif; ?>
  <?php if(Session::has("error")): ?>
  <div class="alert alert-danger"><?php echo e(Session::get("error")); ?></div>
  <?php endif; ?>
  <?php echo $__env->yieldContent("content"); ?> </div>
<!-- Bootstrap core JavaScript
================================================== --> 
<!-- Placed at the end of the document so the pages load faster --> 
  <!--  <script src="http://code.jquery.com/jquery-1.12.0.min.js"></script> --> 
<script src="<?php echo e(URL::asset('/')); ?>assets/js/bootstrap.min.js"></script> 
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> 

<script src="<?php echo e(URL::asset('/')); ?>assets/js/ie10-viewport-bug-workaround.js"></script> 
<script src="<?php echo e(URL::asset('/')); ?>assets/js/chosen_v1.4.2/chosen.jquery.min.js"></script> 
<script>
	$(function () {
		$('[data-toggle="tooltip"]').tooltip();
	})
	$(".chosen-select").chosen();
</script> 
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script> 
<script>
	$(function () {
		$('[data-toggle="tooltip"]').tooltip();
	})
	$(".chosen-select").chosen();	
</script> 
<script>
  $(function() {
	  
	  $( "#expense_date" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      numberOfMonths: 1,
	  dateFormat: "yy-mm-dd",
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
	  
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      numberOfMonths: 1,
	  dateFormat: "yy-mm-dd",
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      numberOfMonths: 1,
	  dateFormat: "yy-mm-dd",
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
</script> 
<script type="text/javascript" src="<?php echo e(URL::asset('/')); ?>assets/fancybox/source/jquery.fancybox.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="<?php echo e(URL::asset('/')); ?>assets/fancybox/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<script type="text/javascript">
	$(document).ready(function() {
		$('.fancybox').fancybox();
	});
</script>
<!-- Ckeditor -->
<script src="<?php echo e(URL::asset('/')); ?>assets/js/ckeditor.js"></script>
<script src="<?php echo e(URL::asset('/')); ?>assets/js/sample.js"></script> 
<script>
	initSample();
</script> 
<!-- Ckeditor -->
<!--  datatables -->





<!--  end datatable  -->
<?php echo $__env->yieldContent("footer"); ?>
</body>
</html>
