# ihsannulf/wildlife-hazard-management-logbook-system-angkasapura architecture

> Architecture diagram of the GitHub repository ihsannulf/wildlife-hazard-management-logbook-system-angkasapura, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura
- Repository: https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura

## Overview

WHMS is an airport wildlife-hazard logbook for field observations, operational review, risk analysis, and formal reporting. The principal workflow is a field employee submitting a spatially located wildlife report, followed by admin validation and use of the accumulated records in dashboards, statistics, and exports. Separate capabilities include dynamic form and master-data management, AI species identification and birdstrike prediction, and weather snapshots. The graph follows shown imports/calls and README-described features; some route wiring and unsampled implementations are not shown, so those links are omitted or documented only where supported.

Main entry points: [`app/Http/Controllers/LaporanController.php`](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/LaporanController.php) (Submit report), [`app/Models/Laporan.php`](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/Laporan.php) (Observation records), [`app/Http/Controllers/Admin/DashboardController.php`](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/DashboardController.php) (Review dashboard), [`app/Http/Controllers/Admin/ReportController.php`](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/ReportController.php) (Report exports)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Field reporting"]
  node_laporan_controller["Submit report"]
  node_report_data[("Observation records<br/>[Laporan.php]")]
  node_species_details[("Wildlife details<br/>[DetailSatwa.php]")]
end

subgraph group_operations["Operational management"]
  node_dynamic_fields[("Dynamic form fields<br/>[FormField.php]")]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_role_gate["Role access<br/>[RoleMiddleware.php]"]
  node_admin_dashboard["Review dashboard"]
  node_species_catalog[("Species catalog<br/>[JenisSatwa.php]")]
end

subgraph group_analysis["Risk and analytics"]
  node_statistics["Wildlife statistics"]
  node_statistics_page["Spatial analysis"]
  node_grid_risk["Grid risk scoring"]
  node_icao_risk["ICAO risk assessment"]
end

subgraph group_intelligence["AI and weather"]
  node_ai_identification["Species identification"]
  node_gemini_service["AI services"]
  node_weather_snapshots["Weather snapshots"]
  node_weather_provider["Weather provider"]
end

subgraph group_outputs["Reporting outputs"]
  node_reports["Report exports"]
  node_pdf_service["Formal PDF"]
  node_monthly_pdf["Monthly logbook"]
  node_xlsx["Spreadsheet export"]
end

node_field_staff(("Field employee"))
node_admin(("Admin"))
node_gemini{{"Gemini API"}}

node_field_staff -->|"submits report"| node_laporan_controller
node_laporan_controller -->|"creates records"| node_report_data
node_laporan_controller -->|"stores sightings"| node_species_details
node_laporan_controller -->|"loads form fields"| node_dynamic_fields
node_laporan_controller -->|"loads species"| node_species_catalog
node_admin -->|"signs in"| node_auth
node_auth -->|"role controls"| node_role_gate
node_admin -->|"reviews reports"| node_admin_dashboard
node_admin_dashboard -->|"reads reports"| node_report_data
node_admin_dashboard -->|"requests metrics"| node_statistics
node_admin_dashboard -->|"loads field config"| node_dynamic_fields
node_statistics_page -->|"computes zones"| node_grid_risk
node_statistics_page -.->|"requests analysis"| node_statistics
node_statistics -->|"reads sightings"| node_species_details
node_grid_risk -->|"reads observations"| node_species_details
node_laporan_controller -->|"assesses hazard"| node_icao_risk
node_ai_identification -->|"requests identification"| node_gemini_service
node_gemini_service -->|"calls model"| node_gemini
node_gemini_service -->|"matches taxonomy"| node_species_catalog
node_weather_snapshots -.->|"gets weather"| node_weather_provider
node_reports -->|"builds formal PDF"| node_pdf_service
node_reports -->|"builds monthly bundle"| node_monthly_pdf
node_reports -->|"exports spreadsheet"| node_xlsx
node_pdf_service -->|"reads reports"| node_report_data
node_monthly_pdf -->|"reads reports"| node_report_data
node_xlsx -->|"reads reports"| node_report_data

click node_laporan_controller "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/LaporanController.php"
click node_report_data "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/Laporan.php"
click node_species_details "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/DetailSatwa.php"
click node_dynamic_fields "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/FormField.php"
click node_auth "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/AuthController.php"
click node_role_gate "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Middleware/RoleMiddleware.php"
click node_admin_dashboard "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/DashboardController.php"
click node_species_catalog "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/JenisSatwa.php"
click node_statistics "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Statistics/BirdStatisticsService.php"
click node_statistics_page "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/StatistikController.php"
click node_grid_risk "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Risk/GridRiskService.php"
click node_icao_risk "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/IcaoRiskMatrixService.php"
click node_ai_identification "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/AiIdentifikasiController.php"
click node_gemini_service "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Ai/GeminiApiService.php"
click node_weather_snapshots "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Weather/WeatherSnapshotService.php"
click node_weather_provider "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Weather/OpenMeteoProvider.php"
click node_reports "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/ReportController.php"
click node_pdf_service "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/BeritaAcaraPdfService.php"
click node_monthly_pdf "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/MonthlyLogbookPdfService.php"
click node_xlsx "https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/XlsxExportService.php"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_laporan_controller,node_report_data,node_species_details toneBlue
class node_dynamic_fields,node_auth,node_role_gate,node_admin_dashboard,node_species_catalog toneAmber
class node_statistics,node_statistics_page,node_grid_risk,node_icao_risk,node_gemini toneMint
class node_ai_identification,node_gemini_service,node_weather_snapshots,node_weather_provider toneRose
class node_reports,node_pdf_service,node_monthly_pdf,node_xlsx,node_field_staff,node_admin toneIndigo
```

## Components

### Field reporting

- [Submit report](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/LaporanController.php): `app/Http/Controllers/LaporanController.php`
- [Observation records](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/Laporan.php): `app/Models/Laporan.php`
- [Wildlife details](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/DetailSatwa.php): `app/Models/DetailSatwa.php`

### Operational management

- [Dynamic form fields](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/FormField.php): `app/Models/FormField.php`
- [Authentication](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/AuthController.php): `app/Http/Controllers/AuthController.php`
- [Role access](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Middleware/RoleMiddleware.php): `app/Http/Middleware/RoleMiddleware.php`
- [Review dashboard](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/DashboardController.php): `app/Http/Controllers/Admin/DashboardController.php`
- [Species catalog](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Models/JenisSatwa.php): `app/Models/JenisSatwa.php`

### Risk and analytics

- [Wildlife statistics](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Statistics/BirdStatisticsService.php): `app/Services/Statistics/BirdStatisticsService.php`
- [Spatial analysis](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/StatistikController.php): `app/Http/Controllers/Admin/StatistikController.php`
- [Grid risk scoring](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Risk/GridRiskService.php): `app/Services/Risk/GridRiskService.php`
- [ICAO risk assessment](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/IcaoRiskMatrixService.php): `app/Services/IcaoRiskMatrixService.php`

### AI and weather

- [Species identification](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/AiIdentifikasiController.php): `app/Http/Controllers/AiIdentifikasiController.php`
- [AI services](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Ai/GeminiApiService.php): `app/Services/Ai/GeminiApiService.php`
- [Weather snapshots](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Weather/WeatherSnapshotService.php): `app/Services/Weather/WeatherSnapshotService.php`
- [Weather provider](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/Weather/OpenMeteoProvider.php): `app/Services/Weather/OpenMeteoProvider.php`

### Reporting outputs

- [Report exports](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Http/Controllers/Admin/ReportController.php): `app/Http/Controllers/Admin/ReportController.php`
- [Formal PDF](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/BeritaAcaraPdfService.php): `app/Services/BeritaAcaraPdfService.php`
- [Monthly logbook](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/MonthlyLogbookPdfService.php): `app/Services/MonthlyLogbookPdfService.php`
- [Spreadsheet export](https://github.com/ihsannulf/wildlife-hazard-management-logbook-system-angkasapura/blob/main/app/Services/XlsxExportService.php): `app/Services/XlsxExportService.php`

### Other components

- **Field employee**
- **Admin**
- **Gemini API**

## Connections

- Field employee → Submit report: submits report (evidence: `README.md`)
- Submit report → Observation records: creates records (evidence: `app/Http/Controllers/LaporanController.php`)
- Submit report → Wildlife details: stores sightings (evidence: `app/Http/Controllers/LaporanController.php`)
- Submit report → Dynamic form fields: loads form fields (evidence: `app/Http/Controllers/LaporanController.php`)
- Submit report → Species catalog: loads species (evidence: `app/Http/Controllers/LaporanController.php`)
- Admin → Authentication: signs in (evidence: `README.md`)
- Authentication → Role access: role controls
- Admin → Review dashboard: reviews reports (evidence: `README.md`)
- Review dashboard → Observation records: reads reports (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Review dashboard → Wildlife statistics: requests metrics (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Review dashboard → Dynamic form fields: loads field config (evidence: `app/Http/Controllers/Admin/DashboardController.php`)
- Spatial analysis → Grid risk scoring: computes zones (evidence: `app/Http/Controllers/Admin/StatistikController.php`)
- Spatial analysis → Wildlife statistics: requests analysis (evidence: `app/Services/Statistics/BirdStatisticsService.php`)
- Wildlife statistics → Wildlife details: reads sightings (evidence: `app/Services/Statistics/BirdStatisticsService.php`)
- Grid risk scoring → Wildlife details: reads observations (evidence: `app/Services/Risk/GridRiskService.php`)
- Submit report → ICAO risk assessment: assesses hazard (evidence: `app/Http/Controllers/LaporanController.php`)
- Species identification → AI services: requests identification (evidence: `app/Http/Controllers/AiIdentifikasiController.php`)
- AI services → Gemini API: calls model (evidence: `app/Services/Ai/GeminiApiService.php`)
- AI services → Species catalog: matches taxonomy (evidence: `app/Services/Ai/GeminiApiService.php`)
- Weather snapshots → Weather provider: gets weather
- Report exports → Formal PDF: builds formal PDF (evidence: `app/Http/Controllers/Admin/ReportController.php`)
- Report exports → Monthly logbook: builds monthly bundle (evidence: `app/Http/Controllers/Admin/ReportController.php`)
- Report exports → Spreadsheet export: exports spreadsheet (evidence: `app/Http/Controllers/Admin/ReportController.php`)
- Formal PDF → Observation records: reads reports (evidence: `app/Services/BeritaAcaraPdfService.php`)
- Monthly logbook → Observation records: reads reports (evidence: `app/Services/MonthlyLogbookPdfService.php`)
- Spreadsheet export → Observation records: reads reports (evidence: `app/Services/XlsxExportService.php`)
