- 소프트 삭제된 필드 목록에 표시 (withTrashed) - 삭제된 필드 시각적 구분 (빨간 배경, '삭제됨' 배지) - 필드 복원 기능 추가 (restore API) - 필드 영구 삭제 기능 추가 (forceDelete API) - 체크박스 선택 및 일괄 삭제 기능 추가 - 시스템 필드 삭제 제한 해제 - 커스텀 모달 적용 (showConfirm, showDeleteConfirm)
34 lines
997 B
PHP
34 lines
997 B
PHP
@props(['menus', 'section' => null])
|
|
|
|
@php
|
|
// 섹션 레이블
|
|
$sectionLabels = [
|
|
'main' => null,
|
|
'tools' => '개발 도구',
|
|
'labs' => 'R&D Labs',
|
|
];
|
|
|
|
$sectionLabel = $section ? ($sectionLabels[$section] ?? null) : null;
|
|
@endphp
|
|
|
|
@if($menus->isNotEmpty())
|
|
{{-- 섹션 레이블 (tools, labs) --}}
|
|
@if($sectionLabel)
|
|
<li class="pt-6 pb-1 border-t-2 border-gray-300 mt-4">
|
|
<span class="px-3 py-2 text-xs font-bold text-primary uppercase tracking-wider sidebar-text">
|
|
{{ $sectionLabel }}
|
|
</span>
|
|
</li>
|
|
@endif
|
|
|
|
@foreach($menus as $menu)
|
|
@if($menu->menuChildren && $menu->menuChildren->isNotEmpty())
|
|
{{-- 자식 메뉴가 있으면 그룹으로 렌더링 --}}
|
|
<x-sidebar.menu-group :menu="$menu" />
|
|
@else
|
|
{{-- 자식 없으면 단일 아이템 --}}
|
|
<x-sidebar.menu-item :menu="$menu" />
|
|
@endif
|
|
@endforeach
|
|
@endif
|