@extends('admin.layout') @section('title', 'NAS Storage') @section('page_title', 'NAS Storage') @section('extra_styles') @include('admin.partials.settings-styles') @endsection @section('content')

NAS Storage @if($settings['nas_sync_enabled'] === 'true') Enabled @else Disabled @endif

@if(session('success'))
{{ session('success') }}
@endif {{-- ── NAS Settings ─────────────────────────────────────────── --}}
NAS Settings
Use NAS as primary storage When enabled, uploads go directly to the NAS — no permanent local copy is kept. Files are stored at users/{username}/videos/{title-slug}/ on the NAS share. When disabled, all files are served from local disk using the same directory schema. Disabling NAS will prompt you to migrate files or start fresh.
@if($settings['nas_sync_enabled'] === 'true') @else NAS is disabled. Re-enabling is handled by the system once a NAS endpoint is reachable. @endif
@if($settings['nas_sync_enabled'] === 'true')
Repair stuck files Scans for files that were saved locally but never reached the NAS (e.g. due to a connection error during upload or edit). Uploads them to the NAS, then removes the local copies. Safe to run at any time — nothing is deleted until the NAS confirms receipt.
@endif
{{-- ── NAS File Browser ──────────────────────────────────────── --}}
NAS File Browser
@include('nas-file-manager::file-manager', [ 'nodes' => $nodes, 'canEdit' => true, 'title' => 'NAS Storage Browser', ])
{{-- ── NAS Disable Modal ─────────────────────────────────────── --}} @endsection @section('scripts') @endsection