pos-gis/resources/views/content/menu_admin/form.blade.php

60 lines
3.1 KiB
PHP
Raw Permalink Normal View History

2024-10-07 06:13:42 +00:00
<x-other.modal id="mForm" title="Akses Menu" subTitle="Pilih Akses Menu" info="" separator="false" size="md">
<x-slot name="action">
<button onclick="store()" type="button" class="btn btn-transparent-white font-weight-bold mr-2" id="znBtnLoader">
Simpan
</button>
{{-- <button onclick="store()" id="kt_btn_1" class="btn btn-transparent-white font-weight-bold mr-2">Simpan</button> --}}
</x-slot>
<x-slot name="content">
<form id="form-data" class="bs-form">
<input type="hidden" name="get_id" value="" id="get_id">
<div class="accordion accordion-light accordion-toggle-arrow">
@foreach ($getMenu as $p)
@if ($p->has_children == 't' && $p->is_active == 't')
<div class="card">
<div class="card-header">
<div>
<label class="checkbox" style="margin-bottom: 14px;position: absolute;top: 14px;">
<input id="{{$p->menu_uid}}" value="{{$p->menu_uid}}" name="menu_id[]" class="p{{$p->menu_uid}}" onchange="setChild({{$p->menu_uid}},this.checked);" type="checkbox">
<span></span>
</label>
</div>
<div class="card-title collapsed" style="margin-left: 27px;" data-toggle="collapse" data-target="#vm{{$p->menu_uid}}">
<div style="margin-right: 10px;">{{$p->menu}}</div>
</div>
</div>
<div id="vm{{$p->menu_uid}}" class="collapse hide">
<div class="card-body">
@foreach ($getMenu as $sub)
@if ($sub->menu_pid == $p->menu_uid && $sub->is_active == 't')
<ul class="zn-list-menu">
<li>
<label class="checkbox" style="display: inline-block;margin-right: 10px;">
<input id="{{$sub->menu_uid}}" value="{{$sub->menu_uid}}" name="menu_id[]" onchange="setParent({{$p->menu_uid}},this.checked);" class="c{{$p->menu_uid}}" type="checkbox">
<span></span>
</label>
{{$sub->menu}}
</li>
</ul>
@endif
@endforeach
</div>
</div>
</div>
@endif
@endforeach
</div>
</form>
</x-slot>
</x-other.modal>