</div>
</div>
</div>

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/dataTables.bootstrap5.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/admin-lte@3.2/dist/js/adminlte.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Sortable/1.15.0/Sortable.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/summernote/0.8.18/summernote-bs4.min.js"></script>
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="js/sidebar.js"></script>

<?php
$current_page = basename($_SERVER['PHP_SELF']);
$context = isset($_GET['context']) ? $_GET['context'] : '';

if ($current_page == 'usuarios.php'): ?>
    <script src="js/usuarios.js"></script>
<?php elseif ($current_page == 'dashboard.php'): ?>
    <script src="js/dashboard.js"></script>
<?php elseif ($current_page == 'marcas.php'): ?>
    <script src="js/marcas.js"></script>
<?php elseif ($current_page == 'categorias.php'): ?>
    <script src="js/categoria.js"></script>
<?php elseif ($current_page == 'productos.php'): ?>
    <script src="js/productos.js"></script>
<?php elseif ($current_page == 'crearProducto.php'): ?>
    <script src="js/crearProducto.js"></script>
<?php elseif ($current_page == 'editarProducto.php'): ?>
    <script src="js/editarProducto.js"></script>
<?php elseif ($current_page == 'banners.php'): ?>
    <script src="js/banners.js"></script>
<?php elseif ($current_page == 'blog.php'): ?>
    <script src="js/blog.js"></script>
<?php elseif ($current_page == 'colores.php'): ?>
    <script src="js/colores.js"></script>

<?php endif; ?>


</body>

</html>