A comprehensive SaaS Field Service Management platform built with Laravel 9
π Features β’ π Installation β’ π Documentation β’ π§ Usage β’ π€ Contributing
Smart FSM is a powerful, multi-tenant Field Service Management system designed to streamline operations between office and field staff. Built with Laravel 9, it offers a complete solution for managing work orders, assets, clients, and billing in a single platform.
- Improved Productivity: Streamlined workflows from request to completion
- Better Communication: Real-time updates between office and field teams
- Enhanced Customer Satisfaction: Transparent service delivery and tracking
- Operational Efficiency: Automated processes and comprehensive reporting
- Super Admin: Platform-wide management
- Organization Owners: Complete business control
- Managers & Staff: Role-based access control
- Clients: Self-service portal access
Client Request β WO Request β Estimation β Work Order β Service Appointment β Invoice β Payment
- Work Order Lifecycle: Complete workflow management
- Priority Levels: Low, Medium, High, Critical
- Status Tracking: Real-time progress updates
- Service Scheduling: Appointment management system
- Task Management: Detailed task tracking with duration
- Asset Registry: Comprehensive equipment tracking
- Service Catalog: Parts and services with pricing
- Warranty Management: Expiration tracking and notes
- Inventory Control: SKU-based part identification
- Subscription Plans: Monthly, Quarterly, Yearly, Unlimited
- Multiple Payment Gateways: Stripe, PayPal, Flutterwave, Bank Transfer
- Coupon System: Discount codes with usage limits
- User Limits: Configurable per subscription tier
- 13+ Languages: English, Arabic, Spanish, French, German, Italian, Dutch, Japanese, Polish, Portuguese, Russian, Danish, and more
- RTL Support: Right-to-left language compatibility
- Localization: Date/time formats and currency support
- 2FA Authentication: Google 2FA integration
- Role-based Permissions: Granular access control
- XSS Protection: Built-in security middleware
- Email Verification: Configurable verification system
- Dashboard Analytics: Role-specific insights
- Revenue Tracking: Comprehensive financial reporting
- Work Order Statistics: Performance metrics
- User Activity Monitoring: System usage tracking
- PHP 8.0 or higher
- Composer
- Node.js & NPM
- MySQL/PostgreSQL database
- Web server (Apache/Nginx)
-
Clone the repository
git clone https://github.com/mubseoul/smart-fsm.git cd smart-fsm
-
Install dependencies
composer install npm install
-
Environment setup
cp .env.example .env php artisan key:generate
-
Database configuration
# Update .env with your database credentials php artisan migrate --seed
-
Build assets
npm run build
-
Start development server
php artisan serve
# Stripe
STRIPE_KEY=your_stripe_publishable_key
STRIPE_SECRET=your_stripe_secret_key
# PayPal
PAYPAL_CLIENT_ID=your_paypal_client_id
PAYPAL_SECRET=your_paypal_secret
# Flutterwave
FLUTTERWAVE_PUBLIC_KEY=your_flutterwave_public_key
FLUTTERWAVE_SECRET_KEY=your_flutterwave_secret_key
MAIL_MAILER=smtp
MAIL_HOST=your_smtp_host
MAIL_PORT=587
MAIL_USERNAME=your_email
MAIL_PASSWORD=your_password
- SMART_FSM_DOCUMENTATION.md: Complete technical documentation
- SMART_FSM_CLAUDE_CONTEXT.md: AI assistant context file
- DATABASE_AND_REGISTRATION_ANALYSIS.md: Database structure and registration flow analysis
This project includes comprehensive context files to help AI assistants (like Claude) understand the system:
Primary Context File: SMART_FSM_CLAUDE_CONTEXT.md
- Complete user roles and hierarchy
- Database structure overview
- Registration flow details
- Essential functions and patterns
- Security considerations
- Development guidelines
Additional Context Files:
SMART_FSM_DOCUMENTATION.md
: Technical documentationDATABASE_AND_REGISTRATION_ANALYSIS.md
: Detailed database analysis
- Update Context Files: Add new information to
SMART_FSM_CLAUDE_CONTEXT.md
- Use Descriptive Commits: Include context in git commit messages
- Document Changes: Update relevant .md files when making system changes
- Code Comments: Add detailed comments for complex business logic
When making significant changes:
# 1. Update the context file
vim SMART_FSM_CLAUDE_CONTEXT.md
# 2. Commit with descriptive message
git add .
git commit -m "feat: Add new payment gateway - update AI context"
# 3. Document in relevant files
# Update SMART_FSM_DOCUMENTATION.md if needed
Super Admin: superadmin@gmail.com / 123456
Owner: owner@gmail.com / 123456
Manager: manager@gmail.com / 123456
- WO Request: Client submits service request
- Estimation: Generate cost estimate for approval
- Work Order: Create detailed work assignment
- Service Appointment: Schedule field service
- Invoice: Generate billing after completion
- Configure subscription plans with user/client limits
- Process payments through multiple gateways
- Handle subscription renewals and upgrades
- Apply coupon codes for discounts
- All data is isolated by organization (
parent_id
) - Role-based permissions control access
- Subscription limits enforce user quotas
- Each organization has independent settings
- Backend: Laravel 9, PHP 8.0+
- Frontend: Bootstrap 5, jQuery, Alpine.js
- Database: MySQL/PostgreSQL
- Authentication: Laravel Breeze + 2FA
- Permissions: Spatie Laravel Permission
- Payments: Multi-gateway integration
- Multi-tenancy: Hierarchical organization structure
- Work Order Engine: Complete lifecycle management
- Billing System: SaaS subscription handling
- Asset Management: Equipment and service tracking
- Communication: Email notifications and templates
We welcome contributions! Please follow these steps:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Follow PSR-12 coding standards
- Maintain multi-tenant data isolation
- Respect the work order workflow
- Add proper permissions for new features
- Include tests for new functionality
This project is licensed under the MIT License - see the LICENSE file for details.
- Laravel Framework and its amazing ecosystem
- Bootstrap for the responsive UI components
- All contributors and users of Smart FSM
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Documentation: Project Wiki
β Star this repository if it helped you!
Made with β€οΈ for the field service community