@php $nodes = $nodes ?? config('nas-file-manager.schema', []); $canEdit = $canEdit ?? (config('nas-file-manager.edit_gate') === null || \Illuminate\Support\Facades\Gate::allows(config('nas-file-manager.edit_gate'))); $title = $title ?? 'Folder Structure & File Manager'; $conn = config('nas-file-manager.connection', []); $hasConnection = !empty($conn['host']); $connConfig = [ 'protocol' => $conn['protocol'] ?? 'sftp', 'host' => $conn['host'] ?? '', 'port' => (int) ($conn['port'] ?? 22), 'username' => $conn['username'] ?? '', 'path' => $conn['path'] ?? '/media', 'smb_share' => $conn['smb_share'] ?? '', 'smb_domain' => $conn['smb_domain'] ?? '', 'has_password' => !empty($conn['password']), ]; @endphp
{{-- ── Tab bar ── --}}
{{-- ── SCHEMA TAB ── --}}

Paths are relative to the configured base path. Placeholders in {curly braces} are filled in at runtime.

{{-- ── BROWSER TAB ── --}}
{{-- Toast --}} {{-- Breadcrumb --}}
{{-- Error --}} {{-- File list --}}
@if($canEdit)
@endif
{{-- ── CONNECTION TAB ── --}}
@if(!$hasConnection)
NAS connection not configured Fill in the fields below and click Test Connection to verify, then persist the values in your .env file.
@endif {{-- Status --}} {{-- Protocol --}}

Remote directory the file browser starts from.

Persist in .env: NAS_HOST NAS_USERNAME NAS_PASSWORD

{{-- ── Rename dialog ── --}} @if($canEdit)
Rename
{{-- ── Delete dialog ── --}}
Delete from NAS
Delete ? This cannot be undone.
@endif