Add dynamic template system: Implemented header, footer, and section templates with corresponding models, migrations, and Filament resources. Enhanced Page model to support dynamic templates and updated localization files for new terms. Added TemplateService for managing template data and rendering. Comprehensive documentation included for usage and best practices.

This commit is contained in:
Ümit Tunç
2025-10-31 14:53:34 -03:00
parent 0f78292c46
commit c042cb5114
46 changed files with 2709 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Template Select Options
|--------------------------------------------------------------------------
|
| This file contains the options for select, multiselect, checkboxlist,
| radio, and togglebuttons fields in dynamic templates.
|
| Format: 'field_name' => ['key' => 'Label']
|
*/
// Example options - Add your own as needed
'example_select' => [
'option_1' => 'Option 1',
'option_2' => 'Option 2',
'option_3' => 'Option 3',
],
'status' => [
'active' => 'Active',
'inactive' => 'Inactive',
'pending' => 'Pending',
],
'size' => [
'small' => 'Small',
'medium' => 'Medium',
'large' => 'Large',
],
'color_scheme' => [
'light' => 'Light',
'dark' => 'Dark',
'auto' => 'Auto',
],
// Add more options as needed
];