Commit Graph

9 Commits

Author SHA1 Message Date
Ümit Tunç 9d601cafda Enhance Template Processing and Cleanup: Updated the ImportHtmlTemplates command to skip additional custom tokens during HTML processing and added a cleanup step to remove leftover tokens from the data array. Improved the TemplateService to replace legacy tokens in HTML, ensuring better template integrity during imports. 2025-12-29 09:39:21 +03:00
Ümit Tunç f4603456b1 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. 2025-12-27 09:50:38 +03:00
Ümit Tunç 537e2769cd Improve Asset Path Handling and Add Preview Action: Enhanced the ImportHtmlTemplates command to support fallback asset paths for better template import functionality. Updated the TemplateService to handle old asset paths. Added a preview action in the SectionTemplates localization files for improved user experience in template management. 2025-12-27 09:45:10 +03:00
Ümit Tunç f609eb3ec1 Enhance Template Import and Preview Functionality: Updated the ImportHtmlTemplates command to improve asset path handling by moving files to storage and updating HTML asset paths. Added a preview action in SectionTemplatesTable for better template management, along with a new Blade view for rendering previews. Adjusted route for template preview to accept any request method for flexibility. 2025-12-27 09:38:38 +03:00
Ümit Tunç 70cba75441 Refactor Template Processing and Update Setting Model: Enhanced the ImportHtmlTemplates command to improve header processing with dynamic logo handling based on navbar type. Updated the Setting model to include new accessors for various field types, ensuring better data retrieval. Adjusted the SettingSeeder to clear logo paths for better management. 2025-12-27 09:26:47 +03:00
Ümit Tunç 8244bcc74c Refactor ImportHtmlTemplates Command: Enhanced the command to process HTML templates by introducing a more structured approach for extracting header, footer, and section templates. Implemented dynamic placeholder replacements and improved asset path handling. Added support for light and dark logo settings in the database seeder, ensuring better logo management for different themes. 2025-12-27 07:57:48 +03:00
Ümit Tunç bacd5d7309 Add ImportHtmlTemplates Command: Created a new console command to import HTML templates from the public/html directory into the database. The command extracts header, footer, and section templates, processes HTML content, and supports placeholder replacements for dynamic data integration. 2025-12-26 19:12:32 +03:00
Ümit Tunç 6db36912d4 Add policies for template management: Introduced new policy classes for managing permissions related to FooterTemplate, HeaderTemplate, MenuTemplate, SectionTemplate, and Setting. Updated LanguagePolicy and UserPolicy to utilize AuthUser for authorization checks, enhancing the security and maintainability of the application. 2025-11-05 03:02:35 -03:00
Ümit Tunç 91ddc64009 Add MakeSuperAdmin command: Implemented a console command to promote a user to super admin based on their email address. The command includes validation for email format and checks for existing users and roles, enhancing user management capabilities. 2025-11-04 16:37:01 -03:00