2018-04-23 10:24:26 +00:00
|
|
|
<!-- REQUIRED JS SCRIPTS -->
|
2021-04-23 06:03:39 +00:00
|
|
|
<!-- Bootstrap & Jquery App -->
|
2021-06-28 02:50:28 +00:00
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
|
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js" integrity="sha512-WFN04846sdKMIP5LKNphMaWzU7YpMyCU245etK3g/2ARYbPK9Ub18eG+ljU96qKRCWh+quCY7yefSmlkQw1ANQ==" crossorigin="anonymous"></script>
|
2022-08-01 03:59:01 +00:00
|
|
|
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>
|
2019-02-08 12:42:58 +00:00
|
|
|
<!-- AdminLTE -->
|
2022-08-01 03:59:01 +00:00
|
|
|
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/admin-lte@3.2.0/dist/js/adminlte.min.js"></script>
|
2021-04-23 06:03:39 +00:00
|
|
|
|
|
|
|
<!-- Additional Utilities -->
|
|
|
|
<script src="{{ asset('plugin/bootstrap3-typeahead/js/bootstrap3-typeahead.min.js') }}"></script>
|
2018-04-23 10:24:26 +00:00
|
|
|
|
2018-06-05 13:39:47 +00:00
|
|
|
<script type="text/javascript">
|
2019-03-28 00:16:50 +00:00
|
|
|
// Our CSRF token to each interaction
|
|
|
|
$.ajaxSetup({
|
|
|
|
headers: {
|
|
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
|
|
}
|
|
|
|
});
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-03-28 00:16:50 +00:00
|
|
|
$.AdminLTESidebarTweak = {};
|
2020-03-11 01:41:36 +00:00
|
|
|
$.AdminLTESidebarTweak.Open = true;
|
2020-03-11 22:13:55 +00:00
|
|
|
$.AdminLTESidebarTweak.ResizeDelay = 1000;
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-03-28 00:16:50 +00:00
|
|
|
$.AdminLTESidebarTweak.options = {
|
|
|
|
EnableRemember: true,
|
|
|
|
//Removes the transition after page reload.
|
|
|
|
NoTransitionAfterReload: false
|
|
|
|
};
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-08-20 05:50:15 +00:00
|
|
|
// Work out our timezone.
|
|
|
|
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
|
|
|
2020-03-11 01:41:36 +00:00
|
|
|
/**
|
|
|
|
* Open and close the sidebar
|
|
|
|
* @param state
|
|
|
|
* @param addclass
|
|
|
|
*/
|
|
|
|
function sidebaropenclose(state,addclass) {
|
|
|
|
// Dont do anything if the state hasnt changed.
|
|
|
|
if (state == $.AdminLTESidebarTweak.Open) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
$.AdminLTESidebarTweak.Open = state;
|
|
|
|
|
|
|
|
if (addclass !== 'undefined')
|
|
|
|
$("body")
|
|
|
|
.addClass(state ? 'sidebar-open' : 'sidebar-collapse');
|
|
|
|
|
2020-03-11 22:13:55 +00:00
|
|
|
$(this).delay($.AdminLTESidebarTweak.ResizeDelay).queue(function() {
|
2020-03-11 01:41:36 +00:00
|
|
|
window.dispatchEvent(new Event('resize'));
|
|
|
|
$(this).dequeue();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2019-03-28 00:16:50 +00:00
|
|
|
$(function () {
|
|
|
|
"use strict";
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-03-28 00:16:50 +00:00
|
|
|
$("body").on("collapsed.lte.pushmenu", function(){
|
2019-05-16 01:15:49 +00:00
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember) {
|
|
|
|
document.cookie = "toggleState=closed;path=/";
|
|
|
|
|
2020-03-11 01:41:36 +00:00
|
|
|
$("body").queue(sidebaropenclose(false));
|
2019-03-28 00:16:50 +00:00
|
|
|
}
|
|
|
|
});
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-05-16 01:15:49 +00:00
|
|
|
$("body").on("shown.lte.pushmenu", function(){
|
2019-03-28 00:16:50 +00:00
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
2019-05-16 01:15:49 +00:00
|
|
|
document.cookie = "toggleState=opened;path=/";
|
|
|
|
|
2020-03-11 01:41:36 +00:00
|
|
|
$("body").queue(sidebaropenclose(true));
|
2019-03-28 00:16:50 +00:00
|
|
|
}
|
|
|
|
});
|
2019-02-18 09:44:17 +00:00
|
|
|
|
2019-03-28 00:16:50 +00:00
|
|
|
if($.AdminLTESidebarTweak.options.EnableRemember){
|
|
|
|
var re = new RegExp('toggleState' + "=([^;]+)");
|
|
|
|
var value = re.exec(document.cookie);
|
|
|
|
var toggleState = (value != null) ? unescape(value[1]) : null;
|
|
|
|
if(toggleState == 'closed'){
|
|
|
|
if($.AdminLTESidebarTweak.options.NoTransitionAfterReload){
|
|
|
|
$("body").addClass('sidebar-collapse hold-transition').delay(100).queue(function(){
|
|
|
|
$(this).removeClass('hold-transition');
|
|
|
|
});
|
|
|
|
}else{
|
2020-03-11 01:41:36 +00:00
|
|
|
$("body").queue(sidebaropenclose(false,true));
|
2019-03-28 00:16:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2020-01-09 07:44:07 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
@if(file_exists('js/custom.js'))
|
|
|
|
<!-- Any Custom JS -->
|
|
|
|
<script src="{{ asset('js/custom.js') }}"></script>
|
|
|
|
@endif
|