@extends('admin.layout') @section('title', 'Stamp QR Code') @php $initialMode = 'all'; $initialPagesInput = ''; if ($document->qr_pages !== 'all') { $decodedPages = json_decode($document->qr_pages, true); if (is_array($decodedPages) && count($decodedPages) > 0) { $normalizedPages = array_values(array_filter(array_map('intval', $decodedPages), fn ($page) => $page > 0)); if (count($normalizedPages) > 0) { $initialMode = count($normalizedPages) === 1 ? 'single' : 'multiple'; $initialPagesInput = implode(',', $normalizedPages); } } } @endphp @push('scripts') @endpush @section('content')
Back to Documents
{{-- Left: Merged Preview (PDF + QR Overlay) --}}

Preview with QR Overlay

PDF Preview with QR

Live preview — QR overlaid at selected position. Page shows first page by default.

{{-- Right: Settings Form --}}

Stamp QR Code

File: {{ $document->original_filename }}

@csrf

Select mode for which pages should be stamped.

From left edge

From bottom edge

Width & height

Tip: Preview updates automatically as you change settings. Position Y is measured from the bottom of the page. A4 = 210mm × 297mm.

Cancel
@endsection