@extends('layouts.app') @php $isEdit = isset($document); $selectedScope = old('access_scope', $document->access_scope ?? 'global'); $selectedRegions = old('region_ids', $isEdit ? $document->regions->pluck('id')->all() : []); $selectedCountries = old('country_ids', $isEdit ? $document->countries->pluck('id')->all() : []); $selectedOems = old('oem_ids', $isEdit ? $document->oems->pluck('id')->all() : []); $selectedUsers = old('user_ids', $isEdit ? $document->users->pluck('id')->all() : []); @endphp @section('title', ($isEdit ? 'Edit' : 'Upload') . ' document · DocShare') @section('section', 'Document workspace') @section('subtitle', $isEdit ? 'Update metadata, permissions, and lifecycle settings.' : 'Add a protected document to your library with the right controls.') @section('content')
{{ $isEdit ? 'Keep document information, access rules, and publishing dates accurate.' : 'Upload once, then control exactly who can see, print, or download it.' }}
Please review the form