From 293373f4ac7092268adfcd19ded601e98ef0d371 Mon Sep 17 00:00:00 2001 From: Vasyka Date: Wed, 12 Aug 2026 05:35:20 +0000 Subject: [PATCH] =?UTF-8?q?feat(calendar):=20preview=20PDF=20program=C4=83?= =?UTF-8?q?ri=20in=20modal=20iframe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same Alpine.js overlay pattern as the WO dashboard Docs tab: click "🖨 PDF programări" opens a centered modal with the PDF iframed at 90vh, plus "Descarcă" and "Deschide în tab nou" fallbacks in the header and Esc/click-outside to close. iframe src only binds when the modal is open, so PDF generation doesn't happen on page load. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../filament/tenant/pages/calendar.blade.php | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/resources/views/filament/tenant/pages/calendar.blade.php b/resources/views/filament/tenant/pages/calendar.blade.php index cfb6fb7..db20626 100644 --- a/resources/views/filament/tenant/pages/calendar.blade.php +++ b/resources/views/filament/tenant/pages/calendar.blade.php @@ -164,8 +164,28 @@ $_from = $_days[0]['date'] ?? today()->toDateString(); $_to = end($_days)['date'] ?? today()->toDateString(); $_pdfUrl = url('/app/appointments/pdf?from=' . $_from . '&to=' . $_to); + $_pdfDl = $_pdfUrl . '&download=1'; @endphp - {{ __('🖨 PDF programări') }} +
+ +
+
+
+ {{ __('Programări') }} — {{ $_from }} → {{ $_to }} + +
+ +
+
+