Manuscript (ID: {{$manuscript->manuscriptID}})
Title: {{ $manuscript->title ?? 'N/A' }} | Author: {{ $manuscript->author1 ?? ($manuscript->author1 ?? 'N/A') }}, {{ $manuscript->author2 ?? ($manuscript->author2 ?? 'N/A') }} | Status: {{ $manuscript->status ?? 'N/A' }}
@if(!empty($manuscript->fileurl))
@endif
@if(!empty($manuscript->table_index_file))
@endif
Figures
@forelse($images as $img)
@empty
@if(!empty($otherFiles) && $otherFiles->isNotEmpty())
{{ $img['name'] }}
No images uploaded.
@endforelseSupplementary Files
@foreach($otherFiles as $file)
@endforeach
{{ $file['name'] }}
Open File
Attachments
@foreach($attachments as $file)
@php
$clean = ltrim($file, '/');
$candidates = [
'uploads/manuscripts/' . $clean,
'uploads/' . $clean,
$clean,
];
$url = null;
foreach ($candidates as $path) {
if (\Illuminate\Support\Facades\File::exists(public_path($path))) {
$url = asset($path);
break;
}
}
if (!$url) {
$url = asset('uploads/manuscripts/' . $clean);
}
@endphp
@endforeach
{{ basename($clean) }}
Download