Commit Graph

162 Commits

Author SHA1 Message Date
Ü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ç 5be9354ecf Add Turkish Localization for User Resource: Created a new language file for user-related labels and messages in Turkish, ensuring proper localization support for user management features. 2025-11-07 23:30:05 +03:00
Ümit Tunç 0f9a68ec16 Update .gitignore to include composer.lock: Added composer.lock to the .gitignore file to prevent it from being tracked by Git, ensuring that dependency management remains consistent across environments. 2025-11-07 23:03:56 +03:00
Ümit Tunç 68fd923b42 Add Blog Category Resource and CRUD Pages: Created BlogCategoryResource with associated pages for listing, creating, and editing blog categories. Implemented localization for all labels and messages. Enhanced BlogCategory model to specify foreign key for related blogs. 2025-11-06 17:48:20 -03:00
Ümit Tunç 7563577aa8 Implement Filtering and Commenting Features in Blog: Enhanced BlogController to support filtering posts by author, category, and tags. Added a storeComment method to handle comment submissions, including validation and success/error messaging. Updated blog views to display comments and improved layout for better user engagement. 2025-11-06 17:08:46 -03:00
Ümit Tunç 4bdcf66c99 Implement Commenting Feature in Blog: Enhanced BlogController to handle comments by adding a new storeComment method. Updated blog show view to display approved comments and related posts, improving user engagement and content interaction. Added routes for comment submission, ensuring a complete commenting system. 2025-11-06 16:59:25 -03:00
Ümit Tunç 1fd56cc953 Refine Model Attribute Access in TemplateService: Enhanced the replacePlaceholders method to improve the retrieval of model attributes and accessors. Updated logic to handle image/file URLs more effectively and streamlined the process of accessing model properties, ensuring robustness in placeholder replacement. 2025-11-06 16:52:40 -03:00
Ümit Tunç f65ba75f41 Enhance TemplateService Placeholder Replacement: Updated the replacePlaceholders method to improve handling of model attributes when values are not found in the provided data. Added logic to retrieve image/file URLs and model attributes dynamically, enhancing flexibility and robustness in content rendering. 2025-11-06 16:52:25 -03:00
Ümit Tunç 43ff270cbd Refactor TemplateService and Blog Views: Updated TemplateService to utilize a generic model for placeholder replacement, enhancing flexibility in content rendering. Modified blog views to use the new featured image URL property, improving image handling and ensuring consistency across templates. 2025-11-06 16:51:17 -03:00
Ümit Tunç 605f0d158f Refactor Blog and Page Controllers: Updated BlogController and PageController to utilize the new Blog model and integrated dynamic header and footer templates. Removed the DatabaseSeeder file as it is no longer needed. Enhanced the TemplateService to support dynamic content rendering for both blog and page templates, improving the overall template management system. 2025-11-06 16:49:02 -03:00
Ümit Tunç 920502c5d3 Enhance placeholder functionality: Updated TemplateService to support 'setting' placeholders, allowing dynamic retrieval of settings values. Modified the placeholder picker to include setting types and added localization for new placeholder types in both English and Turkish. Improved site layout by integrating settings for favicon and custom CSS. 2025-11-05 17:18:02 -03:00
Ümit Tunç 27e1846aec Add setting helpers: Introduced a new helper function for retrieving settings values, enhancing the configuration management. Updated composer.json to autoload the new helper file. Updated the app.css and app.js files to the latest versions of Tailwind CSS and Chart.js, respectively, ensuring compatibility and performance improvements. 2025-11-05 16:52:47 -03:00
Ümit Tunç 9248df9a99 Update placeholder picker component: Added support for special placeholders in the placeholder picker, enhancing the user experience by allowing easier insertion of predefined placeholders. Removed the dedicated section for special placeholders to streamline the interface. 2025-11-05 11:09:14 -03:00
Ümit Tunç d72ce2434a Enhance template placeholder functionality: Updated the TemplateService to support new placeholders for page content, title, and excerpt. Modified related components and views to utilize these placeholders, improving dynamic content rendering. Added special placeholder buttons in the placeholder picker for easier insertion. 2025-11-05 10:24:43 -03:00
Ümit Tunç b1cd5492c1 Add draft functionality for page management: Implemented a new bulk action to move selected pages to draft status in the PagesTable. Added corresponding localization keys for English and Turkish languages to enhance user experience. 2025-11-05 10:14:37 -03:00
Ümit Tunç 91922ac6bf Add bulk actions for page management: Implemented duplicate and publish functionalities in the PagesTable, allowing users to duplicate selected pages and publish them in bulk. Added corresponding localization keys for English and Turkish languages to enhance user experience. 2025-11-05 09:39:02 -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
Truncgil Technology e5cabae930 Merge pull request #12 from truncgil/feature/dynamic-template-system
Feature/dynamic template system
2025-11-04 22:13:34 +03:00
Truncgil Technology 894273c4b2 Merge branch 'main' into feature/dynamic-template-system 2025-11-04 22:13:18 +03:00
Ümit Tunç f1b1f6e266 Add locale management middleware: Introduced SetLocale middleware to handle language settings based on user session and available languages. Updated app bootstrap to include the middleware, ensuring proper localization support throughout the application. Enhanced language selector component for improved user experience. 2025-11-04 15:40:53 -03:00
Ümit Tunç 8a99a36ee9 Enhance placeholder parsing functionality: Updated the TemplateService to support both dot and kebab-case formats for placeholders in HTML content. Improved regex patterns for parsing placeholders and custom blade components, ensuring better flexibility in template customization. 2025-11-04 15:38:15 -03:00
Ümit Tunç 45534be05e Add language switch functionality: Implemented a new route for switching languages, allowing users to change the application language dynamically. Introduced a language selector component in the navbar for improved user experience, ensuring proper localization support. Updated the switch_language helper function to streamline locale management. 2025-11-04 15:28:24 -03:00
Ümit Tunç 7da35f79bb Update menu component localization: Enhanced the menu blade template to utilize the translation feature for item titles, ensuring proper localization support for both English and Turkish languages. This change improves the user experience by dynamically displaying translated titles when available. 2025-11-04 15:24:13 -03:00
Ümit Tunç 236fad201c Update cursor rules: Added UI guidelines for Filament 4.x, emphasizing the use of new components, features, and modules to enhance the project's overall structure and consistency. 2025-11-04 15:16:34 -03:00
Ümit Tunç 114a8c047c Refactor PagesTable: Removed the featured image column and replaced it with a text column for the title. This change simplifies the table structure and enhances the overall layout by focusing on essential information. 2025-11-04 15:16:27 -03:00
Ümit Tunç 38850c7e32 Refactor featured image display in PagesTable: Replaced the existing image column with a text column that conditionally displays either the featured image or a default SVG icon. Enhanced the HTML rendering for better visual representation and alignment in the table. 2025-11-04 15:16:05 -03:00
Ümit Tunç 9dd1bde863 Enhance placeholder picker functionality: Added support for custom placeholders in the placeholder picker component, allowing dynamic loading of custom blade files. Updated localization for both English and Turkish languages to include new placeholder types, improving user experience and flexibility in template customization. 2025-11-04 12:08:31 -03:00
Ümit Tunç 01ef804c03 Add custom menu and navbar components: Introduced a new menu component to dynamically render menu items from the Pages model, including nested children. Added a social media navbar component for enhanced user engagement. Implemented an offcanvas footer for additional contact information and social links, improving overall site navigation and accessibility. 2025-11-04 11:48:24 -03:00
Ümit Tunç ae7d85fc88 Enhance placeholder picker component: Updated the placeholder picker to improve usability by adding drag-and-drop functionality for placeholder insertion. Adjusted the styling of the placeholder list for better visibility and user experience. 2025-11-04 11:39:16 -03:00
Ü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ç a892fa7866 Refactor User Guide Page Navigation: Updated the navigation bar in the User Guide page to utilize full width on larger screens, enhancing layout consistency and responsiveness. Removed unnecessary max-width styling to improve usability across different devices. 2025-11-04 05:59:06 -03:00
Ümit Tunç 181efaa38d Refactor User Guide Page Layout: Updated the User Guide page structure to improve responsiveness and visual consistency. Adjusted navigation and content areas for better usability, including changes to flex properties and styling for enhanced layout across different screen sizes. 2025-11-04 02:28:24 -03:00
Ümit Tunç e713bdb77f Refactor User Guide Layout: Updated the structure of the User Guide page to enhance responsiveness and layout consistency. Changed the main content area and navigation bar to utilize full width on smaller screens, improving user experience across devices. 2025-11-03 17:19:52 -03:00
Ümit Tunç c5b83d0533 Enhance User Guide and Template Services: Added max content width configuration to UserGuide page for improved layout. Updated TemplateService to always replace placeholders, ensuring custom components are handled correctly even with empty default data. Enhanced error handling for custom component rendering, providing user-friendly error messages in the preview. Introduced a new guide for website setup, detailing installation steps and features. 2025-11-03 17:14:53 -03:00
Ümit Tunç f9730a64f7 Add User Guide functionality: Created UserGuide page and GuideService to manage and display user guides. Implemented localization for user guide labels and integrated a search feature for easy navigation. Added markdown support for guide content and established a structured layout for guide selection and display. 2025-11-03 17:08:15 -03:00
Ümit Tunç 6a5e26638c Add placeholder picker component to template forms: Integrated a new placeholder picker component in Footer, Header, Menu, and Section template forms to enhance user experience by allowing easy insertion of placeholder variables. Updated the TemplateService to support custom blade components and added localization for the new placeholder picker functionality. 2025-11-03 16:30:50 -03:00
Ümit Tunç 5b14260622 Add data transformation for default_data fields in template forms: Implemented mutateFormDataBeforeSave method in Create and Edit pages for Footer, Header, and Section templates to properly format nested default_data fields into an array structure before saving. This enhancement improves data handling and ensures consistency across template forms. 2025-11-03 16:16:06 -03:00
Ümit Tunç ef1e8e8d5c Implement dynamic menu template rendering: Updated MenuService to retrieve and render menu templates from Settings, integrating menu structure with dynamic HTML content. Enhanced documentation to include setup instructions for the menu template system, detailing creation, usage, and caching mechanisms. 2025-11-03 15:54:03 -03:00
Ümit Tunç 4a2a66c55c Add Menu Template functionality: Created MenuTemplate resource with CRUD pages, schemas, and table configuration. Implemented localization for menu template fields and integrated menu rendering capabilities. Enhanced TemplatePreviewController to support menu templates and updated dynamic template documentation accordingly. 2025-11-03 15:43:47 -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ç 49bff7f2a7 Enhance item label handling in SectionTemplatesSection: Updated the itemLabel method to dynamically retrieve the title of the associated SectionTemplate based on the section_template_id. This improvement ensures accurate labeling in the Repeater component, enhancing user experience and clarity in the form structure. 2025-11-01 17:53:55 -03:00
Ümit Tunç 22cb542703 Update cursor rules for data retrieval: Added critical notes on avoiding infinite loops with $get('data') usage and provided correct implementation examples using null-safe operator for improved data handling. This update enhances clarity and adherence to best practices in the codebase. 2025-11-01 17:45:46 -03:00
Ümit Tunç ca47484d65 Update PageForm schema to comment out SectionBuilderSection: Temporarily disable SectionBuilderSection in the PageForm schema for further evaluation. Adjusted existingData retrieval to utilize null-safe operator for improved data handling. 2025-11-01 17:43:08 -03:00
Ümit Tunç 875ea270cd Refactor PageForm schema to modular sections: Introduced dedicated classes for each section (Content, Page Settings, SEO, Section Builder, Header Template, Section Templates, Footer Template, Translations) to enhance maintainability and organization. Each section now encapsulates its own schema, improving clarity and separation of concerns in the form structure. 2025-11-01 17:39:08 -03:00
Ümit Tunç af0d7964ca Enhance translation handling in EditPage and TranslationTabs: Implemented eager loading for translations to optimize performance and avoid N+1 query issues. Updated the EditPage mount method to load translations, and modified the fillFromRecord method in TranslationTabs to utilize eager-loaded translations. Disabled old format conversion in mutateFormDataBeforeFill to prevent memory exhaustion with nested arrays, ensuring data integrity while maintaining original format. 2025-11-01 16:40:20 -03:00
Ümit Tunç 5fb74384ce Refactor MenuTree page and PagesMenuWidget: Removed the view property from MenuTree, updated header widget method to footer widget method, and eliminated the menu-tree Blade view file. Enhanced tree title handling in PagesMenuWidget by introducing a dedicated method for retrieving the title using localization. 2025-11-01 16:27:35 -03:00
Ümit Tunç ad20ba575a Add Menu Tree functionality and integrate Filament Tree plugin: Introduced a new MenuTree page for managing page structures, added PagesMenuWidget for displaying a tree layout of pages, and updated localization files for menu-related actions. Enhanced Page model with tree management capabilities and included necessary CSS and JS files for the Filament Tree plugin. 2025-11-01 16:13:59 -03:00
Ümit Tunç 1d46c9243d Refactor TemplatePreviewController to enhance template retrieval and default data handling: Updated the preview method to fetch template objects by ID, introduced default data management, and replaced placeholders with default values using TemplateService. Improved method signatures for clarity and consistency in data handling. 2025-11-01 15:55:39 -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