<!doctype html>
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <!-- CSRF Token -->
        <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">

        <title><?php echo e(config('app.name', 'Laravel')); ?></title>
		<link rel="icon" href="<?php echo e(asset('img/wm_icon.png')); ?>" sizes="16x16 32x32" type="image/png">

        <!-- Scripts -->
        <script src="<?php echo e(asset('js/app.js')); ?>" defer></script>

        <!-- Fonts -->
        <link rel="dns-prefetch" href="//fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">

        <!-- Styles -->
        <link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet">
        <link rel="stylesheet" href="<?php echo e(asset('css/sidebar.css')); ?>">
        <!-- Bootstrap Js -->
        <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>

        <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
        <script src="https://kit.fontawesome.com/95e6e4ca72.js" crossorigin="anonymous"></script>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>



		<!-- Início Data Tables -->
		<link href="https://datatables.net/download/build/nightly/jquery.dataTables.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="<?php echo e(asset('css/datatables.css')); ?>">
		<script src="<?php echo e(asset('js/script.js')); ?>"></script>
		<script src="<?php echo e(asset('js/jquery.dataTables.min.js')); ?>"></script>
        <!-- Final Data Tables -->


        <script>
                function startTime() {
                    var today = new Date();
                    var h = today.getHours();
                    var m = today.getMinutes();
                    var s = today.getSeconds();
                    m = checkTime(m);
                    s = checkTime(s);
                    document.getElementById('txt').innerHTML =
                    h + ":" + m + ":" + s;
                    var t = setTimeout(startTime, 500);
                }
                function checkTime(i) {
                    if (i < 10) {i = "0" + i};  // add zero in front of numbers < 10
                    return i;
                }
            </script>

    </head>
    <body onload="startTime()">
        <div id="app">
            <div class="d-flex" id="wrapper">
                <!-- sidebar -->
                <div class="sidebar sidebar-lighten">
                    <div class="dashheader-darker">
                        <img src="<?php echo e(asset('img/wm_icon.png')); ?>" style="width: 38px;">
                        <span style="color: white; margin: 0px 10px;">WM digital.</span>
                    </div>
                    <!-- Profile -->
                    <div class="col-profile">
                        <div class="profile-container">
                        <div class="profile-photo one">

                        </div>
                            <ul class="profile-name">
                                <!-- Authentication Links -->
                                <?php if(auth()->guard()->guest()): ?>
                                    <li class="nav-item">
                                        <a class="nav-link" href="<?php echo e(route('login')); ?>"><?php echo e(__('Login')); ?></a>
                                    </li>
                                    <?php if(Route::has('register')): ?>
                                        <li class="nav-item">
                                            <a class="nav-link" href="<?php echo e(route('register')); ?>"><?php echo e(__('Register')); ?></a>
                                        </li>
                                    <?php endif; ?>
                                    <?php else: ?>
                                    <li class="nav-item dropdown">
                                        <a >
                                            <?php echo e(Auth::user()->name); ?> <span class="caret"></span>
                                        </a>
                                        <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                                            <a class="dropdown-item" href="<?php echo e(route('logout')); ?>"
                                                onclick="event.preventDefault();
                                                                document.getElementById('logout-form').submit();">
                                                <?php echo e(__('Logout')); ?>

                                            </a>
                                            <form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" style="display: none;">
                                                <?php echo csrf_field(); ?>
                                            </form>
                                        </div>
                                    </li>
                                <?php endif; ?>
                            </ul>

                        </div>
                        <a href="<?php echo e(route('logout')); ?>"
                            onclick="event.preventDefault();
                                            document.getElementById('logout-form').submit();"><i class="fas fa-power-off" data-toggle="tooltip" data-placement="bottom" title="Logout"></i>
                            </a>
                    </div>
                    <!-- sidebar menu -->
                    <div class="sidebar-menu ">
                        <!-- menu -->
                        <ul class="list list-unstyled list-scrollbar">
                            <!-- simple menu -->
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit-users')): ?>
                            <li class="list-item">
                                <p class="list-title text-uppercase">ADMIN</p>
                                <ul class="list-unstyled">
                                    <li><a href="<?php echo e(route('users.index')); ?>" class="list-link current">Usuários</a></li>
                                </ul>
                            </li>
                            <?php endif; ?>
                            <li class="list-item">
                                <p class="list-title text-uppercase">LEADS</p>
                                <ul class="list-unstyled">
                                    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('edit-users')): ?>
                                    <li><a href="<?php echo e(route('leads.index')); ?>" class="list-link current">Leads Master</a></li>
                                    <?php endif; ?>
                                    <li><a href="<?php echo e(route('myleads.index')); ?>" class="list-link current">Minhas Leads</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="content">
                    <!-- header -->
                    <div class="dashheader-lighter">
                        <!-- Header/Toolbar -->
                        <span class="navbar-text">
                            <a id="sidebar-toggle" class="navbar-bars">
                                <i class="fa fa-bars" aria-hidden="true" style="font-size: 20px;"></i>
                            </a>
                        </span>
                        <a href="<?php echo e(url('/home')); ?>" class="headlink">Home</a>
                        <a class="headlink">Suporte</a>
                        <span style="margin-left: auto;"><span id="txt"></span> - <span id="dayname"></span>, <span id="day"></span>/<span id="month"></span>/<span id="year"></span></span>
                        <a class="nav-badge">
                            <i class="far fa-bell"></i>
                            <span class="badge badge-warning navbar-badge">15</span>
                        </a>
                    </div>
                    <!-- START Conteúdo Yield -->
                    <main class="py-4">
                        <?php echo $__env->yieldContent('content'); ?>
                    </main>
                    <!-- END Conteúdo Yield -->
                </div>
            </div>
        </div>
    </body>
</html>
<script src="<?php echo e(asset('js/sidebar.menu.js')); ?>"></script>
<script>
    var d = new Date();
    document.getElementById("year").innerHTML = d.getFullYear();
    document.getElementById("month").innerHTML = d.getMonth() + 1;
    document.getElementById("day").innerHTML = d.getDate();

    var d = new Date();
    var weekday = new Array(7);
    weekday[0] = "Domingo";
    weekday[1] = "Segunda-Feira";
    weekday[2] = "Terça-Feira";
    weekday[3] = "Quarta-Feira";
    weekday[4] = "Quinta-Feira";
    weekday[5] = "Sexta-Feira";
    weekday[6] = "Sábado";

    var n = weekday[d.getDay()];
    document.getElementById("dayname").innerHTML = n;
</script>


<script>
$(function () {
  $('[data-toggle="tooltip"]').tooltip()
})
</script>


<script language='javascript' type='text/javascript'>
    var proposta = document.getElementById("proposta")
    , proposta_confirm = document.getElementById("proposta_confirm");

    function validatePassword(){
    if(proposta.value != proposta_confirm.value) {
        proposta_confirm.setCustomValidity("Valores precisam ser iguais.");
    } else {
        proposta_confirm.setCustomValidity('');
    }
    }

    proposta.onchange = validatePassword;
    proposta_confirm.onkeyup = validatePassword;
</script>

<script>
    const pasteBox = document.getElementById("proposta_confirm");
    pasteBox.onpaste = e => {
      e.preventDefault();
      return false;
    };
  </script>
<?php /**PATH C:\wamp64\www\resources\views/layouts/app.blade.php ENDPATH**/ ?>