how many times do you include jQuery????
What is in the uncompiled app.js?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I have a problem with this script. If I delete this script, line with #datepicker works properly, but my vue components doesn't work anymore...If I don't delete, my vue works but doesn't work anymore this #datepicker. app.blade.php:
<!doctype html>
<html lang="{{ 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="{{ csrf_token() }}">
<!-- <title>{{ config('app.name', 'Dispensar') }}</title> -->
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<!-- datepicker -->
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<script src="https://code.jquery.com/ui/1.13.1/jquery-ui.js"defer></script>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
<link rel="stylesheet" href="{{asset('template/dist/css/theme.min.css')}}">
<!-- for datapicker -->
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.1/themes/base/jquery-ui.css">
<!-- for datapicker -->
</head>
footer.blade.php
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>window.jQuery || document.write('<script src="src/js/vendor/jquery-3.3.1.min.js"><\/script>')</script>
<script src="{{asset('template/plugins/popper.js/dist/umd/popper.min.js')}}"></script>
<script src="{{asset('template/plugins/bootstrap/dist/js/bootstrap.min.js')}}"></script>
<script src="{{asset('template/plugins/perfect-scrollbar/dist/perfect-scrollbar.min.js')}}"></script>
<script src="{{asset('template/plugins/screenfull/dist/screenfull.js')}}"></script>
<script src="{{asset('template/plugins/datatables.net/js/jquery.dataTables.min.js')}}"></script>
<script src="{{asset('template/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js')}}"></script>
<script src="{{asset('template/plugins/datatables.net-responsive/js/dataTables.responsive.min.js')}}"></script>
<script src="{{asset('template/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js')}}"></script>
<script src="{{asset('template/plugins/jvectormap/jquery-jvectormap.min.js')}}"></script>
<script src="{{asset('template/plugins/jvectormap/tests/assets/jquery-jvectormap-world-mill-en.js')}}"></script>
<script src="{{asset('template/plugins/moment/moment.js')}}"></script>
<script src="{{asset('template/plugins/tempusdominus-bootstrap-4/build/js/tempusdominus-bootstrap-4.min.js')}}"></script>
<script src="{{asset('template/plugins/d3/dist/d3.min.js')}}"></script>
<script src="{{asset('template/plugins/c3/c3.min.js')}}"></script>
<script src="{{asset('template/js/tables.js')}}"></script>
<script src="{{asset('template/js/widgets.js')}}"></script>
<script src="{{asset('template/js/charts.js')}}"></script>
<script src="{{asset('template/dist/js/theme.min.js')}}"></script>
<script src="{{ asset('js/app.js') }}"defer></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script type="text/javascript">
$(document).ready(function(){
$("#datepicker").datetimepicker({
format: 'YYYY-MM-DD'
})
})
</script>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='https://www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
Why doesn't work? Please help:)
Please or to participate in this conversation.