<!DOCTYPE html>
<html lang="{{ config('app.locale') }}">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <!-- CSRF Token -->
  <meta name="csrf-token" content="{{ csrf_token() }}">

  <title>Stock Management</title>

  <!-- Bootstrap Core CSS -->
  <link href="{{asset($asset_url.'css/backend/bootstrap.min.css')}}" rel="stylesheet">

  <!-- Custom CSS -->
  <link href="{{asset($asset_url.'css/backend/startmin.css')}}" rel="stylesheet">
  <link href="{{asset($asset_url.'css/app_manage.css')}}" rel="stylesheet">

  <!-- Morris Charts CSS -->
  {{-- <link href="{{asset('css/morris.css')}}" rel="stylesheet"> --}}

  <!-- Custom Fonts -->
  <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"
        type="text/css">
  
</head>
<body>
  <!-- Main -->
  <main>
    <nav class="navbar navbar-transparent navbar-fixed-top">
      <div class="container">
        <a class="logout pull-right" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
          <i class="fa fa-sign-out fa-fw"></i> @lang('manage.logout')
        </a>
        <form id="logout-form" action="{{ route('logout') }}" method="POST">
          {{ csrf_field() }}
        </form>
      </div>
    </nav>
    <div class="container">

      @yield('content')

    </div>

    <nav class="navbar navbar-transparent navbar-fixed-bottom">
      <div class="container">
        <p class="pull-right">Powered by <a href="http://cerise-concept.com/" target="_blank">cerise</a></p>
      </div>
    </nav>
  </main>
  <!--/. Main -->

  <!-- jQuery -->
  <script src="{{asset($asset_url.'js/backend/jquery.min.js')}}"></script>

  <!-- Bootstrap Core JavaScript -->
  <script src="{{asset($asset_url.'js/backend/bootstrap.min.js')}}"></script>

  <!-- Metis Menu Plugin JavaScript -->
  <script src="{{asset($asset_url.'js/backend/metisMenu.min.js')}}"></script>

  <!-- Custom Theme JavaScript -->
  {{-- <script src="{{asset('js/startmin.js')}}"></script> --}}
    

  @yield('script')

  <script type="text/javascript">
      var sourceSwap = function () {
          var $this = $(this).find("img");
          var newSource = $this.data('alt-src');
          $this.data('alt-src', $this.attr('src'));
          $this.attr('src', newSource);
      }

      $(function () {
          $('img.heading_img').parent().hover(sourceSwap, sourceSwap);
      });
  </script>
</body>
</html>
