{{-- resources/views/test-reports/_form.blade.php --}} @php // 決定目前模式:表單重填舊值,或編輯時根據是否已有 attachment_path $inputType = old('input_type', isset($report) && ($report->attachment_path ?? false) ? 'file' : 'content'); @endphp
@error('title')
{{ $message }}
@enderror
@error('project_id')
{{ $message }}
@enderror
{{-- 填報方式 --}}
{{-- 貼上內容 --}}
@error('content')
{{ $message }}
@enderror
{{-- 上傳檔案 --}}
@error('attachment')
{{ $message }}
@enderror @if (!empty($report->attachment_path)) 目前檔案: 下載 @endif
{{-- 上傳程式碼檔案(用於 AI 程式碼檢查) --}}
@error('code_files')
{{ $message }}
@enderror @error('code_files.*')
{{ $message }}
@enderror @if (!empty($report->code_file_paths))
已上傳的檔案:
@endif
@push('scripts') @endpush