@include('nas-file-manager::file-manager', [
'nodes' => $nodes,
'canEdit' => true,
@@ -26,22 +20,4 @@
@section('scripts')
-
-
@endsection
diff --git a/resources/views/vendor/nas-file-manager/file-manager.blade.php b/resources/views/vendor/nas-file-manager/file-manager.blade.php
new file mode 100644
index 0000000..aa3991f
--- /dev/null
+++ b/resources/views/vendor/nas-file-manager/file-manager.blade.php
@@ -0,0 +1,703 @@
+@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.
+
+
+
+
+
+
+
+
+
+
+ No schema defined. Add nodes in config/nas-file-manager.php under the schema key.
+
+
+
+
+
+ {{-- ── BROWSER TAB ── --}}
+
+
+ {{-- Toast --}}
+
+
+
+
+
+ {{-- Breadcrumb --}}
+
+
+
+
+
+
+
+
+
+
+
+ {{-- Error --}}
+
+
+ {{-- File list --}}
+
+
+ Loading…
+
+
+ Empty folder
+
+
+
+
+
+
+ @if($canEdit)
+
+
+
+
+ @endif
+
+
+
+
+ @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 --}}
+
+
+
+
+
+
+
Host is required.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Saved password will be used
+
+
+
+
+
+
+
Remote directory the file browser starts from.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Persist in .env:
+ NAS_HOST NAS_USERNAME NAS_PASSWORD
+
+
+
+
+
+
+
+
+{{-- ── Rename dialog ── --}}
+@if($canEdit)
+
+
+{{-- ── Delete dialog ── --}}
+
+
+
+
+ Delete ? This cannot be undone.
+
+
+
+
+@endif
+
+