update global selectize
This commit is contained in:
parent
c4e1e7a9ec
commit
b545c0c85b
@ -3,18 +3,19 @@ import "./bootstrap";
|
||||
import "../metronic/core/index";
|
||||
import "../metronic/app/layouts/base.js";
|
||||
|
||||
import $ from 'jquery';
|
||||
import $ from "jquery";
|
||||
|
||||
window.jQuery = $;
|
||||
window.$ = $;
|
||||
|
||||
|
||||
import TomSelect from "tom-select";
|
||||
|
||||
document.querySelectorAll(".tomselect").forEach((el) => {
|
||||
let settings = {
|
||||
plugins: ['dropdown_input'],
|
||||
plugins: ["dropdown_input"],
|
||||
create: false,
|
||||
createOnBlur: true
|
||||
createOnBlur: true,
|
||||
};
|
||||
|
||||
new TomSelect('.tomselect', settings);
|
||||
new TomSelect(el, settings);
|
||||
});
|
||||
|
@ -80,6 +80,7 @@
|
||||
@php $headingSystem = 1; @endphp
|
||||
@endif
|
||||
@endif
|
||||
@if(auth()->user()->hasRole($menu->roles))
|
||||
@if(isset($menu->sub))
|
||||
<div class="menu-item {{ request()->routeIs($menu->path) || request()->routeIs($menu->path.'.*') ? 'show' : '' }}" data-menu-item-toggle="accordion" data-menu-item-trigger="click">
|
||||
<div
|
||||
@ -101,7 +102,6 @@
|
||||
@if(is_array($menu->sub))
|
||||
<div class="menu-accordion gap-0.5 pl-[10px] relative before:absolute before:left-[20px] before:top-0 before:bottom-0 before:border-l before:border-gray-200">
|
||||
@foreach($menu->sub as $sub)
|
||||
|
||||
<div class="menu-item {{ request()->routeIs($sub->path.'.*') && in_array(request()->route()->getName(), [$sub->path.'.index', $sub->path.'.create', $sub->path.'.edit']) ? 'active' : '' }}">
|
||||
<a class="menu-link gap-[14px] pl-[10px] pr-[10px] py-[8px] border border-transparent items-center grow menu-item-active:bg-secondary-active dark:menu-item-active:bg-coal-300 dark:menu-item-active:border-gray-100 menu-item-active:rounded-lg hover:bg-secondary-active dark:hover:bg-coal-300 dark:hover:border-gray-100 hover:rounded-lg"
|
||||
href="{{ $sub->path ? route($sub->path.'.index') : '' }}" tabindex="0">
|
||||
@ -130,6 +130,7 @@
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@endforeach
|
||||
@endforeach
|
||||
@endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user