{{-- PDF Preview + Inline Annotation (adaptasi dari workflow surat keluar) --}} @php // Untuk Surat Masuk: fokus ke KASMIN sebagai editor anotasi $user = auth()->user(); $canAnnotate = $user && $user->isKASMIN(); $isSignerMode = false; // tidak ada mode signer khusus di surat masuk // Versi PDF yang tersedia: file_annotated (jika ada) atau file_surat if ($suratMasuk->file_annotated) { $pdfToShow = 'annotated'; $pdfVersionLabel = 'Versi Anotasi/Koreksi'; $annotatedTabLabel = 'Anotasi/Koreksi'; } else { $pdfToShow = 'current'; $pdfVersionLabel = 'Versi Asli'; $annotatedTabLabel = 'Anotasi/Koreksi'; } // Di surat masuk: KASMIN boleh annotate di file current maupun annotated $canAnnotateOnCurrentPdf = $canAnnotate && in_array($pdfToShow, ['current', 'annotated']); @endphp @push('styles') @endpush
Memuat PDF...
Tidak ada file yang tersedia