<!DOCTYPE html>
<html>
   <head>
      <title>Golars Tank | Golars Facility Management</title>
      <meta charset="utf-8">
	  <meta http-equiv="Cache-control" content="public">
      <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>" />
      <meta name="base_url" content="<?php echo e(url('')); ?>" id="base_url"/>
      <meta name="viewport" content="width=device-width, initial-scale=1">
      <link rel="shortcut icon" href="<?php echo e(url('assets/img/favicon/fav.png')); ?>"  type="image/x-icon">
      <link rel="icon" href="<?php echo e(url('assets/img/favicon/fav.png')); ?>" type="image/x-icon">
      <link href="<?php echo e(url('public/assets_new/bootstrap/dist/css/bootstrap.css')); ?>" rel="stylesheet">
      <link href="<?php echo e(url('public/assets_new/bootstrap/mCScrollbar/jquery.mCustomScrollbar.css')); ?>" rel="stylesheet">
      <link rel="stylesheet" type="text/css" href="<?php echo e(url('css/scrollbar.css')); ?>" />
      <!--<link rel="stylesheet" type="text/css" href="<?php echo e(url('css/jquery.ui.autocomplete.css')); ?>" />-->
      <link rel="stylesheet" type="text/css" href="<?php echo e(url('css/details.css')); ?>" />
      <link rel="stylesheet" type="text/css" href="<?php echo e(url('css/style.css')); ?>" />
      <link href="<?php echo e(url('public/assets_new/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.css')); ?>" rel="stylesheet">
      <link href="<?php echo e(url('public/assets_new/css/animate.css')); ?>" rel="stylesheet">
      <link href="<?php echo e(url('public/assets_new/css/style.css')); ?>" rel="stylesheet">
      <link href="<?php echo e(url('public/assets_new/css/colors/megna-dark.css')); ?>" id="theme" rel="stylesheet">
      <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
      <script src="<?php echo e(url('public/assets_new/plugins/bower_components/jquery/dist/jquery.min.js')); ?>"></script>
      <!-- Login Golars Environment CSS -->
      <link rel="stylesheet" href="<?php echo e(url('public/assets_new/css/gestyle.css')); ?>">
   </head>
   <body class="fix-header" >
      <div id="wrapper">
         <nav class="navbar navbar-default navbar-static-top m-b-0">
            <div class="navbar-header" style="height: 48px;">
               <div class="top-left-part" style="padding-top: 3px;">
                  <a class="logo" href="<?php echo e(url('/admin/facilitylist')); ?>">
                  <span class="hidden-xs">
                  <img src="<?php echo e(url('public/assets_new/plugins/images/admin-text-dark.jpg')); ?>" alt="home" class="dark-logo" style="width: 60%;" />
                  <img src="<?php echo e(url('public/assets_new/plugins/images/admin-text-dark.jpg')); ?>" alt="home" class="light-logo"  style="width: 60%;" />
                  </span>
                  </a>
               </div>
               <ul class="nav navbar-top-links navbar-left" id="first_ul">
                  <li class="hidden-md hidden-lg col-sm-12 col-xs-12" id="li-img">
                    <a class="logo" href="<?php echo e(url('/admin/dashboard')); ?>" style="padding: 0px; border-bottom: 0px;">
                      <span class="">
                         <img src="<?php echo e(url('public/assets/img/gfm1.jpg')); ?>" alt="home" class="dark-logo" style="width: 100%; height: 51px;" />
                      </span>
                    </a>
                  </li>
                  <!--<li>
                     <a class=""  href="<?php echo e(url('/admin/dashboard')); ?>">Dashboard</a>
                  </li>-->
                  <li>
                     <a <?php echo e(Request::is('admin/facilitylist') || Request::is('admin/facilityview/*')|| Request::is('admin/updateattachment/*') || Request::is('admin/gtfnattachments/*')   ? 'class=active' : ''); ?> href="<?php echo e(url('/admin/facilitylist')); ?>">Facilities</a>
                  </li>
                  <li>
                     <a <?php echo e(Request::is('admin/companylist') || Request::is('admin/companylistview/*') || Request::is('admin/companyfacilities/*')   ? 'class=active' : ''); ?>  href="<?php echo e(url('/admin/companylist')); ?>">Companies</a>
                  </li>
                  <li>
                     <a  <?php echo e(Request::is('admin/addpaymentlist') || Request::is('admin/paymentmethod')|| Request::is('admin/order_view/*')|| Request::is('admin/ordersummery')  || Request::is('admin/add_paymentlist/*')|| Request::is('admin/ordersubmit') ? 'class=active' : ''); ?>  href="<?php echo e(url('/admin/addpaymentlist')); ?>">Payments</a>
                  </li>
				  <li class="dropdown hidden-md hidden-lg pull-right">
                     <?php $id = Auth::User()->id; $profile = DB::table('users')->where('id', $id)->select("profile_image")->first(); $profile_name = isset($profile->profile_image)?$profile->profile_image:'no_avatar.jpg'; ?>
                     <a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="javascript:void(0)"> <img src="<?php echo e(url('public/uploads')); ?>/<?php echo e($profile_name); ?>" onerror="this.onerror=null;this.src='<?php echo e(url('public/assets/img/avatars/male.png')); ?>';" width="25" class="img-circle"><b class="hidden-xs hidden-sm"><?php echo e(ucfirst(Session::get('salesforce_Name'))); ?></b><span class="caret"></span> </a>
                     <ul class="dropdown-menu dropdown-user animated flipInY">
                        <li>
                           <div class="dw-user-box text-center">
                              <div class="u-img">
                                 <?php $id = Auth::User()->id; $profile = DB::table('users')->where('id', $id)->select("profile_image")->first(); $profile_name = isset($profile->profile_image)?$profile->profile_image:'no_avatar.jpg'; ?><img src="<?php echo e(url('public/uploads')); ?>/<?php echo e($profile_name); ?>" onerror="this.onerror=null;this.src='<?php echo e(url('public/assets/img/avatars/male.png')); ?>';" width="36" class="img-circle">
                              </div>
                              <div class="u-text" style="margin-top: 1%;">
                                 <h4><?php echo e(ucfirst(Session::get('salesforce_Name'))); ?></h4>
                                 <p class="text-muted">
                                    <?php echo e(ucfirst(Session::get('salesforce_Email'))); ?><!-- </p><a href="<?php echo e(url('admin/users')); ?>" class="btn btn-rounded btn-danger btn-sm">View Profile</a></div> -->
                              </div>
                        </li>
                        <li role="separator" class="divider"></li>
                        <li><a href="<?php echo e(url('admin/users')); ?>"><i class="ti-user"></i> My Profile</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="<?php echo e(url('/auth/logout')); ?>"><i class="fa fa-power-off"></i> Logout</a></li>
                     </ul>
                  </li>
               </ul>
               <ul class="nav navbar-top-links navbar-right pull-right">
				  <li class="text-center hidden-sm hidden-xs" style="margin-top: 14px; margin-right: 5px; font-size: 10px;">
                     <?php $lst_logout = DB::table('users')->where('user_id', Session::get('salesforce_Id'))->select('last_logout')->first(); 
                     if(isset($lst_logout)){
                     $date = new DateTime(''.$lst_logout->last_logout.''); $date->setTimezone(new DateTimeZone('EST')); ?>Last Login: <?php  if(isset($lst_logout)) echo $date->format("d-M-y, h:i A"); }else{ } ?>
                  </li>
                  <li>
                     <form role="search" class="app-search hidden-sm hidden-xs m-r-10">
                        <input type="text" placeholder="Search..." class="form-control"> <a href=""><i class="fa fa-search"></i></a>
                     </form>
                  </li>
                  <li class="dropdown hidden-sm hidden-xs">
                     <!--a class="dropdown-toggle waves-effect waves-light" data-toggle="dropdown" href="javascript:void(0)">
                        <i class="fa fa-bell-o"></i>
                        <div class=""><span class="heartbit"></span><span class="point"></span></div>
                     </a-->
                     <?php $notifications = DB::table('notifications')->latest()->limit(4)->get(); ?>
                     <ul class="dropdown-menu dropdown-tasks animated flipInY">
                        <?php foreach($notifications as $not): ?>
                        <li class="text-center">
                           <a href="javascript:void(0)">
                              <div>
                                 <p> <?php echo e($not->notification); ?></p>
                              </div>
                           </a>
                        </li>
                        <li class="divider"></li>
                        <?php endforeach; ?>
                     </ul>
                  </li>
                  <li class="dropdown hidden-sm hidden-xs">
                     <?php $id = Auth::User()->id; $profile = DB::table('users')->where('id', $id)->select("profile_image")->first(); $profile_name = isset($profile->profile_image)?$profile->profile_image:'no_avatar.jpg'; ?>
                     <a class="dropdown-toggle profile-pic" data-toggle="dropdown" href="javascript:void(0)"> <img src="<?php echo e(url('public/uploads')); ?>/<?php echo e($profile_name); ?>" onerror="this.onerror=null;this.src='<?php echo e(url('public/assets/img/avatars/male.png')); ?>';" width="36" class="img-circle"><b class="hidden-xs"><?php echo e(ucfirst(Session::get('salesforce_Name'))); ?></b><span class="caret"></span> </a>
                     <ul class="dropdown-menu dropdown-user animated flipInY">
                        <li>
                           <div class="dw-user-box text-center">
                              <div class="u-img">
                                 <?php $id = Auth::User()->id; $profile = DB::table('users')->where('id', $id)->select("profile_image")->first(); $profile_name = isset($profile->profile_image)?$profile->profile_image:'no_avatar.jpg'; ?><img src="<?php echo e(url('public/uploads')); ?>/<?php echo e($profile_name); ?>" onerror="this.onerror=null;this.src='<?php echo e(url('public/assets/img/avatars/male.png')); ?>';" width="36" class="img-circle">
                              </div>
                              <div>
                                 <h4 style="color: #000;"><?php echo e(ucfirst(Session::get('salesforce_Name'))); ?></h4>
                                 <p class="text-muted" style="color: #000;"> <?php echo e(ucfirst(Session::get('salesforce_Email'))); ?> </p>
                                </div>
                            </div>
                        </li>
                        <li role="separator" class="divider"></li>
                        <li><a href="<?php echo e(url('admin/users')); ?>"><i class="ti-user"></i> My Profile</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="<?php echo e(url('/auth/logout')); ?>"><i class="fa fa-power-off"></i> Logout</a></li>
                     </ul>
                  </li>
               </ul>
         </nav>
         <?php echo $__env->yieldContent('content'); ?>
         <footer class="footer text-center"><p style="color:#ffffff;">Copyright Golars Environmental <?php echo date('Y'); ?>. All right reserved.</p></footer>
         </div>
      </div>
      <script src="<?php echo e(url('public/assets_new/bootstrap/mCScrollbar/jquery.mCustomScrollbar.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/bootstrap/dist/js/bootstrap.min.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/plugins/bower_components/sidebar-nav/dist/sidebar-nav.min.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/js/jquery.slimscroll.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/js/waves.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/js/custom.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/js/dashboard1.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/js/cbpFWTabs.js')); ?>"></script>
	  <script src="<?php echo e(url('public/assets_new/plugins/bower_components/toast-master/js/jquery.toast.js')); ?>"></script>
      <script src="<?php echo e(url('public/assets_new/plugins/bower_components/styleswitcher/jQuery.style.switcher.js')); ?>"></script>
      <!--<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>
      <script type="text/javascript" src="<?php echo e(url('js/config.js')); ?>"></script>
      <script type="text/javascript" src="<?php echo e(url('js/autocomplete.js')); ?>"></script>
      <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyC3Gv8OddKcUov_uyrXAoqHMPHyrTywLWU&sensor=true"></script>
      <script type="text/javascript" src="<?php echo e(url('js/jquery-map.js')); ?>"></script>
      <script type="text/javascript" src="<?php echo e(url('js/jquery-map-ext.js')); ?>"></script>
	  <script type="text/javascript" src="<?php echo e(url('js/results.js')); ?>"></script>-->
      <script src="http://code.highcharts.com/highcharts.js"></script>
      <script src="http://code.highcharts.com/modules/exporting.js"></script>
      <script src="http://code.highcharts.com/highcharts-more.js"></script>
      <script src="https://code.highcharts.com/modules/data.js"></script>

<script type="text/javascript">
$(function () {
  $('table').on('scroll', function () {
    $("table > *").width($("table").width() + $("table").scrollLeft());
  });
  
    $("tbody").slimScroll({
    width: 'auto',
    height: 'auto',
    size: '5px',
    position: 'right',
    color: '#02529B',
    alwaysVisible: true,
    distance: '20px',
    railVisible: true,
    railColor: '#222',
    railOpacity: 0.3,
    wheelStep: 10,
    allowPageScroll: true,
    railBorderRadius : '500px',
    useFixedHeight : true,
    fixedHeight : 500,
    disableFadeOut: false
	});
});
</script>
      <script type="text/javascript">
         (function() {
             [].slice.call(document.querySelectorAll('.sttabs')).forEach(function(el) {
                 new CBPFWTabs(el);
             });
         })();
      </script>
      <script type="text/javascript">
         $('#slimtest1').slimScroll({
             height: '400px'
         });
         $('#slimtest12').slimScroll({
             height: '400px'
         });
         $('#slimtest13').slimScroll({
             height: '400px'
         });
         $('#chat_box_messages_div').slimScroll({
             height: '319px'
         });
         $('.gaslist').slimScroll({
             position: 'left',
             height: '275px',
          //   railVisible: true,
             alwaysVisible: true
         });
         $('#slimtest3').slimScroll({
             position: 'left',
             height: '250px',
             railVisible: true,
             alwaysVisible: true
         });
         $('#slimtest4').slimScroll({
             color: '#00f',
             size: '10px',
             height: '250px',
             alwaysVisible: true
         });
      </script>
      <script>
         $(document).ready(function(){

         get_chat_box_messages();

         $(".chat-panel").animate({ scrollTop: $('.chat-panel').prop("scrollHeight")}, 1000);

         $(".with-scroll").animate({ scrollTop: $('.with-scroll').prop("scrollHeight")}, 1000);

            });

         function get_chat_box_messages(){

             //e.preventDefault();

             $.ajax({

                 type: "GET",

                 url: "chat/get_chat_box_messages",

                 success: function(result) {

                     $('#chat_box_messages_div').html('');

                  $('#chat_box_messages_div').html(result);
                  $("#chat_box_messages_div").animate({ scrollTop: $('#chat_box_messages_div').prop("scrollHeight")}, 1000);
                  $('#send').val('');
           }

                 // },

                 // error: function(result) {

                     // alert('error');

                 // }

             });
         }

         $('#send').on('keypress', function(e){

            var message = $(this).val();

            if(message != '' && e.keyCode == 13)

            {

               $.ajax({

                  url: "chat/add",

                  type:"GET",

                  data : { message:message },

                  success: function(result) {

                     get_chat_box_messages();

            $('#send').val('');

                  },

                  error: function(result) {

                     alert('error');

                  }

               });

            }

         });

            $('#send_group_message').on('click', function(e){

            var message = $('#send').val();

            if(message != '' && e.keyCode == 13)

            {

               $.ajax({

                  url: "chat/add",

                  type:"GET",

                  data : { message:message },

                  success: function(result) {

                     get_chat_box_messages();

            $('#send').val('');

                  },

                  error: function(result) {

                     alert('error');

                  }
         });
         }
         });
      </script>

      <script>
         $('#unblockbtn5').click(function() {
               $('div.block5').unblock();
           });

      </script>
      <script type="text/javascript">
         <?php if(isset($lat) && $lat !=''){
            echo 'var id ='. $lat .';';
            echo ' var isSearchNear = false;';
            ?>
          var fuelType  ='reg';

          <?php
            }else{ ?>
         var isSearchNear = false;
         var lat = 39.766911;
         var lng = -86.149963;
         var id = 111386;
         <?php
            } ?>

         <?php if(isset($lang) && $lang !=''){
            if(isset($lang) && $lang == 'true'){
            echo ' var isSearchNear = true;';
            }else{
            echo 'var id ='. $lat .';';
            ?>
         	 var fuelType  ='reg';

          <?php
            }
            }else{ ?>
         var isSearchNear = false;
         var lat = 39.766911;
         var lng = -86.149963;
         var id = 111386;
         <?php
            } ?>
      </script>
<script>
$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip();   
});
</script>
   </body>
</html>

