Ignore:
Timestamp:
09/30/21 00:32:27 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
24a616f
Parents:
582789f
Message:

added departments, edited users and added user settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • public/assets/js/app.js

    r582789f r194a359  
    1 /******/ (() => { // webpackBootstrap
    2 /******/        var __webpack_modules__ = ({
    3 
    4 /***/ "./resources/assets/js/app.js":
    5 /*!************************************!*\
    6   !*** ./resources/assets/js/app.js ***!
    7   \************************************/
    8 /***/ (() => {
    9 
    10 function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
    11 
    12 /******/
    13 (function (modules) {
    14   // webpackBootstrap
    15 
    16   /******/
    17   // The module cache
    18 
    19   /******/
    20   var installedModules = {};
    21   /******/
    22 
    23   /******/
    24   // The require function
    25 
    26   /******/
    27 
    28   function __nested_webpack_require_572__(moduleId) {
    29     /******/
    30 
    31     /******/
    32     // Check if module is in cache
    33 
    34     /******/
    35     if (installedModules[moduleId]) {
    36       /******/
    37       return installedModules[moduleId].exports;
    38       /******/
    39     }
    40     /******/
    41     // Create a new module (and put it into the cache)
    42 
    43     /******/
    44 
    45 
    46     var module = installedModules[moduleId] = {
    47       /******/
    48       i: moduleId,
    49 
    50       /******/
    51       l: false,
    52 
    53       /******/
    54       exports: {}
    55       /******/
    56 
    57     };
    58     /******/
    59 
    60     /******/
    61     // Execute the module function
    62 
    63     /******/
    64 
    65     modules[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_572__);
    66     /******/
    67 
    68     /******/
    69     // Flag the module as loaded
    70 
    71     /******/
    72 
    73     module.l = true;
    74     /******/
    75 
    76     /******/
    77     // Return the exports of the module
    78 
    79     /******/
    80 
    81     return module.exports;
    82     /******/
    83   }
    84   /******/
    85 
    86   /******/
    87 
    88   /******/
    89   // expose the modules object (__webpack_modules__)
    90 
    91   /******/
    92 
    93 
    94   __nested_webpack_require_572__.m = modules;
    95   /******/
    96 
    97   /******/
    98   // expose the module cache
    99 
    100   /******/
    101 
    102   __nested_webpack_require_572__.c = installedModules;
    103   /******/
    104 
    105   /******/
    106   // define getter function for harmony exports
    107 
    108   /******/
    109 
    110   __nested_webpack_require_572__.d = function (exports, name, getter) {
    111     /******/
    112     if (!__nested_webpack_require_572__.o(exports, name)) {
    113       /******/
    114       Object.defineProperty(exports, name, {
    115         enumerable: true,
    116         get: getter
    117       });
    118       /******/
    119     }
    120     /******/
    121 
    122   };
    123   /******/
    124 
    125   /******/
    126   // define __esModule on exports
    127 
    128   /******/
    129 
    130 
    131   __nested_webpack_require_572__.r = function (exports) {
    132     /******/
    133     if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
    134       /******/
    135       Object.defineProperty(exports, Symbol.toStringTag, {
    136         value: 'Module'
    137       });
    138       /******/
    139     }
    140     /******/
    141 
    142 
    143     Object.defineProperty(exports, '__esModule', {
    144       value: true
    145     });
    146     /******/
    147   };
    148   /******/
    149 
    150   /******/
    151   // create a fake namespace object
    152 
    153   /******/
    154   // mode & 1: value is a module id, require it
    155 
    156   /******/
    157   // mode & 2: merge all properties of value into the ns
    158 
    159   /******/
    160   // mode & 4: return value when already ns object
    161 
    162   /******/
    163   // mode & 8|1: behave like require
    164 
    165   /******/
    166 
    167 
    168   __nested_webpack_require_572__.t = function (value, mode) {
    169     /******/
    170     if (mode & 1) value = __nested_webpack_require_572__(value);
    171     /******/
    172 
    173     if (mode & 8) return value;
    174     /******/
    175 
    176     if (mode & 4 && _typeof(value) === 'object' && value && value.__esModule) return value;
    177     /******/
    178 
    179     var ns = Object.create(null);
    180     /******/
    181 
    182     __nested_webpack_require_572__.r(ns);
    183     /******/
    184 
    185 
    186     Object.defineProperty(ns, 'default', {
    187       enumerable: true,
    188       value: value
    189     });
    190     /******/
    191 
    192     if (mode & 2 && typeof value != 'string') for (var key in value) {
    193       __nested_webpack_require_572__.d(ns, key, function (key) {
    194         return value[key];
    195       }.bind(null, key));
    196     }
    197     /******/
    198 
    199     return ns;
    200     /******/
    201   };
    202   /******/
    203 
    204   /******/
    205   // getDefaultExport function for compatibility with non-harmony modules
    206 
    207   /******/
    208 
    209 
    210   __nested_webpack_require_572__.n = function (module) {
    211     /******/
    212     var getter = module && module.__esModule ?
    213     /******/
    214     function getDefault() {
    215       return module['default'];
    216     } :
    217     /******/
    218     function getModuleExports() {
    219       return module;
    220     };
    221     /******/
    222 
    223     __nested_webpack_require_572__.d(getter, 'a', getter);
    224     /******/
    225 
    226 
    227     return getter;
    228     /******/
    229   };
    230   /******/
    231 
    232   /******/
    233   // Object.prototype.hasOwnProperty.call
    234 
    235   /******/
    236 
    237 
    238   __nested_webpack_require_572__.o = function (object, property) {
    239     return Object.prototype.hasOwnProperty.call(object, property);
    240   };
    241   /******/
    242 
    243   /******/
    244   // __webpack_public_path__
    245 
    246   /******/
    247 
    248 
    249   __nested_webpack_require_572__.p = "/";
    250   /******/
    251 
    252   /******/
    253 
    254   /******/
    255   // Load entry module and return exports
    256 
    257   /******/
    258 
    259   return __nested_webpack_require_572__(__nested_webpack_require_572__.s = 0);
    260   /******/
    261 })({
    262   /***/
    263   "./public/assets/sass/app.scss": function publicAssetsSassAppScss(module, exports) {// removed by extract-text-webpack-plugin
    264 
    265     /***/
    266   },
    267 
    268   /***/
    269   "./resources/js/app.js": function resourcesJsAppJs(module, exports, __webpack_require__) {
    270     "use strict";
    271 
    272     (function ($) {
    273       var wind_ = $(window),
    274           body_ = $('body');
    275       feather.replace({
    276         'stroke-width': 1.5
    277       });
    278       $(document).on('click', '[data-toggle="fullscreen"]', function () {
    279         $(this).toggleClass('active-fullscreen');
    280 
    281         if (document.fullscreenEnabled) {
    282           if ($(this).hasClass("active-fullscreen")) {
    283             document.documentElement.requestFullscreen();
    284           } else {
    285             document.exitFullscreen();
    286           }
    287         } else {
    288           alert("Your browser does not support fullscreen.");
    289         }
    290 
    291         return false;
    292       });
    293       $(document).on('click', '.overlay', function () {
    294         $.removeOverlay();
    295 
    296         if (body_.hasClass('horizontal-navigation')) {
    297           $('.horizontal-navigation').removeClass('open');
    298         } else {
    299           $('.navigation').removeClass('open');
    300         }
    301 
    302         body_.removeClass('navigation-show');
    303       });
    304       $(document).on('click', '[data-sidebar-target]', function () {
    305         var target = $(this).data('sidebar-target');
    306         $('body').addClass('no-scroll');
    307         $('.sidebar-group').addClass('show');
    308         $('.sidebar-group .sidebar').removeClass('show');
    309         $('.sidebar-group .sidebar' + target).addClass('show');
    310         return false;
    311       });
    312       $(document).on('click', '.sidebar-group', function (e) {
    313         if ($(e.target).is($('.sidebar-group'))) {
    314           $('.sidebar-group').removeClass('show');
    315           $('body').removeClass('no-scroll');
    316           $('.sidebar-group .sidebar').removeClass('show');
    317         }
    318       }); // Active pages, automatically show on the menu
    319 
    320       $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
    321       $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
    322       $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
    323       $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
    324       /*------------- create/remove overlay -------------*/
    325 
    326       $.createOverlay = function () {
    327         if ($('.overlay').length < 1) {
    328           body_.addClass('no-scroll').append('<div class="overlay"></div>');
    329           $('.overlay').addClass('show');
    330         }
    331       };
    332 
    333       $.removeOverlay = function () {
    334         body_.removeClass('no-scroll');
    335         $('.overlay').remove();
    336       };
    337       /*------------- create/remove overlay -------------*/
    338 
    339 
    340       $('[data-backround-image]').each(function (e) {
    341         $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
    342       });
    343       /*------------- page loader -------------*/
    344 
    345       wind_.on('load', function () {
    346         $('.preloader').fadeOut(400, function () {
    347           setTimeout(function () {
    348             toastr.options = {
    349               timeOut: 2000,
    350               progressBar: true,
    351               showMethod: "slideDown",
    352               hideMethod: "slideUp",
    353               showDuration: 200,
    354               hideDuration: 200,
    355               positionClass: "toast-top-center"
    356             }; //toastr.success('Welcome');
    357 
    358             $('.theme-switcher').removeClass('open');
    359           }, 500); // $('.theme-switcher').css('opacity', 1);
    360         });
    361       });
    362       /*------------- page loader -------------*/
    363 
    364       /*------------- side menu (sub menü arrow) -------------*/
    365 
    366       wind_.on('load', function () {
    367         setTimeout(function () {
    368           $('.navigation .navigation-menu-body ul li a').each(function () {
    369             var $this = $(this);
    370 
    371             if ($this.next('ul').length) {
    372               $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
    373             }
    374           });
    375           $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
    376           $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
    377             var $this = $(this);
    378 
    379             if ($this.next('ul').length) {
    380               $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
    381             }
    382           });
    383         }, 200);
    384       });
    385       /*------------- side menu (sub menü arrow) -------------*/
    386 
    387       $(document).on('click', '[data-action="navigation-toggler"]', function () {
    388         if (body_.hasClass('horizontal-navigation')) {
    389           $('.horizontal-navigation').toggleClass('open');
    390         } else {
    391           $('.navigation').toggleClass('open');
    392         }
    393 
    394         $.createOverlay();
    395       });
    396       $(document).on('click', '[data-nav-target]', function () {
    397         var $this = $(this),
    398             target = $this.data('nav-target');
    399 
    400         if (body_.hasClass('navigation-toggle-one')) {
    401           body_.addClass('navigation-show');
    402         }
    403 
    404         if (body_.hasClass('horizontal-navigation')) {
    405           $('.navigation .navigation-menu-body').show();
    406         }
    407 
    408         $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
    409         $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
    410         $('[data-nav-target]').removeClass('active');
    411         $this.addClass('active');
    412         $this.tooltip('hide');
    413         return false;
    414       });
    415       var c = $('.header .header-left .header-logo').clone();
    416       $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
    417       $(document).on('click', '.navigation-toggler a', function () {
    418         if (wind_.width() < 1200) {
    419           $.createOverlay();
    420           body_.addClass('navigation-show');
    421         } else {
    422           if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
    423             body_.addClass('navigation-toggle-one');
    424           } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
    425             body_.addClass('navigation-toggle-two');
    426             body_.removeClass('navigation-toggle-one');
    427           } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
    428             body_.removeClass('navigation-toggle-two');
    429             body_.removeClass('navigation-toggle-one');
    430           }
    431         }
    432 
    433         return false;
    434       });
    435       $(document).on('click', '.header-toggler a', function () {
    436         $('.header ul.navbar-nav').toggleClass('open');
    437         return false;
    438       });
    439       $(document).on('click', '*', function (e) {
    440         if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
    441           body_.removeClass('navigation-show');
    442         }
    443       });
    444       $(document).on('click', '*', function (e) {
    445         if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
    446           $('.header ul.navbar-nav').removeClass('open');
    447         }
    448       });
    449       /*------------- form validation -------------*/
    450 
    451       window.addEventListener('load', function () {
    452         // Fetch all the forms we want to apply custom Bootstrap validation styles to
    453         var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
    454 
    455         Array.prototype.filter.call(forms, function (form) {
    456           form.addEventListener('submit', function (event) {
    457             if (form.checkValidity() === false) {
    458               event.preventDefault();
    459               event.stopPropagation();
    460             }
    461 
    462             form.classList.add('was-validated');
    463           }, false);
    464         });
    465       }, false);
    466       /*------------- form validation -------------*/
    467 
    468       /*------------- responsive html table -------------*/
    469 
    470       var table_responsive_stack = $(".table-responsive-stack");
    471       table_responsive_stack.find("th").each(function (i) {
    472         $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
    473         $(".table-responsive-stack-thead").hide();
    474       });
    475       table_responsive_stack.each(function () {
    476         var thCount = $(this).find("th").length,
    477             rowGrow = 100 / thCount + "%";
    478         $(this).find("th, td").css("flex-basis", rowGrow);
    479       });
    480 
    481       function flexTable() {
    482         if (wind_.width() < 768) {
    483           $(".table-responsive-stack").each(function (i) {
    484             $(this).find(".table-responsive-stack-thead").show();
    485             $(this).find("thead").hide();
    486           }); // window is less than 768px
    487         } else {
    488           $(".table-responsive-stack").each(function (i) {
    489             $(this).find(".table-responsive-stack-thead").hide();
    490             $(this).find("thead").show();
    491           });
    492         }
    493       }
    494 
    495       flexTable();
    496 
    497       window.onresize = function (event) {
    498         flexTable();
    499       };
    500       /*------------- responsive html table -------------*/
    501 
    502       /*------------- header search -------------*/
    503 
    504 
    505       $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
    506         $('.header .header-body .header-search').show().find('.form-control').focus();
    507         return false;
    508       });
    509       $(document).on('click', '.close-header-search, .close-header-search svg', function () {
    510         $('.header .header-body .header-search').hide();
    511         return false;
    512       });
    513       $(document).on('click', '*', function (e) {
    514         if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
    515           $('.header .header-body .header-search').hide();
    516         }
    517       });
    518       /*------------- header search -------------*/
    519 
    520       /*------------- custom accordion -------------*/
    521 
    522       $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
    523         var $this = $(this);
    524         $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
    525         $this.parent('.accordion-row').toggleClass('open');
    526         return false;
    527       });
    528       /*------------- custom accordion -------------*/
    529 
    530       /*------------- responsive table dropdown -------------*/
    531 
    532       var dropdownMenu,
    533           table_responsive = $('.table-responsive');
    534       table_responsive.on('show.bs.dropdown', function (e) {
    535         dropdownMenu = $(e.target).find('.dropdown-menu');
    536         body_.append(dropdownMenu.detach());
    537         var eOffset = $(e.target).offset();
    538         dropdownMenu.css({
    539           'display': 'block',
    540           'top': eOffset.top + $(e.target).outerHeight(),
    541           'left': eOffset.left,
    542           'width': '184px',
    543           'font-size': '14px'
    544         });
    545         dropdownMenu.addClass("mobPosDropdown");
    546       });
    547       table_responsive.on('hide.bs.dropdown', function (e) {
    548         $(e.target).append(dropdownMenu.detach());
    549         dropdownMenu.hide();
    550       });
    551       /*------------- responsive table dropdown -------------*/
    552 
    553       /*------------- chat -------------*/
    554 
    555       $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
    556         $('.chat-block .chat-content').addClass('chat-mobile-open');
    557         return false;
    558       });
    559       $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
    560         $('.chat-block .chat-content').removeClass('chat-mobile-open');
    561         return false;
    562       });
    563       /*------------- chat -------------*/
    564 
    565       /*------------- aside menu toggle -------------*/
    566 
    567       $(document).on('click', '.navigation ul li a', function () {
    568         var $this = $(this);
    569 
    570         if ($this.next('ul').length) {
    571           var sub_menu_arrow = $this.find('.sub-menu-arrow');
    572           sub_menu_arrow.toggleClass('rotate-in');
    573           $this.next('ul').toggle(200);
    574           $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
    575           $this.next('ul').find('li ul').slideUp(200);
    576           $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
    577           $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
    578           $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
    579           $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
    580 
    581           if (sub_menu_arrow.hasClass('rotate-in')) {
    582             setTimeout(function () {
    583               sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
    584             }, 200);
    585           } else {
    586             sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
    587           }
    588 
    589           if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
    590             setTimeout(function (e) {
    591               $('.navigation .navigation-menu-body').getNiceScroll().resize();
    592             }, 300);
    593           }
    594 
    595           return false;
    596         }
    597       });
    598       $(document).on('click', '.horizontal-navigation ul li a', function () {
    599         var $this = $(this);
    600 
    601         if ($this.next('ul').length) {
    602           $this.next('ul').toggle(200);
    603           $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
    604           $this.next('ul').find('li ul').slideUp(200);
    605           return false;
    606         }
    607       });
    608       /*------------- aside menu toggle -------------*/
    609 
    610       /*------------- other -------------*/
    611 
    612       $(document).on('click', '.dropdown-menu', function (e) {
    613         e.stopPropagation();
    614       });
    615       $('#exampleModal').on('show.bs.modal', function (event) {
    616         var button = $(event.relatedTarget),
    617             recipient = button.data('whatever'),
    618             modal = $(this);
    619         modal.find('.modal-title').text('New message to ' + recipient);
    620         modal.find('.modal-body input').val(recipient);
    621       });
    622       $('[data-toggle="tooltip"]').tooltip({
    623         container: 'body'
    624       });
    625       $('[data-toggle="popover"]').popover();
    626       $('.carousel').carousel();
    627 
    628       if (wind_.width() >= 992) {
    629         $('.card-scroll').niceScroll();
    630         $('.table-responsive').niceScroll();
    631         $('.sidebar-group .sidebar').niceScroll();
    632         $('.app-block .app-content .app-lists').niceScroll();
    633         $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
    634         $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
    635         var chat_messages = $('.chat-block .chat-content .messages');
    636 
    637         if (chat_messages.length) {
    638           chat_messages.niceScroll({
    639             horizrailenabled: false
    640           });
    641           chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
    642         }
    643       }
    644 
    645       if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
    646         $('.navigation .navigation-menu-body').niceScroll();
    647       }
    648 
    649       $('.dropdown-menu ul.list-group').niceScroll();
    650       /* Theme Switcher */
    651 
    652       /* var path = window.location.pathname;
    653       var page = path.split("/").pop();
    654        var theme_switcher_html = '<div class="theme-switcher open"> \n\
    655           <div class="theme-switcher-button"> \n\
    656               <i class="fa fa-cog"></i> \n\
    657           </div> \n\
    658           <div class="theme-switcher-panel"> \n\
    659               <div class="card"> \n\
    660                   <div class="card-body"> \n\
    661                       <h6 class="card-title">Theme Switcher</h6> \n\
    662                       <div class="form-group mb-2"> \n\
    663                           <div class="custom-control custom-switch"> \n\
    664                               <input type="checkbox" class="custom-control-input" id="dark"> \n\
    665                               <label class="custom-control-label" for="dark">Dark</label> \n\
    666                           </div> \n\
    667                       </div> \n\
    668                       <div class="form-group mb-2"> \n\
    669                           <div class="custom-control custom-switch"> \n\
    670                               <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
    671                               <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
    672                           </div> \n\
    673                       </div> \n\
    674                       <div class="form-group mb-2"> \n\
    675                           <div class="custom-control custom-switch"> \n\
    676                               <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
    677                               <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
    678                           </div> \n\
    679                       </div> \n\
    680                       <div class="form-group mb-2"> \n\
    681                           <div class="custom-control custom-switch"> \n\
    682                               <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
    683                               <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
    684                           </div> \n\
    685                       </div> \n\
    686                       <div class="form-group mb-2"> \n\
    687                           <div class="custom-control custom-switch"> \n\
    688                               <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
    689                               <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
    690                           </div> \n\
    691                       </div> \n\
    692                       <div class="form-group mb-2"> \n\
    693                           <div class="custom-control custom-switch"> \n\
    694                               <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
    695                               <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
    696                           </div> \n\
    697                       </div> \n\
    698                       <div class="form-group mb-2"> \n\
    699                           <div class="custom-control custom-switch"> \n\
    700                               <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
    701                               <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
    702                           </div> \n\
    703                       </div> \n\
    704                       <div class="form-group mb-2"> \n\
    705                           <div class="custom-control custom-switch"> \n\
    706                               <input type="checkbox" class="custom-control-input" id="light-header"> \n\
    707                               <label class="custom-control-label" for="light-header">Light header</label> \n\
    708                           </div> \n\
    709                       </div> \n\
    710                       <div class="form-group mb-2"> \n\
    711                           <div class="custom-control custom-switch"> \n\
    712                               <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
    713                               <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
    714                           </div> \n\
    715                       </div> \n\
    716                   </div> \n\
    717               </div> \n\
    718           </div> \n\
    719       </div>';
    720        $('body').append(theme_switcher_html);
    721        $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
    722           var id = $(this).attr('id');
    723           if (id === 'sticky-navigation') {
    724               if ($(this).prop('checked')) {
    725                   $('.navigation').niceScroll().resize();
    726               } else {
    727                   $('.navigation').niceScroll().remove();
    728               }
    729               if ($('body').hasClass('small-navigation')) {
    730                   $('.navigation .navigation-menu-body > ul > li').each(function () {
    731                       if ($(this).find('> a').next('ul').length) {
    732                           // Dropdown add header title
    733                           $(this).find('.dropdown-divider').remove();
    734                       } else {
    735                           // Add tooltip
    736                           $(this).find('> a').tooltip('dispose');
    737                       }
    738                   });
    739                   $('body').removeClass('small-navigation');
    740                   $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
    741               }
    742               if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
    743                   $('body').removeClass('hidden-navigation');
    744                   $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
    745               }
    746           }
    747           if (id === 'small-navigation') {
    748               if ($(this).prop('checked')) {
    749                   $('.navigation .navigation-menu-body > ul > li').each(function () {
    750                       if ($(this).find('> a').next('ul').length) {
    751                           // Dropdown add header title
    752                           $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
    753                       } else {
    754                           // Add tooltip
    755                           $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
    756                           $(this).find('> a').tooltip({
    757                               placement: "right"
    758                           });
    759                       }
    760                   });
    761               } else {
    762                   $('.navigation .navigation-menu-body > ul > li').each(function () {
    763                       if ($(this).find('> a').next('ul').length) {
    764                           // Dropdown add header title
    765                           $(this).find('.dropdown-divider').remove();
    766                       } else {
    767                           // Add tooltip
    768                           $(this).find('> a').tooltip('dispose');
    769                       }
    770                   });
    771               }
    772               if ($('body').hasClass('sticky-navigation')) {
    773                   $('body').removeClass('sticky-navigation');
    774                   $('.navigation').niceScroll().remove();
    775                   $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
    776               }
    777               if ($('body').hasClass('hidden-navigation')) {
    778                   $('body').removeClass('hidden-navigation');
    779                   $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
    780               }
    781           }
    782           if (id === 'hidden-navigation') {
    783               setTimeout(function () {
    784                   $('.navigation').niceScroll().resize();
    785                   $('.app-block .app-content .app-lists').niceScroll().resize();
    786                   $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
    787                   $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
    788               }, 200);
    789               if (!$(this).prop('checked')) {
    790                   $.removeOverlay();
    791                   $('.navigation').removeClass('open');
    792               }
    793               if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
    794                   if ($('body').hasClass('sticky-navigation')) {
    795                       $('body').removeClass('sticky-navigation');
    796                       $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
    797                   }
    798               }
    799               if ($('body').hasClass('small-navigation')) {
    800                   $('.navigation .navigation-menu-body > ul > li').each(function () {
    801                       if ($(this).find('> a').next('ul').length) {
    802                           // Dropdown add header title
    803                           $(this).find('.dropdown-divider').remove();
    804                       } else {
    805                           // Add tooltip
    806                           $(this).find('> a').tooltip('dispose');
    807                       }
    808                   });
    809                   $('body').removeClass('small-navigation');
    810                   $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
    811               }
    812           }
    813           if (id === 'dark') {
    814               if ($('body').hasClass('semi-dark')) {
    815                   $('body').removeClass('semi-dark');
    816                   $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
    817               }
    818           }
    819           if (id === 'semi-dark') {
    820               if ($('body').hasClass('dark')) {
    821                   $('body').removeClass('dark');
    822                   $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
    823               }
    824           }
    825           $('body').toggleClass(id);
    826       });
    827        $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
    828           $('.theme-switcher').toggleClass('open');
    829       }); */
    830     })(jQuery);
    831     /***/
    832 
    833   },
    834 
    835   /***/
    836   0: function _(module, exports, __nested_webpack_require_30733__) {
    837     __nested_webpack_require_30733__(
    838     /**/
    839     "./resources/js/app.js");
    840 
    841     module.exports = __nested_webpack_require_30733__(
    842     /**/
    843     "./public/assets/sass/app.scss");
    844     /***/
    845   }
    846   /******/
    847 
    848 });
    849 
    850 /***/ }),
    851 
    852 /***/ "./resources/assets/sass/app.scss":
    853 /*!****************************************!*\
    854   !*** ./resources/assets/sass/app.scss ***!
    855   \****************************************/
    856 /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
    857 
    858 "use strict";
    859 __webpack_require__.r(__webpack_exports__);
    860 // extracted by mini-css-extract-plugin
    861 
    862 
    863 /***/ })
    864 
    865 /******/        });
    866 /************************************************************************/
     1/******/ (function(modules) { // webpackBootstrap
    8672/******/        // The module cache
    868 /******/        var __webpack_module_cache__ = {};
    869 /******/       
     3/******/        var installedModules = {};
     4/******/
    8705/******/        // The require function
    8716/******/        function __webpack_require__(moduleId) {
     7/******/
    8728/******/                // Check if module is in cache
    873 /******/                var cachedModule = __webpack_module_cache__[moduleId];
    874 /******/                if (cachedModule !== undefined) {
    875 /******/                        return cachedModule.exports;
     9/******/                if(installedModules[moduleId]) {
     10/******/                        return installedModules[moduleId].exports;
    87611/******/                }
    87712/******/                // Create a new module (and put it into the cache)
    878 /******/                var module = __webpack_module_cache__[moduleId] = {
    879 /******/                        // no module.id needed
    880 /******/                        // no module.loaded needed
     13/******/                var module = installedModules[moduleId] = {
     14/******/                        i: moduleId,
     15/******/                        l: false,
    88116/******/                        exports: {}
    88217/******/                };
    883 /******/       
     18/******/
    88419/******/                // Execute the module function
    885 /******/                __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
    886 /******/       
     20/******/                modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
     21/******/
     22/******/                // Flag the module as loaded
     23/******/                module.l = true;
     24/******/
    88725/******/                // Return the exports of the module
    88826/******/                return module.exports;
    88927/******/        }
    890 /******/       
     28/******/
     29/******/
    89130/******/        // expose the modules object (__webpack_modules__)
    892 /******/        __webpack_require__.m = __webpack_modules__;
    893 /******/       
     31/******/        __webpack_require__.m = modules;
     32/******/
     33/******/        // expose the module cache
     34/******/        __webpack_require__.c = installedModules;
     35/******/
     36/******/        // define getter function for harmony exports
     37/******/        __webpack_require__.d = function(exports, name, getter) {
     38/******/                if(!__webpack_require__.o(exports, name)) {
     39/******/                        Object.defineProperty(exports, name, { enumerable: true, get: getter });
     40/******/                }
     41/******/        };
     42/******/
     43/******/        // define __esModule on exports
     44/******/        __webpack_require__.r = function(exports) {
     45/******/                if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
     46/******/                        Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
     47/******/                }
     48/******/                Object.defineProperty(exports, '__esModule', { value: true });
     49/******/        };
     50/******/
     51/******/        // create a fake namespace object
     52/******/        // mode & 1: value is a module id, require it
     53/******/        // mode & 2: merge all properties of value into the ns
     54/******/        // mode & 4: return value when already ns object
     55/******/        // mode & 8|1: behave like require
     56/******/        __webpack_require__.t = function(value, mode) {
     57/******/                if(mode & 1) value = __webpack_require__(value);
     58/******/                if(mode & 8) return value;
     59/******/                if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
     60/******/                var ns = Object.create(null);
     61/******/                __webpack_require__.r(ns);
     62/******/                Object.defineProperty(ns, 'default', { enumerable: true, value: value });
     63/******/                if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
     64/******/                return ns;
     65/******/        };
     66/******/
     67/******/        // getDefaultExport function for compatibility with non-harmony modules
     68/******/        __webpack_require__.n = function(module) {
     69/******/                var getter = module && module.__esModule ?
     70/******/                        function getDefault() { return module['default']; } :
     71/******/                        function getModuleExports() { return module; };
     72/******/                __webpack_require__.d(getter, 'a', getter);
     73/******/                return getter;
     74/******/        };
     75/******/
     76/******/        // Object.prototype.hasOwnProperty.call
     77/******/        __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
     78/******/
     79/******/        // __webpack_public_path__
     80/******/        __webpack_require__.p = "/";
     81/******/
     82/******/
     83/******/        // Load entry module and return exports
     84/******/        return __webpack_require__(__webpack_require__.s = 0);
     85/******/ })
    89486/************************************************************************/
    895 /******/        /* webpack/runtime/chunk loaded */
    896 /******/        (() => {
    897 /******/                var deferred = [];
    898 /******/                __webpack_require__.O = (result, chunkIds, fn, priority) => {
    899 /******/                        if(chunkIds) {
    900 /******/                                priority = priority || 0;
    901 /******/                                for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
    902 /******/                                deferred[i] = [chunkIds, fn, priority];
    903 /******/                                return;
    904 /******/                        }
    905 /******/                        var notFulfilled = Infinity;
    906 /******/                        for (var i = 0; i < deferred.length; i++) {
    907 /******/                                var [chunkIds, fn, priority] = deferred[i];
    908 /******/                                var fulfilled = true;
    909 /******/                                for (var j = 0; j < chunkIds.length; j++) {
    910 /******/                                        if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
    911 /******/                                                chunkIds.splice(j--, 1);
    912 /******/                                        } else {
    913 /******/                                                fulfilled = false;
    914 /******/                                                if(priority < notFulfilled) notFulfilled = priority;
    915 /******/                                        }
    916 /******/                                }
    917 /******/                                if(fulfilled) {
    918 /******/                                        deferred.splice(i--, 1)
    919 /******/                                        var r = fn();
    920 /******/                                        if (r !== undefined) result = r;
    921 /******/                                }
    922 /******/                        }
    923 /******/                        return result;
     87/******/ ({
     88
     89/***/ "./public/assets/sass/app.scss":
     90/*!*************************************!*\
     91  !*** ./public/assets/sass/app.scss ***!
     92  \*************************************/
     93/*! no static exports found */
     94/***/ (function(module, exports) {
     95
     96// removed by extract-text-webpack-plugin
     97
     98/***/ }),
     99
     100/***/ "./resources/js/app.js":
     101/*!*****************************!*\
     102  !*** ./resources/js/app.js ***!
     103  \*****************************/
     104/*! no static exports found */
     105/***/ (function(module, exports, __webpack_require__) {
     106
     107"use strict";
     108
     109
     110(function ($) {
     111  var wind_ = $(window),
     112      body_ = $('body');
     113  feather.replace({
     114    'stroke-width': 1.5
     115  });
     116  $(document).on('click', '[data-toggle="fullscreen"]', function () {
     117    $(this).toggleClass('active-fullscreen');
     118
     119    if (document.fullscreenEnabled) {
     120      if ($(this).hasClass("active-fullscreen")) {
     121        document.documentElement.requestFullscreen();
     122      } else {
     123        document.exitFullscreen();
     124      }
     125    } else {
     126      alert("Your browser does not support fullscreen.");
     127    }
     128
     129    return false;
     130  });
     131  $(document).on('click', '.overlay', function () {
     132    $.removeOverlay();
     133
     134    if (body_.hasClass('horizontal-navigation')) {
     135      $('.horizontal-navigation').removeClass('open');
     136    } else {
     137      $('.navigation').removeClass('open');
     138    }
     139
     140    body_.removeClass('navigation-show');
     141  });
     142  $(document).on('click', '[data-sidebar-target]', function () {
     143    var target = $(this).data('sidebar-target');
     144    $('body').addClass('no-scroll');
     145    $('.sidebar-group').addClass('show');
     146    $('.sidebar-group .sidebar').removeClass('show');
     147    $('.sidebar-group .sidebar' + target).addClass('show');
     148    return false;
     149  });
     150  $(document).on('click', '.sidebar-group', function (e) {
     151    if ($(e.target).is($('.sidebar-group'))) {
     152      $('.sidebar-group').removeClass('show');
     153      $('body').removeClass('no-scroll');
     154      $('.sidebar-group .sidebar').removeClass('show');
     155    }
     156  }); // Active pages, automatically show on the menu
     157
     158  $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
     159  $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
     160  $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
     161  $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
     162  /*------------- create/remove overlay -------------*/
     163
     164  $.createOverlay = function () {
     165    if ($('.overlay').length < 1) {
     166      body_.addClass('no-scroll').append('<div class="overlay"></div>');
     167      $('.overlay').addClass('show');
     168    }
     169  };
     170
     171  $.removeOverlay = function () {
     172    body_.removeClass('no-scroll');
     173    $('.overlay').remove();
     174  };
     175  /*------------- create/remove overlay -------------*/
     176
     177
     178  $('[data-backround-image]').each(function (e) {
     179    $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
     180  });
     181  /*------------- page loader -------------*/
     182
     183  wind_.on('load', function () {
     184    $('.preloader').fadeOut(400, function () {
     185      setTimeout(function () {
     186        toastr.options = {
     187          timeOut: 2000,
     188          progressBar: true,
     189          showMethod: "slideDown",
     190          hideMethod: "slideUp",
     191          showDuration: 200,
     192          hideDuration: 200,
     193          positionClass: "toast-top-center"
     194        };
     195        //toastr.success('Welcome');
     196        $('.theme-switcher').removeClass('open');
     197      }, 500); // $('.theme-switcher').css('opacity', 1);
     198    });
     199  });
     200  /*------------- page loader -------------*/
     201
     202  /*------------- side menu (sub menü arrow) -------------*/
     203
     204  wind_.on('load', function () {
     205    setTimeout(function () {
     206      $('.navigation .navigation-menu-body ul li a').each(function () {
     207        var $this = $(this);
     208
     209        if ($this.next('ul').length) {
     210          $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
     211        }
     212      });
     213      $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
     214      $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
     215        var $this = $(this);
     216
     217        if ($this.next('ul').length) {
     218          $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
     219        }
     220      });
     221    }, 200);
     222  });
     223  /*------------- side menu (sub menü arrow) -------------*/
     224
     225  $(document).on('click', '[data-action="navigation-toggler"]', function () {
     226    if (body_.hasClass('horizontal-navigation')) {
     227      $('.horizontal-navigation').toggleClass('open');
     228    } else {
     229      $('.navigation').toggleClass('open');
     230    }
     231
     232    $.createOverlay();
     233  });
     234  $(document).on('click', '[data-nav-target]', function () {
     235    var $this = $(this),
     236        target = $this.data('nav-target');
     237
     238    if (body_.hasClass('navigation-toggle-one')) {
     239      body_.addClass('navigation-show');
     240    }
     241
     242    if (body_.hasClass('horizontal-navigation')) {
     243      $('.navigation .navigation-menu-body').show();
     244    }
     245
     246    $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
     247    $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
     248    $('[data-nav-target]').removeClass('active');
     249    $this.addClass('active');
     250    $this.tooltip('hide');
     251    return false;
     252  });
     253  var c = $('.header .header-left .header-logo').clone();
     254  $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
     255  $(document).on('click', '.navigation-toggler a', function () {
     256    if (wind_.width() < 1200) {
     257      $.createOverlay();
     258      body_.addClass('navigation-show');
     259    } else {
     260      if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
     261        body_.addClass('navigation-toggle-one');
     262      } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
     263        body_.addClass('navigation-toggle-two');
     264        body_.removeClass('navigation-toggle-one');
     265      } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
     266        body_.removeClass('navigation-toggle-two');
     267        body_.removeClass('navigation-toggle-one');
     268      }
     269    }
     270
     271    return false;
     272  });
     273  $(document).on('click', '.header-toggler a', function () {
     274    $('.header ul.navbar-nav').toggleClass('open');
     275    return false;
     276  });
     277  $(document).on('click', '*', function (e) {
     278    if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
     279      body_.removeClass('navigation-show');
     280    }
     281  });
     282  $(document).on('click', '*', function (e) {
     283    if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
     284      $('.header ul.navbar-nav').removeClass('open');
     285    }
     286  });
     287  /*------------- form validation -------------*/
     288
     289  window.addEventListener('load', function () {
     290    // Fetch all the forms we want to apply custom Bootstrap validation styles to
     291    var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
     292
     293    Array.prototype.filter.call(forms, function (form) {
     294      form.addEventListener('submit', function (event) {
     295        if (form.checkValidity() === false) {
     296          event.preventDefault();
     297          event.stopPropagation();
     298        }
     299
     300        form.classList.add('was-validated');
     301      }, false);
     302    });
     303  }, false);
     304  /*------------- form validation -------------*/
     305
     306  /*------------- responsive html table -------------*/
     307
     308  var table_responsive_stack = $(".table-responsive-stack");
     309  table_responsive_stack.find("th").each(function (i) {
     310    $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
     311    $(".table-responsive-stack-thead").hide();
     312  });
     313  table_responsive_stack.each(function () {
     314    var thCount = $(this).find("th").length,
     315        rowGrow = 100 / thCount + "%";
     316    $(this).find("th, td").css("flex-basis", rowGrow);
     317  });
     318
     319  function flexTable() {
     320    if (wind_.width() < 768) {
     321      $(".table-responsive-stack").each(function (i) {
     322        $(this).find(".table-responsive-stack-thead").show();
     323        $(this).find("thead").hide();
     324      }); // window is less than 768px
     325    } else {
     326      $(".table-responsive-stack").each(function (i) {
     327        $(this).find(".table-responsive-stack-thead").hide();
     328        $(this).find("thead").show();
     329      });
     330    }
     331  }
     332
     333  flexTable();
     334
     335  window.onresize = function (event) {
     336    flexTable();
     337  };
     338  /*------------- responsive html table -------------*/
     339
     340  /*------------- header search -------------*/
     341
     342
     343  $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
     344    $('.header .header-body .header-search').show().find('.form-control').focus();
     345    return false;
     346  });
     347  $(document).on('click', '.close-header-search, .close-header-search svg', function () {
     348    $('.header .header-body .header-search').hide();
     349    return false;
     350  });
     351  $(document).on('click', '*', function (e) {
     352    if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
     353      $('.header .header-body .header-search').hide();
     354    }
     355  });
     356  /*------------- header search -------------*/
     357
     358  /*------------- custom accordion -------------*/
     359
     360  $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
     361    var $this = $(this);
     362    $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
     363    $this.parent('.accordion-row').toggleClass('open');
     364    return false;
     365  });
     366  /*------------- custom accordion -------------*/
     367
     368  /*------------- responsive table dropdown -------------*/
     369
     370  var dropdownMenu,
     371      table_responsive = $('.table-responsive');
     372  table_responsive.on('show.bs.dropdown', function (e) {
     373    dropdownMenu = $(e.target).find('.dropdown-menu');
     374    body_.append(dropdownMenu.detach());
     375    var eOffset = $(e.target).offset();
     376    dropdownMenu.css({
     377      'display': 'block',
     378      'top': eOffset.top + $(e.target).outerHeight(),
     379      'left': eOffset.left,
     380      'width': '184px',
     381      'font-size': '14px'
     382    });
     383    dropdownMenu.addClass("mobPosDropdown");
     384  });
     385  table_responsive.on('hide.bs.dropdown', function (e) {
     386    $(e.target).append(dropdownMenu.detach());
     387    dropdownMenu.hide();
     388  });
     389  /*------------- responsive table dropdown -------------*/
     390
     391  /*------------- chat -------------*/
     392
     393  $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
     394    $('.chat-block .chat-content').addClass('chat-mobile-open');
     395    return false;
     396  });
     397  $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
     398    $('.chat-block .chat-content').removeClass('chat-mobile-open');
     399    return false;
     400  });
     401  /*------------- chat -------------*/
     402
     403  /*------------- aside menu toggle -------------*/
     404
     405  $(document).on('click', '.navigation ul li a', function () {
     406    var $this = $(this);
     407
     408    if ($this.next('ul').length) {
     409      var sub_menu_arrow = $this.find('.sub-menu-arrow');
     410      sub_menu_arrow.toggleClass('rotate-in');
     411      $this.next('ul').toggle(200);
     412      $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
     413      $this.next('ul').find('li ul').slideUp(200);
     414      $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
     415      $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
     416      $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
     417      $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
     418
     419      if (sub_menu_arrow.hasClass('rotate-in')) {
     420        setTimeout(function () {
     421          sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
     422        }, 200);
     423      } else {
     424        sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
     425      }
     426
     427      if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
     428        setTimeout(function (e) {
     429          $('.navigation .navigation-menu-body').getNiceScroll().resize();
     430        }, 300);
     431      }
     432
     433      return false;
     434    }
     435  });
     436  $(document).on('click', '.horizontal-navigation ul li a', function () {
     437    var $this = $(this);
     438
     439    if ($this.next('ul').length) {
     440      $this.next('ul').toggle(200);
     441      $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
     442      $this.next('ul').find('li ul').slideUp(200);
     443      return false;
     444    }
     445  });
     446  /*------------- aside menu toggle -------------*/
     447
     448  /*------------- other -------------*/
     449
     450  $(document).on('click', '.dropdown-menu', function (e) {
     451    e.stopPropagation();
     452  });
     453  $('#exampleModal').on('show.bs.modal', function (event) {
     454    var button = $(event.relatedTarget),
     455        recipient = button.data('whatever'),
     456        modal = $(this);
     457    modal.find('.modal-title').text('New message to ' + recipient);
     458    modal.find('.modal-body input').val(recipient);
     459  });
     460  $('[data-toggle="tooltip"]').tooltip({
     461    container: 'body'
     462  });
     463  $('[data-toggle="popover"]').popover();
     464  $('.carousel').carousel();
     465
     466  if (wind_.width() >= 992) {
     467    $('.card-scroll').niceScroll();
     468    $('.table-responsive').niceScroll();
     469    $('.sidebar-group .sidebar').niceScroll();
     470    $('.app-block .app-content .app-lists').niceScroll();
     471    $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
     472    $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
     473    var chat_messages = $('.chat-block .chat-content .messages');
     474
     475    if (chat_messages.length) {
     476      chat_messages.niceScroll({
     477        horizrailenabled: false
     478      });
     479      chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
     480    }
     481  }
     482
     483  if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
     484    $('.navigation .navigation-menu-body').niceScroll();
     485  }
     486
     487  $('.dropdown-menu ul.list-group').niceScroll();
     488  /* Theme Switcher */
     489
     490  /* var path = window.location.pathname;
     491  var page = path.split("/").pop();
     492   var theme_switcher_html = '<div class="theme-switcher open"> \n\
     493      <div class="theme-switcher-button"> \n\
     494          <i class="fa fa-cog"></i> \n\
     495      </div> \n\
     496      <div class="theme-switcher-panel"> \n\
     497          <div class="card"> \n\
     498              <div class="card-body"> \n\
     499                  <h6 class="card-title">Theme Switcher</h6> \n\
     500                  <div class="form-group mb-2"> \n\
     501                      <div class="custom-control custom-switch"> \n\
     502                          <input type="checkbox" class="custom-control-input" id="dark"> \n\
     503                          <label class="custom-control-label" for="dark">Dark</label> \n\
     504                      </div> \n\
     505                  </div> \n\
     506                  <div class="form-group mb-2"> \n\
     507                      <div class="custom-control custom-switch"> \n\
     508                          <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
     509                          <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
     510                      </div> \n\
     511                  </div> \n\
     512                  <div class="form-group mb-2"> \n\
     513                      <div class="custom-control custom-switch"> \n\
     514                          <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
     515                          <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
     516                      </div> \n\
     517                  </div> \n\
     518                  <div class="form-group mb-2"> \n\
     519                      <div class="custom-control custom-switch"> \n\
     520                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
     521                          <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
     522                      </div> \n\
     523                  </div> \n\
     524                  <div class="form-group mb-2"> \n\
     525                      <div class="custom-control custom-switch"> \n\
     526                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
     527                          <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
     528                      </div> \n\
     529                  </div> \n\
     530                  <div class="form-group mb-2"> \n\
     531                      <div class="custom-control custom-switch"> \n\
     532                          <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
     533                          <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
     534                      </div> \n\
     535                  </div> \n\
     536                  <div class="form-group mb-2"> \n\
     537                      <div class="custom-control custom-switch"> \n\
     538                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
     539                          <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
     540                      </div> \n\
     541                  </div> \n\
     542                  <div class="form-group mb-2"> \n\
     543                      <div class="custom-control custom-switch"> \n\
     544                          <input type="checkbox" class="custom-control-input" id="light-header"> \n\
     545                          <label class="custom-control-label" for="light-header">Light header</label> \n\
     546                      </div> \n\
     547                  </div> \n\
     548                  <div class="form-group mb-2"> \n\
     549                      <div class="custom-control custom-switch"> \n\
     550                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
     551                          <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
     552                      </div> \n\
     553                  </div> \n\
     554              </div> \n\
     555          </div> \n\
     556      </div> \n\
     557  </div>';
     558   $('body').append(theme_switcher_html);
     559   $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
     560      var id = $(this).attr('id');
     561      if (id === 'sticky-navigation') {
     562          if ($(this).prop('checked')) {
     563              $('.navigation').niceScroll().resize();
     564          } else {
     565              $('.navigation').niceScroll().remove();
     566          }
     567          if ($('body').hasClass('small-navigation')) {
     568              $('.navigation .navigation-menu-body > ul > li').each(function () {
     569                  if ($(this).find('> a').next('ul').length) {
     570                      // Dropdown add header title
     571                      $(this).find('.dropdown-divider').remove();
     572                  } else {
     573                      // Add tooltip
     574                      $(this).find('> a').tooltip('dispose');
     575                  }
     576              });
     577              $('body').removeClass('small-navigation');
     578              $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
     579          }
     580          if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
     581              $('body').removeClass('hidden-navigation');
     582              $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
     583          }
     584      }
     585      if (id === 'small-navigation') {
     586          if ($(this).prop('checked')) {
     587              $('.navigation .navigation-menu-body > ul > li').each(function () {
     588                  if ($(this).find('> a').next('ul').length) {
     589                      // Dropdown add header title
     590                      $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
     591                  } else {
     592                      // Add tooltip
     593                      $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
     594                      $(this).find('> a').tooltip({
     595                          placement: "right"
     596                      });
     597                  }
     598              });
     599          } else {
     600              $('.navigation .navigation-menu-body > ul > li').each(function () {
     601                  if ($(this).find('> a').next('ul').length) {
     602                      // Dropdown add header title
     603                      $(this).find('.dropdown-divider').remove();
     604                  } else {
     605                      // Add tooltip
     606                      $(this).find('> a').tooltip('dispose');
     607                  }
     608              });
     609          }
     610          if ($('body').hasClass('sticky-navigation')) {
     611              $('body').removeClass('sticky-navigation');
     612              $('.navigation').niceScroll().remove();
     613              $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
     614          }
     615          if ($('body').hasClass('hidden-navigation')) {
     616              $('body').removeClass('hidden-navigation');
     617              $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
     618          }
     619      }
     620      if (id === 'hidden-navigation') {
     621          setTimeout(function () {
     622              $('.navigation').niceScroll().resize();
     623              $('.app-block .app-content .app-lists').niceScroll().resize();
     624              $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
     625              $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
     626          }, 200);
     627          if (!$(this).prop('checked')) {
     628              $.removeOverlay();
     629              $('.navigation').removeClass('open');
     630          }
     631          if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
     632              if ($('body').hasClass('sticky-navigation')) {
     633                  $('body').removeClass('sticky-navigation');
     634                  $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
     635              }
     636          }
     637          if ($('body').hasClass('small-navigation')) {
     638              $('.navigation .navigation-menu-body > ul > li').each(function () {
     639                  if ($(this).find('> a').next('ul').length) {
     640                      // Dropdown add header title
     641                      $(this).find('.dropdown-divider').remove();
     642                  } else {
     643                      // Add tooltip
     644                      $(this).find('> a').tooltip('dispose');
     645                  }
     646              });
     647              $('body').removeClass('small-navigation');
     648              $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
     649          }
     650      }
     651      if (id === 'dark') {
     652          if ($('body').hasClass('semi-dark')) {
     653              $('body').removeClass('semi-dark');
     654              $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
     655          }
     656      }
     657      if (id === 'semi-dark') {
     658          if ($('body').hasClass('dark')) {
     659              $('body').removeClass('dark');
     660              $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
     661          }
     662      }
     663      $('body').toggleClass(id);
     664  });
     665   $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
     666      $('.theme-switcher').toggleClass('open');
     667  }); */
     668})(jQuery);
     669
     670/***/ }),
     671
     672/***/ 0:
     673/*!*****************************************************************!*\
     674  !*** multi ./resources/js/app.js ./public/assets/sass/app.scss ***!
     675  \*****************************************************************/
     676/*! no static exports found */
     677/***/ (function(module, exports, __webpack_require__) {
     678
     679__webpack_require__(/**/"./resources/js/app.js");
     680module.exports = __webpack_require__(/**/"./public/assets/sass/app.scss");
     681
     682
     683/***/ })
     684
     685/******/ });
     686
     687/******/ (function(modules) { // webpackBootstrap
     688/******/        // The module cache
     689/******/        var installedModules = {};
     690/******/
     691/******/        // The require function
     692/******/        function __webpack_require__(moduleId) {
     693/******/
     694/******/                // Check if module is in cache
     695/******/                if(installedModules[moduleId]) {
     696/******/                        return installedModules[moduleId].exports;
     697/******/                }
     698/******/                // Create a new module (and put it into the cache)
     699/******/                var module = installedModules[moduleId] = {
     700/******/                        i: moduleId,
     701/******/                        l: false,
     702/******/                        exports: {}
    924703/******/                };
    925 /******/        })();
    926 /******/       
    927 /******/        /* webpack/runtime/hasOwnProperty shorthand */
    928 /******/        (() => {
    929 /******/                __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
    930 /******/        })();
    931 /******/       
    932 /******/        /* webpack/runtime/make namespace object */
    933 /******/        (() => {
    934 /******/                // define __esModule on exports
    935 /******/                __webpack_require__.r = (exports) => {
    936 /******/                        if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
    937 /******/                                Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
    938 /******/                        }
    939 /******/                        Object.defineProperty(exports, '__esModule', { value: true });
    940 /******/                };
    941 /******/        })();
    942 /******/       
    943 /******/        /* webpack/runtime/jsonp chunk loading */
    944 /******/        (() => {
    945 /******/                // no baseURI
    946 /******/               
    947 /******/                // object to store loaded and loading chunks
    948 /******/                // undefined = chunk not loaded, null = chunk preloaded/prefetched
    949 /******/                // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
    950 /******/                var installedChunks = {
    951 /******/                        "/assets/js/app": 0,
    952 /******/                        "assets/css/app": 0
    953 /******/                };
    954 /******/               
    955 /******/                // no chunk on demand loading
    956 /******/               
    957 /******/                // no prefetching
    958 /******/               
    959 /******/                // no preloaded
    960 /******/               
    961 /******/                // no HMR
    962 /******/               
    963 /******/                // no HMR manifest
    964 /******/               
    965 /******/                __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
    966 /******/               
    967 /******/                // install a JSONP callback for chunk loading
    968 /******/                var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
    969 /******/                        var [chunkIds, moreModules, runtime] = data;
    970 /******/                        // add "moreModules" to the modules object,
    971 /******/                        // then flag all "chunkIds" as loaded and fire callback
    972 /******/                        var moduleId, chunkId, i = 0;
    973 /******/                        if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
    974 /******/                                for(moduleId in moreModules) {
    975 /******/                                        if(__webpack_require__.o(moreModules, moduleId)) {
    976 /******/                                                __webpack_require__.m[moduleId] = moreModules[moduleId];
    977 /******/                                        }
    978 /******/                                }
    979 /******/                                if(runtime) var result = runtime(__webpack_require__);
    980 /******/                        }
    981 /******/                        if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
    982 /******/                        for(;i < chunkIds.length; i++) {
    983 /******/                                chunkId = chunkIds[i];
    984 /******/                                if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
    985 /******/                                        installedChunks[chunkId][0]();
    986 /******/                                }
    987 /******/                                installedChunks[chunkIds[i]] = 0;
    988 /******/                        }
    989 /******/                        return __webpack_require__.O(result);
     704/******/
     705/******/                // Execute the module function
     706/******/                modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
     707/******/
     708/******/                // Flag the module as loaded
     709/******/                module.l = true;
     710/******/
     711/******/                // Return the exports of the module
     712/******/                return module.exports;
     713/******/        }
     714/******/
     715/******/
     716/******/        // expose the modules object (__webpack_modules__)
     717/******/        __webpack_require__.m = modules;
     718/******/
     719/******/        // expose the module cache
     720/******/        __webpack_require__.c = installedModules;
     721/******/
     722/******/        // define getter function for harmony exports
     723/******/        __webpack_require__.d = function(exports, name, getter) {
     724/******/                if(!__webpack_require__.o(exports, name)) {
     725/******/                        Object.defineProperty(exports, name, { enumerable: true, get: getter });
    990726/******/                }
    991 /******/               
    992 /******/                var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
    993 /******/                chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
    994 /******/                chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
    995 /******/        })();
    996 /******/       
     727/******/        };
     728/******/
     729/******/        // define __esModule on exports
     730/******/        __webpack_require__.r = function(exports) {
     731/******/                if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
     732/******/                        Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
     733/******/                }
     734/******/                Object.defineProperty(exports, '__esModule', { value: true });
     735/******/        };
     736/******/
     737/******/        // create a fake namespace object
     738/******/        // mode & 1: value is a module id, require it
     739/******/        // mode & 2: merge all properties of value into the ns
     740/******/        // mode & 4: return value when already ns object
     741/******/        // mode & 8|1: behave like require
     742/******/        __webpack_require__.t = function(value, mode) {
     743/******/                if(mode & 1) value = __webpack_require__(value);
     744/******/                if(mode & 8) return value;
     745/******/                if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
     746/******/                var ns = Object.create(null);
     747/******/                __webpack_require__.r(ns);
     748/******/                Object.defineProperty(ns, 'default', { enumerable: true, value: value });
     749/******/                if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
     750/******/                return ns;
     751/******/        };
     752/******/
     753/******/        // getDefaultExport function for compatibility with non-harmony modules
     754/******/        __webpack_require__.n = function(module) {
     755/******/                var getter = module && module.__esModule ?
     756/******/                        function getDefault() { return module['default']; } :
     757/******/                        function getModuleExports() { return module; };
     758/******/                __webpack_require__.d(getter, 'a', getter);
     759/******/                return getter;
     760/******/        };
     761/******/
     762/******/        // Object.prototype.hasOwnProperty.call
     763/******/        __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
     764/******/
     765/******/        // __webpack_public_path__
     766/******/        __webpack_require__.p = "/";
     767/******/
     768/******/
     769/******/        // Load entry module and return exports
     770/******/        return __webpack_require__(__webpack_require__.s = 0);
     771/******/ })
    997772/************************************************************************/
    998 /******/       
    999 /******/        // startup
    1000 /******/        // Load entry module and return exports
    1001 /******/        // This entry module depends on other loaded chunks and execution need to be delayed
    1002 /******/        __webpack_require__.O(undefined, ["assets/css/app"], () => (__webpack_require__("./resources/assets/js/app.js")))
    1003 /******/        var __webpack_exports__ = __webpack_require__.O(undefined, ["assets/css/app"], () => (__webpack_require__("./resources/assets/sass/app.scss")))
    1004 /******/        __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
    1005 /******/       
    1006 /******/ })()
    1007 ;
     773/******/ ({
     774
     775/***/ "./public/assets/sass/app.scss":
     776/*!*************************************!*\
     777  !*** ./public/assets/sass/app.scss ***!
     778  \*************************************/
     779/*! no static exports found */
     780/***/ (function(module, exports) {
     781
     782// removed by extract-text-webpack-plugin
     783
     784/***/ }),
     785
     786/***/ "./resources/js/app.js":
     787/*!*****************************!*\
     788  !*** ./resources/js/app.js ***!
     789  \*****************************/
     790/*! no static exports found */
     791/***/ (function(module, exports, __webpack_require__) {
     792
     793"use strict";
     794
     795
     796(function ($) {
     797  var wind_ = $(window),
     798      body_ = $('body');
     799  feather.replace({
     800    'stroke-width': 1.5
     801  });
     802  $(document).on('click', '[data-toggle="fullscreen"]', function () {
     803    $(this).toggleClass('active-fullscreen');
     804
     805    if (document.fullscreenEnabled) {
     806      if ($(this).hasClass("active-fullscreen")) {
     807        document.documentElement.requestFullscreen();
     808      } else {
     809        document.exitFullscreen();
     810      }
     811    } else {
     812      alert("Your browser does not support fullscreen.");
     813    }
     814
     815    return false;
     816  });
     817  $(document).on('click', '.overlay', function () {
     818    $.removeOverlay();
     819
     820    if (body_.hasClass('horizontal-navigation')) {
     821      $('.horizontal-navigation').removeClass('open');
     822    } else {
     823      $('.navigation').removeClass('open');
     824    }
     825
     826    body_.removeClass('navigation-show');
     827  });
     828  $(document).on('click', '[data-sidebar-target]', function () {
     829    var target = $(this).data('sidebar-target');
     830    $('body').addClass('no-scroll');
     831    $('.sidebar-group').addClass('show');
     832    $('.sidebar-group .sidebar').removeClass('show');
     833    $('.sidebar-group .sidebar' + target).addClass('show');
     834    return false;
     835  });
     836  $(document).on('click', '.sidebar-group', function (e) {
     837    if ($(e.target).is($('.sidebar-group'))) {
     838      $('.sidebar-group').removeClass('show');
     839      $('body').removeClass('no-scroll');
     840      $('.sidebar-group .sidebar').removeClass('show');
     841    }
     842  }); // Active pages, automatically show on the menu
     843
     844  $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
     845  $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').addClass('open');
     846  $('.navigation .navigation-menu-tab [data-nav-target="#' + $('.navigation .navigation-menu-body .navigation-menu-group ul li a.active').closest('div').attr('id') + '"]').addClass('active');
     847  $('body.horizontal-navigation .horizontal-navigation ul li a.active').closest('ul').parent('li').addClass('open').closest('ul').parent('li').addClass('open');
     848  /*------------- create/remove overlay -------------*/
     849
     850  $.createOverlay = function () {
     851    if ($('.overlay').length < 1) {
     852      body_.addClass('no-scroll').append('<div class="overlay"></div>');
     853      $('.overlay').addClass('show');
     854    }
     855  };
     856
     857  $.removeOverlay = function () {
     858    body_.removeClass('no-scroll');
     859    $('.overlay').remove();
     860  };
     861  /*------------- create/remove overlay -------------*/
     862
     863
     864  $('[data-backround-image]').each(function (e) {
     865    $(this).css("background", 'url(' + $(this).data('backround-image') + ')');
     866  });
     867  /*------------- page loader -------------*/
     868
     869  wind_.on('load', function () {
     870    $('.preloader').fadeOut(400, function () {
     871      setTimeout(function () {
     872        toastr.options = {
     873          timeOut: 2000,
     874          progressBar: true,
     875          showMethod: "slideDown",
     876          hideMethod: "slideUp",
     877          showDuration: 200,
     878          hideDuration: 200,
     879          positionClass: "toast-top-center"
     880        };
     881        $('.theme-switcher').removeClass('open');
     882      }, 500); // $('.theme-switcher').css('opacity', 1);
     883    });
     884  });
     885  /*------------- page loader -------------*/
     886
     887  /*------------- side menu (sub menü arrow) -------------*/
     888
     889  wind_.on('load', function () {
     890    setTimeout(function () {
     891      $('.navigation .navigation-menu-body ul li a').each(function () {
     892        var $this = $(this);
     893
     894        if ($this.next('ul').length) {
     895          $this.append('<i class="sub-menu-arrow ti-angle-up"></i>');
     896        }
     897      });
     898      $('.navigation .navigation-menu-body ul li.open>a>.sub-menu-arrow').removeClass('ti-plus').addClass('ti-minus').addClass('rotate-in');
     899      $('body.horizontal-navigation .horizontal-navigation ul li a').each(function () {
     900        var $this = $(this);
     901
     902        if ($this.next('ul').length) {
     903          $this.append('<i class="sub-menu-arrow ti-angle-right"></i>');
     904        }
     905      });
     906    }, 200);
     907  });
     908  /*------------- side menu (sub menü arrow) -------------*/
     909
     910  $(document).on('click', '[data-action="navigation-toggler"]', function () {
     911    if (body_.hasClass('horizontal-navigation')) {
     912      $('.horizontal-navigation').toggleClass('open');
     913    } else {
     914      $('.navigation').toggleClass('open');
     915    }
     916
     917    $.createOverlay();
     918  });
     919  $(document).on('click', '[data-nav-target]', function () {
     920    var $this = $(this),
     921        target = $this.data('nav-target');
     922
     923    if (body_.hasClass('navigation-toggle-one')) {
     924      body_.addClass('navigation-show');
     925    }
     926
     927    if (body_.hasClass('horizontal-navigation')) {
     928      $('.navigation .navigation-menu-body').show();
     929    }
     930
     931    $('.navigation .navigation-menu-body .navigation-menu-group > div').removeClass('open');
     932    $('.navigation .navigation-menu-body .navigation-menu-group ' + target).addClass('open');
     933    $('[data-nav-target]').removeClass('active');
     934    $this.addClass('active');
     935    $this.tooltip('hide');
     936    return false;
     937  });
     938  var c = $('.header .header-left .header-logo').clone();
     939  $('.navigation .navigation-header').append(c.addClass('navigation-logo').removeClass('header-logo'));
     940  $(document).on('click', '.navigation-toggler a', function () {
     941    if (wind_.width() < 1200) {
     942      $.createOverlay();
     943      body_.addClass('navigation-show');
     944    } else {
     945      if (!body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
     946        body_.addClass('navigation-toggle-one');
     947      } else if (body_.hasClass('navigation-toggle-one') && !body_.hasClass('navigation-toggle-two')) {
     948        body_.addClass('navigation-toggle-two');
     949        body_.removeClass('navigation-toggle-one');
     950      } else if (!body_.hasClass('navigation-toggle-one') && body_.hasClass('navigation-toggle-two')) {
     951        body_.removeClass('navigation-toggle-two');
     952        body_.removeClass('navigation-toggle-one');
     953      }
     954    }
     955
     956    return false;
     957  });
     958  $(document).on('click', '.header-toggler a', function () {
     959    $('.header ul.navbar-nav').toggleClass('open');
     960    return false;
     961  });
     962  $(document).on('click', '*', function (e) {
     963    if (!$(e.target).is($('.navigation, .navigation *, .navigation-toggler *')) && body_.hasClass('navigation-toggle-one')) {
     964      body_.removeClass('navigation-show');
     965    }
     966  });
     967  $(document).on('click', '*', function (e) {
     968    if (!$(e.target).is('.header ul.navbar-nav, .header ul.navbar-nav *, .header-toggler, .header-toggler *')) {
     969      $('.header ul.navbar-nav').removeClass('open');
     970    }
     971  });
     972  /*------------- form validation -------------*/
     973
     974  window.addEventListener('load', function () {
     975    // Fetch all the forms we want to apply custom Bootstrap validation styles to
     976    var forms = document.getElementsByClassName('needs-validation'); // Loop over them and prevent submission
     977
     978    Array.prototype.filter.call(forms, function (form) {
     979      form.addEventListener('submit', function (event) {
     980        if (form.checkValidity() === false) {
     981          event.preventDefault();
     982          event.stopPropagation();
     983        }
     984
     985        form.classList.add('was-validated');
     986      }, false);
     987    });
     988  }, false);
     989  /*------------- form validation -------------*/
     990
     991  /*------------- responsive html table -------------*/
     992
     993  var table_responsive_stack = $(".table-responsive-stack");
     994  table_responsive_stack.find("th").each(function (i) {
     995    $(".table-responsive-stack td:nth-child(" + (i + 1) + ")").prepend('<span class="table-responsive-stack-thead">' + $(this).text() + ":</span> ");
     996    $(".table-responsive-stack-thead").hide();
     997  });
     998  table_responsive_stack.each(function () {
     999    var thCount = $(this).find("th").length,
     1000        rowGrow = 100 / thCount + "%";
     1001    $(this).find("th, td").css("flex-basis", rowGrow);
     1002  });
     1003
     1004  function flexTable() {
     1005    if (wind_.width() < 768) {
     1006      $(".table-responsive-stack").each(function (i) {
     1007        $(this).find(".table-responsive-stack-thead").show();
     1008        $(this).find("thead").hide();
     1009      }); // window is less than 768px
     1010    } else {
     1011      $(".table-responsive-stack").each(function (i) {
     1012        $(this).find(".table-responsive-stack-thead").hide();
     1013        $(this).find("thead").show();
     1014      });
     1015    }
     1016  }
     1017
     1018  flexTable();
     1019
     1020  window.onresize = function (event) {
     1021    flexTable();
     1022  };
     1023  /*------------- responsive html table -------------*/
     1024
     1025  /*------------- header search -------------*/
     1026
     1027
     1028  $(document).on('click', '[data-toggle="search"], [data-toggle="search"] *', function () {
     1029    $('.header .header-body .header-search').show().find('.form-control').focus();
     1030    return false;
     1031  });
     1032  $(document).on('click', '.close-header-search, .close-header-search svg', function () {
     1033    $('.header .header-body .header-search').hide();
     1034    return false;
     1035  });
     1036  $(document).on('click', '*', function (e) {
     1037    if (!$(e.target).is($('.header, .header *, [data-toggle="search"], [data-toggle="search"] *'))) {
     1038      $('.header .header-body .header-search').hide();
     1039    }
     1040  });
     1041  /*------------- header search -------------*/
     1042
     1043  /*------------- custom accordion -------------*/
     1044
     1045  $(document).on('click', '.accordion.custom-accordion .accordion-row a.accordion-header', function () {
     1046    var $this = $(this);
     1047    $this.closest('.accordion.custom-accordion').find('.accordion-row').not($this.parent()).removeClass('open');
     1048    $this.parent('.accordion-row').toggleClass('open');
     1049    return false;
     1050  });
     1051  /*------------- custom accordion -------------*/
     1052
     1053  /*------------- responsive table dropdown -------------*/
     1054
     1055  var dropdownMenu,
     1056      table_responsive = $('.table-responsive');
     1057  table_responsive.on('show.bs.dropdown', function (e) {
     1058    dropdownMenu = $(e.target).find('.dropdown-menu');
     1059    body_.append(dropdownMenu.detach());
     1060    var eOffset = $(e.target).offset();
     1061    dropdownMenu.css({
     1062      'display': 'block',
     1063      'top': eOffset.top + $(e.target).outerHeight(),
     1064      'left': eOffset.left,
     1065      'width': '184px',
     1066      'font-size': '14px'
     1067    });
     1068    dropdownMenu.addClass("mobPosDropdown");
     1069  });
     1070  table_responsive.on('hide.bs.dropdown', function (e) {
     1071    $(e.target).append(dropdownMenu.detach());
     1072    dropdownMenu.hide();
     1073  });
     1074  /*------------- responsive table dropdown -------------*/
     1075
     1076  /*------------- chat -------------*/
     1077
     1078  $(document).on('click', '.chat-block .chat-sidebar .chat-sidebar-content .list-group .list-group-item', function () {
     1079    $('.chat-block .chat-content').addClass('chat-mobile-open');
     1080    return false;
     1081  });
     1082  $(document).on('click', '.chat-block .chat-content .mobile-chat-close-btn a', function () {
     1083    $('.chat-block .chat-content').removeClass('chat-mobile-open');
     1084    return false;
     1085  });
     1086  /*------------- chat -------------*/
     1087
     1088  /*------------- aside menu toggle -------------*/
     1089
     1090  $(document).on('click', '.navigation ul li a', function () {
     1091    var $this = $(this);
     1092
     1093    if ($this.next('ul').length) {
     1094      var sub_menu_arrow = $this.find('.sub-menu-arrow');
     1095      sub_menu_arrow.toggleClass('rotate-in');
     1096      $this.next('ul').toggle(200);
     1097      $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
     1098      $this.next('ul').find('li ul').slideUp(200);
     1099      $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
     1100      $this.next('ul').find('li>a').find('.sub-menu-arrow').removeClass('rotate-in');
     1101      $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('ti-minus').addClass('ti-plus');
     1102      $this.parent('li').siblings().not($this.parent('li').find('ul')).find('>a').find('.sub-menu-arrow').removeClass('rotate-in');
     1103
     1104      if (sub_menu_arrow.hasClass('rotate-in')) {
     1105        setTimeout(function () {
     1106          sub_menu_arrow.removeClass('ti-plus').addClass('ti-minus');
     1107        }, 200);
     1108      } else {
     1109        sub_menu_arrow.removeClass('ti-minus').addClass('ti-plus');
     1110      }
     1111
     1112      if (!body_.hasClass('horizontal-side-menu') && wind_.width() >= 1200) {
     1113        setTimeout(function (e) {
     1114          $('.navigation .navigation-menu-body').getNiceScroll().resize();
     1115        }, 300);
     1116      }
     1117
     1118      return false;
     1119    }
     1120  });
     1121  $(document).on('click', '.horizontal-navigation ul li a', function () {
     1122    var $this = $(this);
     1123
     1124    if ($this.next('ul').length) {
     1125      $this.next('ul').toggle(200);
     1126      $this.parent('li').siblings().find('ul').not($this.parent('li').find('ul')).slideUp(200);
     1127      $this.next('ul').find('li ul').slideUp(200);
     1128      return false;
     1129    }
     1130  });
     1131  /*------------- aside menu toggle -------------*/
     1132
     1133  /*------------- other -------------*/
     1134
     1135  $(document).on('click', '.dropdown-menu', function (e) {
     1136    e.stopPropagation();
     1137  });
     1138  $('#exampleModal').on('show.bs.modal', function (event) {
     1139    var button = $(event.relatedTarget),
     1140        recipient = button.data('whatever'),
     1141        modal = $(this);
     1142    modal.find('.modal-title').text('New message to ' + recipient);
     1143    modal.find('.modal-body input').val(recipient);
     1144  });
     1145  $('[data-toggle="tooltip"]').tooltip({
     1146    container: 'body'
     1147  });
     1148  $('[data-toggle="popover"]').popover();
     1149  $('.carousel').carousel();
     1150
     1151  if (wind_.width() >= 992) {
     1152    $('.card-scroll').niceScroll();
     1153    $('.table-responsive').niceScroll();
     1154    $('.sidebar-group .sidebar').niceScroll();
     1155    $('.app-block .app-content .app-lists').niceScroll();
     1156    $('.app-block .app-sidebar .app-sidebar-menu').niceScroll();
     1157    $('.chat-block .chat-sidebar .chat-sidebar-content').niceScroll();
     1158    var chat_messages = $('.chat-block .chat-content .messages');
     1159
     1160    if (chat_messages.length) {
     1161      chat_messages.niceScroll({
     1162        horizrailenabled: false
     1163      });
     1164      chat_messages.getNiceScroll(0).doScrollTop(chat_messages.get(0).scrollHeight, -1);
     1165    }
     1166  }
     1167
     1168  if (!body_.hasClass('small-navigation') && !body_.hasClass('horizontal-navigation') && wind_.width() >= 992) {
     1169    $('.navigation .navigation-menu-body').niceScroll();
     1170  }
     1171
     1172  $('.dropdown-menu ul.list-group').niceScroll();
     1173  /* Theme Switcher */
     1174
     1175  /* var path = window.location.pathname;
     1176  var page = path.split("/").pop();
     1177   var theme_switcher_html = '<div class="theme-switcher open"> \n\
     1178      <div class="theme-switcher-button"> \n\
     1179          <i class="fa fa-cog"></i> \n\
     1180      </div> \n\
     1181      <div class="theme-switcher-panel"> \n\
     1182          <div class="card"> \n\
     1183              <div class="card-body"> \n\
     1184                  <h6 class="card-title">Theme Switcher</h6> \n\
     1185                  <div class="form-group mb-2"> \n\
     1186                      <div class="custom-control custom-switch"> \n\
     1187                          <input type="checkbox" class="custom-control-input" id="dark"> \n\
     1188                          <label class="custom-control-label" for="dark">Dark</label> \n\
     1189                      </div> \n\
     1190                  </div> \n\
     1191                  <div class="form-group mb-2"> \n\
     1192                      <div class="custom-control custom-switch"> \n\
     1193                          <input type="checkbox" class="custom-control-input" id="semi-dark"> \n\
     1194                          <label class="custom-control-label" for="semi-dark">Semi dark</label> \n\
     1195                      </div> \n\
     1196                  </div> \n\
     1197                  <div class="form-group mb-2"> \n\
     1198                      <div class="custom-control custom-switch"> \n\
     1199                          <input type="checkbox" class="custom-control-input" id="shadow-layout"> \n\
     1200                          <label class="custom-control-label" for="shadow-layout">Shadow layout</label> \n\
     1201                      </div> \n\
     1202                  </div> \n\
     1203                  <div class="form-group mb-2"> \n\
     1204                      <div class="custom-control custom-switch"> \n\
     1205                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-navigation"> \n\
     1206                          <label class="custom-control-label" for="sticky-navigation">Sticky navigation</label> \n\
     1207                      </div> \n\
     1208                  </div> \n\
     1209                  <div class="form-group mb-2"> \n\
     1210                      <div class="custom-control custom-switch"> \n\
     1211                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="small-navigation"> \n\
     1212                          <label class="custom-control-label" for="small-navigation">Small navigation</label> \n\
     1213                      </div> \n\
     1214                  </div> \n\
     1215                  <div class="form-group mb-2"> \n\
     1216                      <div class="custom-control custom-switch"> \n\
     1217                          <input type="checkbox" class="custom-control-input" id="hidden-navigation"> \n\
     1218                          <label class="custom-control-label" for="hidden-navigation">Hidden navigation</label> \n\
     1219                      </div> \n\
     1220                  </div> \n\
     1221                  <div class="form-group mb-2"> \n\
     1222                      <div class="custom-control custom-switch"> \n\
     1223                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-header"> \n\
     1224                          <label class="custom-control-label" for="sticky-header">Sticky header</label> \n\
     1225                      </div> \n\
     1226                  </div> \n\
     1227                  <div class="form-group mb-2"> \n\
     1228                      <div class="custom-control custom-switch"> \n\
     1229                          <input type="checkbox" class="custom-control-input" id="light-header"> \n\
     1230                          <label class="custom-control-label" for="light-header">Light header</label> \n\
     1231                      </div> \n\
     1232                  </div> \n\
     1233                  <div class="form-group mb-2"> \n\
     1234                      <div class="custom-control custom-switch"> \n\
     1235                          <input type="checkbox" class="custom-control-input" ' + (page === 'chat.html' || page === 'inbox.html' || page === 'app-todo.html' ? 'disabled' : '') + ' id="sticky-footer"> \n\
     1236                          <label class="custom-control-label" for="sticky-footer">Sticky footer</label> \n\
     1237                      </div> \n\
     1238                  </div> \n\
     1239              </div> \n\
     1240          </div> \n\
     1241      </div> \n\
     1242  </div>';
     1243   $('body').append(theme_switcher_html);
     1244   $(document).on('click', '.theme-switcher input[type="checkbox"]', function () {
     1245      var id = $(this).attr('id');
     1246      if (id === 'sticky-navigation') {
     1247          if ($(this).prop('checked')) {
     1248              $('.navigation').niceScroll().resize();
     1249          } else {
     1250              $('.navigation').niceScroll().remove();
     1251          }
     1252          if ($('body').hasClass('small-navigation')) {
     1253              $('.navigation .navigation-menu-body > ul > li').each(function () {
     1254                  if ($(this).find('> a').next('ul').length) {
     1255                      // Dropdown add header title
     1256                      $(this).find('.dropdown-divider').remove();
     1257                  } else {
     1258                      // Add tooltip
     1259                      $(this).find('> a').tooltip('dispose');
     1260                  }
     1261              });
     1262              $('body').removeClass('small-navigation');
     1263              $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
     1264          }
     1265          if ($('body').hasClass('hidden-navigation')) {CUSTOMİZABLE
     1266              $('body').removeClass('hidden-navigation');
     1267              $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
     1268          }
     1269      }
     1270      if (id === 'small-navigation') {
     1271          if ($(this).prop('checked')) {
     1272              $('.navigation .navigation-menu-body > ul > li').each(function () {
     1273                  if ($(this).find('> a').next('ul').length) {
     1274                      // Dropdown add header title
     1275                      $(this).find('> a').next('ul').prepend('<li class="dropdown-divider">' + $(this).find('> a > span:not(.badge)').text() + '</li>')
     1276                  } else {
     1277                      // Add tooltip
     1278                      $(this).find('> a').attr('title', $(this).find('> a > span:not(.badge)').text());
     1279                      $(this).find('> a').tooltip({
     1280                          placement: "right"
     1281                      });
     1282                  }
     1283              });
     1284          } else {
     1285              $('.navigation .navigation-menu-body > ul > li').each(function () {
     1286                  if ($(this).find('> a').next('ul').length) {
     1287                      // Dropdown add header title
     1288                      $(this).find('.dropdown-divider').remove();
     1289                  } else {
     1290                      // Add tooltip
     1291                      $(this).find('> a').tooltip('dispose');
     1292                  }
     1293              });
     1294          }
     1295          if ($('body').hasClass('sticky-navigation')) {
     1296              $('body').removeClass('sticky-navigation');
     1297              $('.navigation').niceScroll().remove();
     1298              $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
     1299          }
     1300          if ($('body').hasClass('hidden-navigation')) {
     1301              $('body').removeClass('hidden-navigation');
     1302              $('.theme-switcher input[type="checkbox"][id="hidden-navigation"]').prop('checked', false);
     1303          }
     1304      }
     1305      if (id === 'hidden-navigation') {
     1306          setTimeout(function () {
     1307              $('.navigation').niceScroll().resize();
     1308              $('.app-block .app-content .app-lists').niceScroll().resize();
     1309              $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
     1310              $('.chat-block .chat-sidebar .chat-sidebar-content .tab-content .tab-pane').niceScroll().resize();
     1311          }, 200);
     1312          if (!$(this).prop('checked')) {
     1313              $.removeOverlay();
     1314              $('.navigation').removeClass('open');
     1315          }
     1316          if (page != 'chat.html' && page != 'inbox.html' && page != 'app-todo.html') {
     1317              if ($('body').hasClass('sticky-navigation')) {
     1318                  $('body').removeClass('sticky-navigation');
     1319                  $('.theme-switcher input[type="checkbox"][id="sticky-navigation"]').prop('checked', false);
     1320              }
     1321          }
     1322          if ($('body').hasClass('small-navigation')) {
     1323              $('.navigation .navigation-menu-body > ul > li').each(function () {
     1324                  if ($(this).find('> a').next('ul').length) {
     1325                      // Dropdown add header title
     1326                      $(this).find('.dropdown-divider').remove();
     1327                  } else {
     1328                      // Add tooltip
     1329                      $(this).find('> a').tooltip('dispose');
     1330                  }
     1331              });
     1332              $('body').removeClass('small-navigation');
     1333              $('.theme-switcher input[type="checkbox"][id="small-navigation"]').prop('checked', false);
     1334          }
     1335      }
     1336      if (id === 'dark') {
     1337          if ($('body').hasClass('semi-dark')) {
     1338              $('body').removeClass('semi-dark');
     1339              $('.theme-switcher input[type="checkbox"][id="semi-dark"]').prop('checked', false);
     1340          }
     1341      }
     1342      if (id === 'semi-dark') {
     1343          if ($('body').hasClass('dark')) {
     1344              $('body').removeClass('dark');
     1345              $('.theme-switcher input[type="checkbox"][id="dark"]').prop('checked', false);
     1346          }
     1347      }
     1348      $('body').toggleClass(id);
     1349  });
     1350   $(document).on('click', '.theme-switcher .theme-switcher-button', function () {
     1351      $('.theme-switcher').toggleClass('open');
     1352  }); */
     1353})(jQuery);
     1354
     1355/***/ }),
     1356
     1357/***/ 0:
     1358/*!*****************************************************************!*\
     1359  !*** multi ./resources/js/app.js ./public/assets/sass/app.scss ***!
     1360  \*****************************************************************/
     1361/*! no static exports found */
     1362/***/ (function(module, exports, __webpack_require__) {
     1363
     1364__webpack_require__(/**/"./resources/js/app.js");
     1365module.exports = __webpack_require__(/**/"./public/assets/sass/app.scss");
     1366
     1367
     1368/***/ })
     1369
     1370/******/ });
     1371
     1372'use strict';
     1373
     1374(function ($) {
     1375
     1376    $(document).on('click', '.layout-builder .layout-builder-toggle', function () {
     1377        $('.layout-builder').toggleClass('show');
     1378    });
     1379
     1380    $(window).on('load', function () {
     1381        setTimeout(function () {
     1382            $('.layout-builder').removeClass('show');
     1383        }, 500);
     1384    });
     1385
     1386    $('.body').append(`
     1387    <div class="layout-builder show">
     1388        <div class="layout-builder-toggle shw">
     1389            <i class="ti-settings"></i>
     1390        </div>
     1391        <div class="layout-builder-toggle hdn">
     1392            <i class="ti-close"></i>
     1393        </div>
     1394        <div class="layout-builder-body">
     1395            <h5>Customizer</h5>
     1396            <div class="mb-3">
     1397                <p>Layout</p>
     1398                <div class="custom-control custom-radio">
     1399                  <input type="radio" class="custom-control-input" name="layout" id="horizontal-side-menu" data-layout="horizontal-side-menu">
     1400                  <label class="custom-control-label" for="horizontal-side-menu">Horizontal Menu</label>
     1401                </div>
     1402                <div class="custom-control custom-radio">
     1403                  <input type="radio" class="custom-control-input" name="layout" id="icon-side-menu" data-layout="icon-side-menu">
     1404                  <label class="custom-control-label" for="icon-side-menu">Icon Menu</label>
     1405                </div>
     1406                <div class="custom-control custom-radio">
     1407                  <input type="radio" class="custom-control-input" name="layout" id="hidden-side-menu" data-layout="hidden-side-menu">
     1408                  <label class="custom-control-label" for="hidden-side-menu">Hidden Menu</label>
     1409                </div>
     1410                <div class="custom-control custom-radio">
     1411                  <input type="radio" class="custom-control-input" name="layout" id="layout-container-1" data-layout="layout-container icon-side-menu">
     1412                  <label class="custom-control-label" for="layout-container-1">Container Layout 1</label>
     1413                </div>
     1414                <div class="custom-control custom-radio">
     1415                  <input type="radio" class="custom-control-input" name="layout" id="layout-container-2" data-layout="layout-container horizontal-side-menu">
     1416                  <label class="custom-control-label" for="layout-container-2">Container Layout 2</label>
     1417                </div>
     1418                <div class="custom-control custom-radio">
     1419                  <input type="radio" class="custom-control-input" name="layout" id="layout-container-3" data-layout="layout-container hidden-side-menu">
     1420                  <label class="custom-control-label" for="layout-container-3">Container Layout 3</label>
     1421                </div>
     1422                <div class="custom-control custom-radio">
     1423                  <input type="radio" class="custom-control-input" name="layout" id="dark-1" data-layout="dark">
     1424                  <label class="custom-control-label" for="dark-1">Dark Layout 1</label>
     1425                </div>
     1426                <div class="custom-control custom-radio">
     1427                  <input type="radio" class="custom-control-input" name="layout" id="dark-2" data-layout="layout-container dark icon-side-menu">
     1428                  <label class="custom-control-label" for="dark-2">Dark Layout 2</label>
     1429                </div>
     1430                <div class="custom-control custom-radio">
     1431                  <input type="radio" class="custom-control-input" name="layout" id="dark-3" data-layout="layout-container dark horizontal-side-menu">
     1432                  <label class="custom-control-label" for="dark-3">Dark Layout 3</label>
     1433                </div>
     1434                <div class="custom-control custom-radio">
     1435                  <input type="radio" class="custom-control-input" name="layout" id="dark-4" data-layout="layout-container dark hidden-side-menu">
     1436                  <label class="custom-control-label" for="dark-4">Dark Layout 4</label>
     1437                </div>
     1438            </div>
     1439            <button id="btn-layout-builder-reset" class="btn btn-danger btn-uppercase">Reset</button>
     1440            <div class="layout-alert mt-3">
     1441                <i class="fa fa-warning m-r-5 text-warning"></i>Some theme options can not be displayed in case of combined when they are not relevant each other. For that reason, you are adviced to try all theme options seperately.
     1442            </div>
     1443        </div>
     1444    </div>`);
     1445
     1446    var site_layout = localStorage.getItem('site_layout');
     1447    $('body').addClass(site_layout);
     1448
     1449    $('.layout-builder .layout-builder-body input[type="radio"][data-layout="' + $('body').attr('class') + '"]').prop('checked', true);
     1450
     1451    $('.layout-builder .layout-builder-body input[type="radio"]').click(function () {
     1452        var class_names = '';
     1453
     1454        $('.layout-builder .layout-builder-body input[type="radio"]:checked').each(function () {
     1455            class_names += ' ' + $(this).data('layout');
     1456        });
     1457
     1458        localStorage.setItem('site_layout', class_names);
     1459
     1460        window.location.href = (window.location.href).replace('#', '');
     1461    });
     1462
     1463    $(document).on('click', '#btn-layout-builder', function () {
     1464
     1465    });
     1466
     1467    $(document).on('click', '#btn-layout-builder-reset', function () {
     1468        localStorage.removeItem('site_layout');
     1469        localStorage.removeItem('site_layout_dark');
     1470
     1471        window.location.href = (window.location.href).replace('#', '');
     1472    });
     1473
     1474    $(window).on('load', function () {
     1475        if ($('body').hasClass('horizontal-side-menu') && $(window).width() > 768) {
     1476            if ($('body').hasClass('layout-container')) {
     1477                $('.side-menu .side-menu-body').wrap('<div class="container"></div>');
     1478            } else {
     1479                $('.side-menu .side-menu-body').wrap('<div class="container"></div>');
     1480            }
     1481            setTimeout(function () {
     1482                $('.side-menu .side-menu-body > ul').append('<li><a href="#"><span>Other</span></a><ul></ul></li>');
     1483            }, 100);
     1484            $('.side-menu .side-menu-body > ul > li').each(function () {
     1485                var index = $(this).index(),
     1486                    $this = $(this);
     1487                if (index > 7) {
     1488                    setTimeout(function () {
     1489                        $('.side-menu .side-menu-body > ul > li:last-child > ul').append($this.clone());
     1490                        $this.addClass('d-none');
     1491                    }, 100);
     1492                }
     1493            });
     1494        }
     1495    });
     1496
     1497    $(document).on('click', '[data-attr="layout-builder-toggle"]', function () {
     1498        $('.layout-builder').toggleClass('show');
     1499        return false;
     1500    });
     1501
     1502})(jQuery);
Note: See TracChangeset for help on using the changeset viewer.