<!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">
        <meta name="csrf_token" content="<?php echo e(csrf_token()); ?>" />

        <title><?php echo e(config('app.name', 'Laravel')); ?></title>

        <!-- Fonts -->
        <link rel="stylesheet" href="<?php echo e(asset("/css/select2.css")); ?>">
        <link rel="stylesheet" href="<?php echo e(asset("/css/sweetalert2.css")); ?>">
        <link rel="stylesheet" href="<?php echo e(asset("/css/datatables.min.css")); ?>">
        <link rel="stylesheet" href="<?php echo e(asset("/css/light.css")); ?>" />
        <link rel="stylesheet" href="<?php echo e(asset("/css/app.css")); ?>" />

        <!-- Scripts -->
        
    </head>
    <body data-theme="default" data-layout="fluid" data-sidebar-position="left" data-sidebar-layout="default">
        <div class="wrapper">
            <nav id="sidebar" class="sidebar js-sidebar">
                <div class="sidebar-content js-simplebar">
                    <a class='sidebar-brand' href='index.html'>
                        <span class="sidebar-brand-text align-middle">
                            <?php echo e(config('app.name', 'Laravel')); ?>

                            
                        </span>
                        <svg class="sidebar-brand-icon align-middle" width="32px" height="32px" viewBox="0 0 24 24" fill="none"
                            stroke="#FFFFFF" stroke-width="1.5" stroke-linecap="square" stroke-linejoin="miter" color="#FFFFFF"
                            style="margin-left: -3px">
                            <path d="M12 4L20 8.00004L12 12L4 8.00004L12 4Z"></path>
                            <path d="M20 12L12 16L4 12"></path>
                            <path d="M20 16L12 20L4 16"></path>
                        </svg>
                    </a>

                    <div class="sidebar-user">
                        <div class="d-flex justify-content-center">
                            <div class="flex-shrink-0">
                                <img width="32" height="32" src="<?php echo e(asset("/img/app.png")); ?>" class="avatar img-fluid rounded me-1" alt="<?php echo e(Auth::user()->name); ?>" />
                            </div>
                            <div class="flex-grow-1 ps-2">
                                <a class="sidebar-user-title " href="#" data-bs-toggle="dropdown">
                                    <?php echo e(Auth::user()->name); ?>

                                </a>
                                

                                <div class="sidebar-user-subtitle"><?php echo e(Auth::user()->email); ?></div>
                            </div>
                        </div>
                    </div>

                    <?php if(Auth::user()->id_rol == 1): ?>
                        <ul class="sidebar-nav">
                            <li class="sidebar-header">
                                Módulos
                            </li>
                            <li class="sidebar-item">
                                <a data-bs-target="#users" data-bs-toggle="collapse" class="sidebar-link collapsed">
                                    <i class="align-middle" data-feather="user"></i> <span class="align-middle">Usuarios</span>
                                </a>
                                <ul id="users" class="sidebar-dropdown list-unstyled collapse " data-bs-parent="#sidebar">
                                    <li class="sidebar-item">
                                        <a class='sidebar-link' href="<?php echo e(route('profile.edit')); ?>">
                                            Perfil
                                        </a>
                                    </li>
                                    <li class="sidebar-item">
                                        <a class='sidebar-link' href="<?php echo e(route('usuarios.index')); ?>">
                                            Usuarios
                                        </a>
                                    </li>
                                </ul>
                            </li>
                            <li class="sidebar-item">
                                <a class='sidebar-link' href="<?php echo e(route('clientes.index')); ?>">
                                    <i class="align-middle" data-feather="users"></i> <span class="align-middle">Clientes</span>
                                </a>
                            </li>
                            <li class="sidebar-item">
                                <a class='sidebar-link' href="<?php echo e(route('vendedores.index')); ?>">
                                    <i class="align-middle" data-feather="dollar-sign"></i> <span class="align-middle">Vendedores</span>
                                </a>
                            </li>
                            <li class="sidebar-item">
                                <a data-bs-target="#dashboards" data-bs-toggle="collapse" class="sidebar-link collapsed">
                                    <i class="align-middle" data-feather="shopping-cart"></i> <span class="align-middle">Ordene Compra</span>
                                </a>
                                <ul id="dashboards" class="sidebar-dropdown list-unstyled collapse " data-bs-parent="#sidebar">
                                    <li class="sidebar-item"><a class='sidebar-link' href='<?php echo e(route('proformas.index')); ?>'>Nueva Orden</a></li>
                                    <li class="sidebar-item"><a class='sidebar-link' href='<?php echo e(route('proformas.listas')); ?>'>
                                            Lista de Ordenes</a></li>
                                </ul>
                            </li>
                        </ul>
                    <?php else: ?>
                        <ul class="sidebar-nav">
                                <li class="sidebar-header">
                                    Módulos
                                </li>
                                <li class="sidebar-item">
                                            <a class='sidebar-link' href="<?php echo e(route('profile.edit')); ?>">
                                            <i class="align-middle" data-feather="user"></i> <span>Perfil</span>
                                            </a>
                                        </li>
                                <li class="sidebar-item">
                                    <a data-bs-target="#dashboards" data-bs-toggle="collapse" class="sidebar-link collapsed">
                                        <i class="align-middle" data-feather="shopping-cart"></i> <span class="align-middle">Ordene Compra</span>
                                    </a>
                                    <ul id="dashboards" class="sidebar-dropdown list-unstyled collapse " data-bs-parent="#sidebar">
                                        <li class="sidebar-item"><a class='sidebar-link' href='<?php echo e(route('proformas.index')); ?>'>Nueva Orden</a></li>
                                        <li class="sidebar-item"><a class='sidebar-link' href='<?php echo e(route('proformas.listas')); ?>'>
                                                Lista de Ordenes</a></li>
                                    </ul>
                                </li>
                            </ul>
                    <?php endif; ?>
                </div>
            </nav>

            <div class="main">
            <?php echo $__env->make('layouts.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

            

            <!-- Page Content -->
            <main class="content">
                <div class="container-fluid p-">
                    <?php echo e($slot); ?>

                </div>
            </main>
        <footer class="footer">
            <div class="container-fluid">
                <div class="row text-muted">
                    <div class="col-6 text-start">
                        <p class="mb-0">
                            <a href="javascript:void(0);" target="_blank" class="text-muted"><strong><?php echo e(config('app.name', 'Laravel')); ?></strong></a>
                            &copy;
                        </p>
                    </div>
                    
                </div>
            </div>
        </footer>
        </div>
        </div>

        <script>
            const language_datatable = {
                    "decimal": "",
                    "emptyTable": "No hay información",
                    "info": "Mostrando _START_ a _END_ de _TOTAL_ Entradas",
                    "infoEmpty": "Mostrando 0 a 0 de 0 Entradas",
                    "infoFiltered": "(Filtrado de _MAX_ total entradas)",
                    "infoPostFix": "",
                    "thousands": ",",
                    "lengthMenu": "Mostrar _MENU_ Entradas",
                    "loadingRecords": "Cargando...",
                    "processing": "Procesando...",
                    "search": "Buscar:",
                    "zeroRecords": "Sin resultados encontrados",
                    "paginate": {
                        "first": "Primero",
                        "last": "Ultimo",
                        "next": "Siguiente",
                        "previous": "Anterior"
                    }
                };

            const header = { 'X-CSRF-TOKEN': "<?php echo e(csrf_token()); ?>" };
        </script>
        <script src="<?php echo e(asset("/js/app.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/settings.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/jquery.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/app_config.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/select2.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/sweetalert2.js")); ?>"></script>
        <script src="<?php echo e(asset("/js/datatables.min.js")); ?>"></script>
    </body>
</html>
<?php /**PATH C:\xampp\htdocs\proforma_app\resources\views/layouts/app.blade.php ENDPATH**/ ?>