Skip to content

BroCode-glithch/erp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License


πŸ—‚οΈ Laravel ERP System

A modular, role-based ERP dashboard built with Laravel, designed for scalable management of users, programs, and departments. This project demonstrates a simple best practices in Laravel architecture, UI/UX, and security, and is suitable for onboarding, NGO, or enterprise use.


πŸš€ Features

🎯 Role-Based Authentication & Dashboards using Spatie

  • Secure login/register with role-based dashboard redirection:
  • Admin
  • Program Manager
  • Care Support
  • Secure User Authentication with Email Verification
  • Location-aware Login Notifications
  • Middleware-protected roles['admin', 'pm', 'support'] routes
  • Little Responsive UI powered by Tailwind CSS

πŸ–₯️ Admin Dashboard with Analytics and CRUD Operations:

  • Departments, Programs, Users management
  • Search, create, edit, and delete for each module
  • Export data (PDF, Excel, XML) for each module
  • Responsive, accessible, and consistent UI (light/dark mode)
  • Notifications, activity logs, and audit trails (planned)
  • Modular Blade components for easy customization

πŸ–₯️ Program Manger Dashboard

  • Programs management
  • Search, create, edit, and delete for each module
  • Export data (PDF, Excel, XML) for each module
  • Responsive, accessible, and consistent UI (light/dark mode)
  • Notifications, activity logs, and audit trails (planned)
  • Modular Blade components for easy customization

πŸ“Š Data Export

  • Export tables to PDF (with watermark, branding, and metadata)
  • Export to Excel and XML (placeholders, ready for implementation)

πŸ“ Project Structure

β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ Http/
β”‚   β”‚   └── Controllers/
β”‚   β”‚       └── Admin/
β”‚   β”‚           β”œβ”€β”€ DepartmentController.php
β”‚   β”‚           β”œβ”€β”€ ProgramController.php
β”‚   β”‚           └── UserController.php
β”‚   └── Models/
β”‚
β”œβ”€β”€ bootstrap/
β”‚   └── cache/
β”‚
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ app.php
β”‚   β”œβ”€β”€ auth.php
β”‚   β”œβ”€β”€ permission.php
β”‚   β”œβ”€β”€ session.php
β”‚   └── ...
β”‚
β”œβ”€β”€ database/
β”‚   β”œβ”€β”€ factories/
β”‚   β”‚   └── UserFactory.php
β”‚   β”œβ”€β”€ migrations/
β”‚   β”‚   β”œβ”€β”€ create_users_table.php
β”‚   β”‚   β”œβ”€β”€ create_departments_table.php
β”‚   β”‚   β”œβ”€β”€ create_programs_table.php
β”‚   β”‚   └── ...
β”‚   └── seeders/
β”‚       β”œβ”€β”€ DatabaseSeeder.php
β”‚       └── RolesSeeder.php
β”‚
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ videos/
β”‚   β”œβ”€β”€ favicon.ico
β”‚   └── index.php
β”‚
β”œβ”€β”€ resources/
β”‚   β”œβ”€β”€ css/
β”‚   β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ lang/
β”‚   β”œβ”€β”€ views/
β”‚   β”‚   β”œβ”€β”€ admin/
β”‚   β”‚   β”‚   β”œβ”€β”€ departments/
β”‚   β”‚   β”‚   β”œβ”€β”€ programs/
β”‚   β”‚   β”‚   β”œβ”€β”€ users/
β”‚   β”‚   β”‚   β”œβ”€β”€ dashboard.blade.php
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   β”œβ”€β”€ auth/
β”‚   β”‚   β”œβ”€β”€ pm/
β”‚   β”‚   β”œβ”€β”€ profile/
β”‚   β”‚   β”œβ”€β”€ vendor/
β”‚   β”‚   └── welcome.blade.php
β”‚   └── markdown/
β”‚
β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ web.php
β”‚   β”œβ”€β”€ api.php
β”‚   β”œβ”€β”€ auth.php
β”‚   └── console.php
β”‚
β”œβ”€β”€ storage/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ framework/
β”‚   └── logs/
β”‚
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ Feature/
β”‚   β”œβ”€β”€ Unit/
β”‚   └── TestCase.php
β”‚
β”œβ”€β”€ vendor/
β”‚
β”œβ”€β”€ .env
β”œβ”€β”€ artisan
β”œβ”€β”€ composer.json
β”œβ”€β”€ package.json
β”œβ”€β”€ vite.config.js
└── ...

πŸ› οΈ Tech Stack

  • Laravel Framework 12.8.1
  • Blade (templating)
  • Tailwind CSS (UI styling)
  • PHP 8.2.26
  • MySQL
  • "barryvdh/laravel-dompdf": "^3.1", (PDF export)
  • "erag/laravel-pwa": "^1.8", (Progressive Web App Install)
  • "robthree/twofactorauth": "^3.0" (2fa auth)
  • *...

πŸ” Security & Compliance

  • CSRF, XSS, and input validation throughout
  • Role-based access control (RBAC) using Laravel policies and middleware
  • Password hashing, environment variable security
  • GDPR/data privacy readiness (planned)

πŸ§‘β€πŸ’» Getting Started

1. Clone & Install

git clone git@github.com:BroCode-glithch/erp.git
cd erp
composer install
cp .env.example .env
php artisan key:generate

2. Configure Database

Edit .env and set your database credentials.

3. Run Migrations

php artisan migrate

4. Seed the db with record

php artisan db:seed

4. Start Local Server

php artisan serve

πŸ“¦ Usage

  • Register as an admin, program-manager, and, Care-Support, to access the dashboard.
  • Manage departments, programs, and users from the dashboard.
  • Manage the system based on role management.
  • Admin has full control over other roles.
  • Setup System Name, System Email, and others.
  • Use the search and export buttons in each section.
  • Switch between light and dark mode for better UX.

πŸ“ Project Roadmap

  • Laravel setup & authentication
  • Role-based login redirection
  • Admin dashboard UI
  • CRUD for departments, programs, users
  • PDF export with watermark and branding
  • Button styling and light/dark mode
  • Excel/XML export
  • Program Manager & User dashboards
  • Notification system
  • User activity logs
  • Unit & feature tests
  • Responsiveness of portals on Mobile
  • ...

πŸ˜’ Challenges

  • UI/UX Design of the admin, and program-manager dashboard
  • System Name
  • Admin Dashboard Mobile Responsiveness (Key Challenge)

πŸ§ͺ Testing

  • Factories and seeders for test data
  • Example feature and unit tests (see /tests)

πŸ›‘οΈ License

This project is open-sourced under the MIT license.


🀝 Contributing

Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.


πŸ“– About Laravel

Laravel is a web application framework with expressive, elegant syntax. Learn more at laravel.com.


πŸ“Έ Screenshots

Welcome Page

Welcome Page

Login Page

Login Page

Register Page

Register Page

Admin Dashboard Light

Admin Light DAshboard Admin Light DAshboard

Admin Dashboard DArk

Admin Dark DAsboard

Admin Inactive Modal After 15mins DArk

Admin Dashboard Logout Modal

Project Video Demo

Admin Dashboard Logout Modal


πŸ† Assessment Criteria (Self-Evaluation)

Category Points (Max) My Progress (Status)
Architecture 200 Pending
Code Quality 150 Pending
Features 200 Pending
UI/UX 150 Pending
Security 100 Pending
Deployment 100 Pending
Docs & Git 100 Pending
Total 1000

πŸ“‹ Assessment Notes

  • Architecture & System Design: Modular, scalable, and follows Laravel conventions.
  • Code Quality: PSR-12, DRY, Eloquent, and reusable components.
  • Features: Core modules (departments, programs, users) are implemented; RBAC and export working.
  • UI/UX: Responsive, accessible, and customizable.
  • Security: Standard Laravel protections in place.
  • Deployment: Standard Laravel setup and .env configuration.
  • Documentation: This README, in-code comments, and commit history.

For a detailed scoring breakdown, please refer to the assessment rubric or contact the reviewer @ .


About

πŸ›οΈ ERP β€” Laravel Role-Based Management System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors