How reyansmith/medivault works
Mannath Medicals is a PHP/MySQL pharmacy management application. Users enter through login, where roles determine access to administrator or employee workflows: employees handle billing, inventory, dashboards and reports; administrators manage inventory, purchases, vendors, employees and reporting. Both areas use the shared database connection and common page layout. The README documents the broader module set; unsampled modules are represented by their exact tree paths, while their internal calls are not inferred. Edges reflect shown imports, calls, navigation or README-described behavior.
Main entry points: database.php Database connection · sidebar.php Role navigation · dashboard.php Employee dashboard · inventory.php Inventory management
Components 24
Access and sessions
- Application entry
index.php - Role login
auth/login.php - Session audit
includes/session_audit.php - Session logout
auth/logout.php
Employee operations
- Employee dashboard
employee/dashboard.php - Billing
employee/billing.php - Inventory view
employee/inventory.php - Employee reports
employee/reports.php - Sales chart data
employee/dashboard_sales_data.php
Administration
- Admin dashboard
admin/dashboard.php - Sales chart data
admin/dashboard_sales_data.php - Inventory management
admin/inventory.php - Purchase management
admin/purchases.php - Record purchase
admin/create_purchase.php - Vendor management
admin/vendors.php - Employee management
admin/employees.php - Admin reports
admin/reports.php - Generate report
admin/generate_report.php
Shared services
- Page header
includes/header.php - Role navigation
includes/sidebar.php - Page footer and charts
includes/footer.php - Database connection
config/database.php
Other components
- User
- MySQL database
Connections 40
- User → Application entry: opens app
README.md - Application entry → Role login: redirects to
README.md - User → Role login: submits credentials
README.md - Role login → Database connection: queries accounts
auth/login.php - Role login → Session audit: records employee session
auth/login.php - User → Session logout: requests logout
README.md - Session logout → Session audit: closes session
auth/logout.php - Employee dashboard → Session audit: enforces session rules
employee/dashboard.php - Inventory view → Session audit: enforces session rules
employee/inventory.php - Employee reports → Session audit: enforces session rules
employee/reports.php - Billing → Database connection: uses connection
employee/billing.php - Inventory view → Database connection: uses connection
employee/inventory.php - Employee reports → Database connection: uses connection
employee/reports.php - Employee dashboard → Database connection: uses connection
employee/dashboard.php - Employee dashboard → Sales chart data: loads chart data
- Admin dashboard → Sales chart data: loads chart data
- Inventory management → Database connection: uses connection
admin/inventory.php - Record purchase → Database connection: uses connection
admin/create_purchase.php - Purchase management → Database connection: uses connection
admin/purchases.php - Vendor management → Database connection: uses connection
admin/vendors.php - Employee management → Database connection: uses connection
admin/employees.php - Admin reports → Database connection: queries metrics
admin/reports.php - Generate report → Database connection: uses connection
admin/generate_report.php - Admin dashboard → Database connection: uses connection
admin/dashboard.php - Database connection → MySQL database: connects to
config/database.php - Inventory management → Page header: includes
admin/inventory.php - Inventory management → Role navigation: includes
admin/inventory.php - Inventory management → Page footer and charts: includes
admin/inventory.php - Inventory view → Page footer and charts: includes
employee/inventory.php - Employee dashboard → Page footer and charts: includes
employee/dashboard.php - Admin dashboard → Page footer and charts: includes
admin/dashboard.php - Role navigation → Employee dashboard: links to
includes/sidebar.php - Role navigation → Billing: links to
includes/sidebar.php - Role navigation → Inventory view: links to
includes/sidebar.php - Role navigation → Employee reports: links to
includes/sidebar.php - Role navigation → Inventory management: links to
includes/sidebar.php - Role navigation → Purchase management: links to
includes/sidebar.php - Role navigation → Vendor management: links to
includes/sidebar.php - Role navigation → Employee management: links to
includes/sidebar.php - Role navigation → Admin reports: links to
includes/sidebar.php