@extends('layouts.app') @section('title', ($fileType === 'spreadsheet' ? '新試算表' : ($fileType === 'presentation' ? '新簡報' : '新文件')) . ' — ' . $project->name) @push('styles') @endpush @section('content') @php $backUrl = route("{$routePrefix}.index", array_filter(['project' => $project->id, 'folder_id' => $parentId])); $storeUrl = route("{$routePrefix}.store", $project); $isSheet = $fileType === 'spreadsheet'; @endphp {{-- Hidden form for submission --}}
{{-- ── Title bar ── --}}
@if($isSheet) 🟩 @else 📄 @endif
{{ $project->name }}
@if(!$isSheet && $templates->isNotEmpty()) @endif 取消
{{-- ══════════════════════ ROW 2 — Menu bar ══════════════════════ --}}
{{-- 檔案 --}} {{-- 編輯 --}} {{-- 查看 --}} @if(!$isSheet) {{-- 插入 --}} {{-- 格式 (文件) --}} @endif @if($isSheet) {{-- 格式 (試算表) --}} @endif {{-- 工具 --}} {{-- 說明 --}}
{{-- /doc-menubar --}} {{-- ── Find & Replace bar (document only) ── --}} @if(!$isSheet)
取代:
@endif {{-- ── Summernote toolbar row (document only) ── --}} @if(!$isSheet)
@endif {{-- ── Content ── --}}
@if($isSheet)
@else
@endif
{{-- /docChrome --}} {{-- ── Template picker modal ── --}} @if(!$isSheet) @endif @endsection @push('scripts') {{-- Strip container padding & size chrome to fill viewport --}} @if($isSheet) @else @endif @endpush