How charls2004/i-monitor works
i-Monitor is a role-based fleet and operations application. Its main workflow is staff recording vehicle and defect information, routing requests for review, and maintaining related records; fuel withdrawal and consumption reporting form a distinct operational branch. Vehicle documents, OCR, agreements, notifications, and exports are supporting capabilities visible in the source index and tree. The sampled excerpts do not expose route wiring or several controller implementations, so relationships are limited to documented model references and shown service/controller interactions.
Main entry points: Vehicle.php Vehicle registry · DefectReportController.php Defect workflow · User.php Users and roles · WithdrawalSlipController.php Fuel operations
Components 20
Fleet records
- Users and roles
app/Models/User.php - Vehicle registry
app/Models/Vehicle.php - Departments
app/Models/Department.php - Driver assignments
app/Models/DriverVehicleAssignment.php - Registrations
app/Models/Registration.php - Insurance records
app/Models/Insurance.php - Vehicle documents
app/Models/Document.php
Operational workflows
- Defect requests
app/Models/DefectReport.php - Defect workflow
app/Http/Controllers/DefectReportController.php - Maintenance records
app/Models/Maintenance.php
Fuel management
- Fuel operations
app/Http/Controllers/WithdrawalSlipController.php - Withdrawal slips
app/Models/FuelWithdrawalSlip.php - Fuel records
app/Models/FuelRecord.php - Consumption reports
app/Services/MonthlyFuelConsumptionReportService.php
Shared services
- Notifications
app/Models/Notification.php - Edited-request alerts
app/Services/RequestEditedNotificationService.php - Agreement service
app/Services/UserAgreementService.php - Registration OCR
app/Services/Ocr/GeminiOcrService.php - Job-order export
app/Exports/JobOrderRequestExport.php
Other components
- Application users
Connections 22
- Defect workflow → Defect requests: manages requests
app/Http/Controllers/DefectReportController.php - Defect workflow → Vehicle registry: loads vehicles
app/Http/Controllers/DefectReportController.php - Defect workflow → Users and roles: notifies staff
app/Http/Controllers/DefectReportController.php - Defect workflow → Notifications: creates alerts
app/Http/Controllers/DefectReportController.php - Defect workflow → Job-order export: exports reports
app/Http/Controllers/DefectReportController.php - Fuel operations → Withdrawal slips: manages slips
app/Http/Controllers/WithdrawalSlipController.php - Fuel operations → Users and roles: resolves drivers
app/Http/Controllers/WithdrawalSlipController.php - Fuel operations → Vehicle registry: loads vehicles
app/Http/Controllers/WithdrawalSlipController.php - Edited-request alerts → Notifications: creates alerts
app/Services/RequestEditedNotificationService.php - Agreement service → Users and roles: checks agreements
app/Services/UserAgreementService.php - Agreement service → Application users: records acknowledgement
- Vehicle registry → Registrations: has registration
app/Models/Vehicle.php - Vehicle registry → Insurance records: has insurance
app/Models/Vehicle.php - Vehicle registry → Maintenance records: has maintenance
app/Models/Vehicle.php - Vehicle registry → Vehicle documents: has documents
app/Models/Vehicle.php - Users and roles → Driver assignments: has assignments
app/Models/User.php - Users and roles → Departments: belongs to department
app/Models/User.php - Maintenance records → Defect requests: may originate from
app/Models/Maintenance.php - Consumption reports → Vehicle registry: reports by vehicle
app/Services/MonthlyFuelConsumptionReportService.php - Registration OCR → Registrations: parses registration
app/Services/Ocr/GeminiOcrService.php - Application users → Defect workflow: files requests
- Application users → Fuel operations: handles fuel requests