@section('title') Slicer (Shoppable) Editor - {{ $pdf->title }} @endsection @section('breadcrumbs') {{ Breadcrumbs::render('catalog.pdfs.slicer.edit', $pdf) }} @endsection
Back Shoppable Preview
@csrf
@if (session('success'))
{{ session('success') }}
@endif
Process
PDF → Images → Clickable areas → Shoppable (Turn.js).
Note: Server-side image generation uses Spatie PDF-to-Image (requires PHP Imagick + Ghostscript). If not available, the editor will fall back to client-side rendering via PDF.js.
Page
Tool
@if ($pages->count() === 0)
No pages initialized.
Click Initialize Pages to count pages in the browser (PDF.js) and create page rows in the database.
@csrf
@else
Draw a hotspot area on the page, then fill the details and save.
Thumbnail Preview
Shows all hotspots on this page with borders
@endif
Hotspot Details
Step 1
Choose a tool and draw on the page.
Step 2
Select an action type and enter details.
@csrf
Hotspots on Page
Click a hotspot to edit. Use Delete Selected to remove from canvas, then save.
@push('scripts') @endpush