Editing Website Content
This guide explains how to manage and edit the content of your Fixly Repair Shop Manager website using the built-in CMS and System Configuration tools.
1. Managing Website Pages (Home, About, Services, etc.)
Instead of editing raw code, you can manage the layout and visibility of your main pages through the Pages resource.
- Access: Navigate to Site Content > Pages (Site Builder) in the admin sidebar.
- Creating/Editing: Each page allows you to set a Title and a Slug (the URL path).
- Setting a Homepage: You can designate any page as your landing page by toggling the Set as Homepage switch.
- Page Overwrites: If you create a page with a slug like about or services, the system will use the content you build here instead of any default "stock" views.
- Visibility: Use the Is Published toggle to make a page live or hide it from the public while you work on it.
2. Customizing Page Content with Blocks
The CMS uses a "Block" system, allowing you to build pages by stacking different sections.
- Available Blocks: You can insert sections for Hero Sliders, Repair Trackers, Services Grids, Team Members, and Recent Reviews.
- Rich Text: Use the Basic Rich Text block for standard paragraphs, bold text, and lists.
- Custom HTML: For advanced users, the Custom HTML block allows you to paste specific code snippets or third-party widgets directly into a page.
3. Managing Legal Policies
Your legal documents (Terms of Service, Privacy Policy, and Warranty) are managed in a central location to ensure they are consistent across your business.
- Access: Go to System Settings > System Configuration and click the Legal Pages tab.
- Editing: Use the Rich Editor to update your policies.
- Automatic Links: These pages are automatically served at /terms, /privacy, and /warranty.
4. Running a Business Blog
The blog section is ideal for sharing news, repair tips, or SEO-focused content.
- Access: Navigate to Site Content > Blog Posts in the sidebar.
- Content: Each post supports a featured image, a summary (excerpt), and full Rich Text content.
- Publishing: You can set a specific Published Date; posts will only appear on the frontend once that date is reached and the Is Published toggle is active.
5. Global Business Info & Appearance
General details used in the header, footer, and automated emails are managed in the global settings.
- General Settings: Update your Business Name, Phone Number, Support Email, and Physical Address under the General tab.
- Brand Colors: To change the look of buttons and highlights on the site, go to the Appearance tab and use the Color Picker to set your Primary Brand Color.
Summary of Editing Locations
Homepage & Custom Pages | Site Content > Pages
Legal Policies | System Settings > Configuration > Legal Pages
Blog Articles | Site Content > Blog Posts
Business Address/Phone | System Settings > Configuration > General
Site Primary Color | System Settings > Configuration > Appearance
Editing Stock Website Files
If you prefer to skip the Admin CMS and edit the website code directly, you can modify the "Stock" Blade files. These files contain the default HTML and Tailwind CSS for the site.
1. List of Editable Files
Below are the locations for the main website pages. All paths are relative to your project's root directory:
- Main Homepage: resources/views/pages/home.blade.php
- About Us Page: resources/views/pages/about.blade.php
- Contact Page: resources/views/pages/contact.blade.php
- Pricing & Plans: resources/views/pages/pricing.blade.php
- Features Page: resources/views/pages/features.blade.php
- FAQ Page: resources/views/pages/faq.blade.php
2. How the Fallback System Works
When a user visits a URL (like /about), the software follows this priority logic:
- Check Database: It looks for a page in the Admin > Pages section with the slug "about".
- Fallback to File: If no database entry exists, it automatically loads the file located at resources/views/pages/about.blade.php.
3. Editing the Global Header and Footer
To change elements that appear on every page (like the navigation menu or the footer), you should edit the primary layout file:
- Global Layout: resources/views/layouts/app.blade.php
4. Clearing the Cache
After you manually edit a .blade.php file, your changes might not show up immediately due to Laravel's view caching. To force the site to update, run this command in your terminal:
php artisan view:clear
5. Important Note on Styling
These files use Tailwind CSS. If you add new CSS classes that haven't been used elsewhere on the site, you must recompile your assets using npm run build to ensure the new styles are generated.