additionOfMultiLang

This commit is contained in:
UronShrestha
2024-06-18 15:28:01 +05:45
parent 949fee1678
commit 28921cc745
23 changed files with 284 additions and 116 deletions

View File

@ -78,6 +78,7 @@
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="{{ asset('backend/plugins/jquery/jquery.min.js') }}"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="{{ asset('backend/plugins/bootstrap/js/bootstrap.bundle.min.js') }}"></script>
<!-- overlayScrollbars -->
@ -117,6 +118,8 @@
<script src="{{ asset('backend/plugins/toastr/toastr.min.js') }}"></script>
<script src="{{ asset('backend/plugins/sweetalert2/sweetalert2.min.js') }}"></script>
@yield('script')
@ -292,6 +295,15 @@
});
</script>
<script>
$('.changeLang').change(function() {
var url = "{{ route('changelang') }}";
window.location.href = url + "?lang=" + $(this).val();
});
</script>