Commit Graph

9 Commits

Author SHA1 Message Date
Ümit Tunç 6060fe1b23 Add template save event handling and update preview functionality: Implemented afterSave method in Footer, Header, Menu, and Section templates to dispatch a 'template-saved' event for Livewire. Updated template preview components to listen for this event, ensuring previews are refreshed after template modifications. Enhanced viewData method in template forms for better record ID handling. 2025-11-04 06:10:35 -03:00
Ümit Tunç 9629652d0a Refactor template preview data handling in Footer, Header, and Section templates: Updated the viewData method in FooterTemplateForm, HeaderTemplateForm, and SectionTemplateForm schemas to use a closure for dynamic record ID retrieval. Enhanced the template-preview Blade component to accept the record ID, improving data handling and ensuring accurate template previews based on the current record context. 2025-11-03 03:15:31 -03:00
Ümit Tunç 4718535fda Update view component usage in template forms: Replaced extraAttributes with viewData method in HeaderTemplateForm, FooterTemplateForm, and SectionTemplateForm schemas to align with Filament 4.x standards. Enhanced the template-preview Blade component to utilize local variables for type and field name, improving data handling and consistency. 2025-11-01 15:52:22 -03:00
Ümit Tunç 78d3bce584 Refactor TemplatePreviewController to support template content retrieval by ID: Updated the preview method to accept a record ID for fetching template content from the database. Introduced a private method to handle content retrieval for header, footer, and section templates. Enhanced error handling for empty content scenarios, improving the overall robustness of the template preview functionality. 2025-11-01 15:31:53 -03:00
Ümit Tunç e7d6355b5c Refactor template preview button and loading indicators: Updated the template preview Blade view to replace the fullscreen editor button with a preview update button, enhancing user interaction. Improved loading indicators with a new play icon for better visual feedback during content processing. 2025-10-31 17:59:13 -03:00
Ümit Tunç 8d7b3f0914 Implement fullscreen editor for template preview: Added a fullscreen editing feature with collapsible editor functionality and improved loading indicators. Enhanced the template preview Blade view for better user interaction and experience during content editing and previewing. 2025-10-31 17:14:21 -03:00
Ümit Tunç 6f12dda0d9 Enhance template preview functionality: Added a loading button for manual preview updates, improved loading indicators, and removed automatic content updates to streamline user interaction. Updated the template preview Blade view for better user feedback during content processing. 2025-10-31 17:06:25 -03:00
Ümit Tunç 8d6d0b52b9 Refactor template preview components: Moved preview component placement after the CodeEditor in footer, header, and section template forms for improved user experience. Enhanced loading indicators in the template preview Blade view for better feedback during content processing. 2025-10-31 17:01:27 -03:00
Ümit Tunç 52c4ba1b19 Add template preview functionality: Introduced TemplatePreviewController and TemplatePreviewService for rendering dynamic previews of header, footer, and section templates. Updated form schemas to include preview components and enhanced real-time content updates. Added configuration for template assets and integrated preview functionality into the admin panel. 2025-10-31 16:48:36 -03:00