<?php global $hooks; ?>
                
</div>
                    <!-- END CONTENT BODY -->
                </div>
                <!-- END CONTENT -->
            </div>
            <!-- END CONTAINER -->
            <!-- BEGIN FOOTER -->
            
            <div class="page-footer">
                <div class="page-footer-inner"> Copyright &copy; 2017 IZYIM.COM
                <div class="scroll-to-top">
                    <i class="icon-arrow-up"></i>
                </div>
            </div>
            <!-- END FOOTER -->
        </div>
        
        <!--[if lt IE 9]>
<script src="/assets/global/plugins/respond.min.js"></script>
<script src="/assets/global/plugins/excanvas.min.js"></script> 
<script src="/assets/global/plugins/ie8.fix.min.js"></script> 
<![endif]-->
        <!-- BEGIN CORE PLUGINS -->
        <script src="/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
        <script src="/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
        <script src="/assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
        <script src="/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
        <script src="/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
        <script src="/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
        <!-- END CORE PLUGINS -->
        <!-- BEGIN THEME GLOBAL SCRIPTS -->
        <script src="/assets/global/scripts/app.min.js" type="text/javascript"></script>
        <!-- END THEME GLOBAL SCRIPTS -->
        <!-- BEGIN THEME LAYOUT SCRIPTS -->
        <script src="/assets/layouts/layout/scripts/layout.min.js" type="text/javascript"></script>
        <script src="/assets/layouts/layout/scripts/demo.min.js" type="text/javascript"></script>
        <script src="/assets/layouts/global/scripts/quick-sidebar.min.js" type="text/javascript"></script>
        <script src="/assets/layouts/global/scripts/quick-nav.min.js" type="text/javascript"></script>
        <!-- END THEME LAYOUT SCRIPTS -->
		<script src="/assets/global/plugins/moment.min.js" type="text/javascript"></script>
		<script src="/assets/global/plugins/counterup/jquery.counterup.min.js" type="text/javascript"></script>
		<script src="/assets/global/plugins/counterup/jquery.waypoints.min.js" type="text/javascript"></script>
		<!--<script src="/assets/pages/scripts/dashboard.min.js" type="text/javascript"></script>-->
        <script>
            $(document).ready(function()
            {
                $('#clickmewow').click(function()
                {
                    $('#radio1003').attr('checked', 'checked');
                });
				function refreshSideBar(){
					<?php if(getStatusCompanyFriend($_SESSION['company_id']) > 0 && $_SESSION['group_id'] == 1){ ?>
					 $('a[href$="/contacts"]').find('span.title').append('<span class="badge badge-danger pull-right">'+<?php echo getStatusCompanyFriend($_SESSION['company_id']); ?>+'</span>');
					<?php } ?>
				}
				
				
            })
			function timeout() {
					setTimeout(function () {
						$.ajax({
							type: "POST",
							url: "/get-unread",
							success: function(data) {
								var obj = JSON.parse( data );
								var unread_order = obj[0].unread_order;
								var unread_contact = obj[0].unread_contact;
								var unread_so = obj[0].unread_so;
								if(unread_order != ""){
									$('a[href$="/messenger/general"]').find('span.title').html('Messenger<span class="badge badge-danger pull-right">'+unread_order+'</span>');
								}
								if(unread_contact != ""){
									$('a[href$="/contacts"]').find('span.title').html('Contact List<span class="badge badge-danger pull-right">'+unread_contact+'</span>');
								}
								if(unread_so != ""){
									$('a[href$="/shipping-order"]').find('span.title').html('Shipping Order<span class="badge badge-danger pull-right">'+unread_so+'</span>');
									$('span:contains("Orders")').html('Orders<span class="badge badge-danger" style="margin-left: 40px;">'+unread_so+'</span>'); 
								}
							}
								
						});
						timeout();
					}, 3000);
				}
				timeout();
        </script>
    </body>

</html>
<?php $hooks->do_action("global_js"); ?>

</body>
</html>