How bokbokforthewin/ims works
This is an inventory and asset-accountability application: staff manage a catalog, receive serialized or bulk stock, issue consumables, assign serialized assets, and record transfers or returns. The React app loads shared lists and presents those workflows; its requests enter the Laravel API, whose controllers validate transactions and update Eloquent models. The excerpts show the frontend entry and several controller-to-model calls; remaining route-to-controller relationships are supported by the API route file’s SOURCE INDEX references. No external service integration is evident.
Main entry points: App.jsx Inventory app · api.php API routes · ConsumablesController.php Consumables issue · ItemController.php Item catalog
Components 22
Staff interface
- Inventory app
frontend/src/App.jsx - App layout
frontend/src/components/Layout.jsx - Catalog page
frontend/src/pages/CatalogPage.jsx - Receive page
frontend/src/pages/ReceivePage.jsx - Consumables page
frontend/src/pages/ConsumablesPage.jsx - Accountability page
frontend/src/pages/AccountabilityPage.jsx - Transfer / return
frontend/src/pages/TransferReturnPage.jsx
Catalog management
- Item catalog
backend/app/Http/Controllers/ItemController.php - Category catalog
backend/app/Http/Controllers/CategoryController.php - Catalog items
backend/app/Models/Item.php - Categories
backend/app/Models/Category.php
Stock operations
- Stock receiving
backend/app/Http/Controllers/InventoryController.php - Consumables issue
backend/app/Http/Controllers/ConsumablesController.php - Stock batches
backend/app/Models/StockBatch.php - Issuance records
backend/app/Models/StockIssuance.php
Asset accountability
- Serialized assets
backend/app/Models/SerializedAsset.php - Asset assignment
backend/app/Http/Controllers/AccountabilityController.php - Accountability receipts
backend/app/Models/AccountabilityReceipt.php - Transfer and return
backend/app/Http/Controllers/AssetTransferController.php - Transfer records
backend/app/Models/AssetTransfer.php
API and records
- API routes
backend/routes/api.php
Other components
- Inventory staff
Connections 26
- Inventory staff → Inventory app: uses
frontend/src/App.jsx - Inventory app → App layout: renders
frontend/src/App.jsx - Inventory app → Catalog page: renders
frontend/src/App.jsx - Inventory app → Receive page: renders
frontend/src/App.jsx - Inventory app → Consumables page: renders
frontend/src/App.jsx - Inventory app → Accountability page: renders
frontend/src/App.jsx - Inventory app → Transfer / return: renders
frontend/src/App.jsx - Inventory app → API routes: requests data
frontend/src/App.jsx - API routes → Item catalog: routes to
backend/routes/api.php - API routes → Category catalog: routes to
backend/routes/api.php - API routes → Stock receiving: routes to
backend/routes/api.php - API routes → Consumables issue: routes to
backend/routes/api.php - API routes → Asset assignment: routes to
backend/routes/api.php - API routes → Transfer and return: routes to
backend/routes/api.php - Item catalog → Catalog items: creates and reads
backend/app/Http/Controllers/ItemController.php - Item catalog → Categories: looks up
backend/app/Http/Controllers/ItemController.php - Category catalog → Categories: manages
backend/app/Http/Controllers/CategoryController.php - Stock receiving → Serialized assets: records serialized stock
backend/app/Http/Controllers/InventoryController.php - Stock receiving → Stock batches: records bulk stock
backend/app/Http/Controllers/InventoryController.php - Consumables issue → Stock batches: deducts FIFO stock
backend/app/Http/Controllers/ConsumablesController.php - Consumables issue → Issuance records: creates issuance
backend/app/Http/Controllers/ConsumablesController.php - Consumables issue → Catalog items: checks reorder level
backend/app/Http/Controllers/ConsumablesController.php - Asset assignment → Serialized assets: assigns asset
backend/app/Http/Controllers/AccountabilityController.php - Asset assignment → Accountability receipts: creates receipt
backend/app/Http/Controllers/AccountabilityController.php - Transfer and return → Serialized assets: updates asset
backend/app/Http/Controllers/AssetTransferController.php - Transfer and return → Transfer records: records movement
backend/app/Http/Controllers/AssetTransferController.php