How puj16/sapu-app works
Sapu-App manages fertilizer distribution from farmer land records and subsidy applications through group validation, RDKK allocation, stock tracking, payment status, and delivery monitoring. Controllers query and update the domain models and render role-specific Blade screens; the sampled code directly confirms application, RDKK, dashboard, and distribution data access. The tree and README identify additional authentication, notification, export, and reporting capabilities, but their wiring was not sampled, so those links are not inferred.
Main entry points: PenyaluranController.php Payment and delivery · DashboardController.php Role dashboards · PengajuanController.php Fertilizer applications · RdkkController.php RDKK planning
Components 24
Access and dashboards
- Authentication
app/Http/Controllers/Authcontroller.php - Role dashboards
app/Http/Controllers/DashboardController.php - Dashboard screens
resources/views
Farmer eligibility
- Land records
app/Http/Controllers/LahanController.php - Land parcels
app/Models/Lahan.php - Fertilizer applications
app/Http/Controllers/PengajuanController.php - Applications
app/Models/Pengajuan.php - Farmer profiles
app/Models/Petani.php - Application screens
resources/views/petani/pengajuan.blade.php
Allocation and inventory
- RDKK planning
app/Http/Controllers/RdkkController.php - RDKK allocations
app/Models/Rdkk.php - Fertilizer catalog
app/Models/Pupuk.php - Stock tracking
app/Http/Controllers/StokController.php - Fertilizer stock
app/Models/Stok.php
Payment and delivery
- Payment and delivery
app/Http/Controllers/PenyaluranController.php - Delivery records
app/Models/Penyaluran.php - Partial delivery details
app/Models/detailPenyaluranSebagian.php - Delivery screens
resources/views/poktan/penyaluran.blade.php - Reports and exports
app/Http/Controllers - Push notifications
app/Http/Controllers/PushNotificationController.php - Notification display
public/service-worker.js
Persistence and integrations
- Relational database
config/database.php
Other components
- Farmers
- Group and field staff
Connections 30
- Farmers → Authentication: sign in
- Group and field staff → Authentication: sign in
- Farmers → Land records: manage parcels
- Land records → Land parcels: reads and writes
- Farmers → Fertilizer applications: submit request
- Fertilizer applications → Applications: reads and writes
- Fertilizer applications → Land parcels: checks parcel
- Fertilizer applications → Application screens: renders
- Group and field staff → RDKK planning: plan allocation
- RDKK planning → Applications: reads approved
- RDKK planning → RDKK allocations: creates and updates
- RDKK planning → Fertilizer catalog: reads catalog
- Group and field staff → Stock tracking: track stock
- Stock tracking → Fertilizer stock: manages
- Group and field staff → Payment and delivery: record delivery
- Payment and delivery → RDKK allocations: reads allocation
- Payment and delivery → Fertilizer stock: checks stock
- Payment and delivery → Delivery records: reads and updates
- Payment and delivery → Partial delivery details: reads details
- Payment and delivery → Delivery screens: renders
- Role dashboards → RDKK allocations: reads allocations
- Role dashboards → Applications: counts statuses
- Role dashboards → Delivery records: summarizes status
- Role dashboards → Land parcels: reads parcels
- Role dashboards → Dashboard screens: renders
- RDKK planning → Relational database: persists records
- Fertilizer applications → Relational database: persists records
- Payment and delivery → Relational database: persists records
- Stock tracking → Relational database: persists records
- Push notifications → Notification display: pushes notices