<script src="{{ mix('/js/app.js') }}"></script>
<script src="{{asset('assets/js/jquery-3.5.1.min.js')}}"></script>
<!-- feather icon js-->
<script src="{{asset('assets/js/icons/feather-icon/feather.min.js')}}"></script>
<script src="{{asset('assets/js/icons/feather-icon/feather-icon.js')}}"></script>
<!-- Sidebar jquery-->
<script src="{{asset('assets/js/sidebar-menu.js')}}"></script>

<!-- Bootstrap js-->
<script src="{{asset('assets/js/bootstrap/popper.min.js')}}"></script>
<script src="{{asset('assets/js/bootstrap/bootstrap.min.js')}}"></script>
<script src="{{asset('assets/plugins/notifications/snackbar.min.js')}}"></script>
<script src="{{asset('assets/plugins/sweet-alert2/sweetalert2.all.min.js')}}"></script>
<script src="{{asset('assets/plugins/currency/currency.js')}}"></script>
<!-- Select2 autocomplete-->
<script src="{{asset('assets/js/select2.min.js')}}"></script>
<!-- Flatpickr date/time picker-->
<script src="{{asset('assets/plugins/flatpickr/flatpickr.js')}}"></script>
@stack('help-popover')
@stack('cheditor')
@stack('color-picker')
@stack('signature')
@stack('chart')
<!-- Plugins JS start-->
@stack('scripts')
@stack('widget')
<!-- Plugins JS Ends-->
<!-- Theme js-->
<script src="{{asset('assets/js/script.js')}}"></script>
@auth
@if (session()->has('error'))
    <script>
        noty('{{ session()->get('error') }}', '1');
    </script>
@endif
@if (session()->has('updated'))
    <script>
        noty('{{ session()->get('updated') }}', '1');
    </script>
@endif

<script>
/**Listen notifications pusher */
Echo.private('App.Models.User.' + {{auth()->user()->id}})
    .notification((notification) => {
        Livewire.emit('notification');
    });
</script>



@endauth
<!-- Plugin used-->
@livewireScripts
