@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'; $isPresentation = $fileType === 'presentation'; @endphp {{-- Hidden form for submission --}}
{{-- ── Title bar ── --}}
@if($isSheet) 🟩 @elseif($isPresentation) 🎞️ @else 📄 @endif
{{ $project->name }}
@if(!$isSheet && !$isPresentation && $templates->isNotEmpty()) @endif 取消
{{-- ══════════════════════ ROW 2 — Menu bar ══════════════════════ --}}
{{-- 檔案 --}} {{-- 編輯 --}} @if(!$isPresentation) @endif{{-- /!$isPresentation (編輯) --}} {{-- 查看 --}} @if(!$isSheet) {{-- 插入 --}} {{-- 格式 (文件) --}} @endif @if($isSheet) {{-- 格式 (試算表) --}} @endif {{-- 工具 --}} {{-- 說明 --}}
{{-- /doc-menubar --}} {{-- ── Find & Replace bar (document only) ── --}} @if(!$isSheet && !$isPresentation)
取代:
@endif {{-- ── Summernote toolbar row (document only) ── --}} @if(!$isSheet && !$isPresentation)
@endif {{-- ── Content ── --}}
@if($isSheet)
@elseif($isPresentation) {{-- Presentation: no editor needed — just enter a title and click 建立 --}}
🎞️
輸入簡報名稱後按「建立」
建立後可在簡報編輯器中新增投影片、主題和動畫
@else
@endif
{{-- /docChrome --}} {{-- ── Template picker modal ── --}} @if(!$isSheet && !$isPresentation) @endif @endsection @push('scripts') {{-- Strip container padding & size chrome to fill viewport --}} @if($isSheet) @elseif($isPresentation) @else @endif @endpush