Enhance Template Preview Functionality: Added a preview action to both HeaderTemplatesTable and FooterTemplatesTable, allowing users to preview templates in a modal. Updated localization files to include preview action labels in both English and Turkish. Introduced new Blade views for rendering template previews, improving the overall user experience in template management.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<div class="w-full flex flex-col" style="height: 600px;">
|
||||
<div class="flex-1 w-full relative bg-white border rounded-lg overflow-hidden">
|
||||
<iframe
|
||||
src="{{ route('template.preview', ['type' => 'footer', 'record_id' => $record->id]) }}"
|
||||
class="w-full h-full absolute inset-0 border-0"
|
||||
style="width: 100%; height: 100%;"
|
||||
title="Preview"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<div class="w-full flex flex-col" style="height: 600px;">
|
||||
<div class="flex-1 w-full relative bg-white border rounded-lg overflow-hidden">
|
||||
<iframe
|
||||
src="{{ route('template.preview', ['type' => 'header', 'record_id' => $record->id]) }}"
|
||||
class="w-full h-full absolute inset-0 border-0"
|
||||
style="width: 100%; height: 100%;"
|
||||
title="Preview"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user