Mi Vault

Nuevo Item
Carpetas
Sin carpeta {{ $unassignedCount ?? 0 }} @if($folders && $folders->count() > 0) @foreach($folders as $folder) @include('vault.partials.folder-item', [ 'folder' => $folder, 'activeFolderId' => $activeFolderId ?? null, 'level' => 0 ]) @endforeach @else

No tienes carpetas

@endif
@if($activeFolderId && $activeFolderId !== 'null') @php $activeFolder = $folders->flatten()->firstWhere('id', (int)$activeFolderId) ?? \App\Models\Folder::find($activeFolderId); @endphp @if($activeFolder) @endif @endif
@include('vault.partials.items-list', ['items' => $items])
@include('vault.partials.folder-modal', [ 'modalId' => 'createFolderModal', 'title' => 'Nueva Carpeta', 'action' => route('folders.store'), 'method' => 'POST', 'allFolders' => $allFolders ?? collect() ]) @include('vault.partials.folder-modal', [ 'modalId' => 'editFolderModal', 'title' => 'Editar Carpeta', 'action' => '', 'method' => 'PUT', 'allFolders' => $allFolders ?? collect() ]) @push('scripts') @endpush