# akbarabe/newsigap_backend_update architecture

> Architecture diagram of the GitHub repository akbarabe/newsigap_backend_update, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akbarabe/newsigap_backend_update
- Repository: https://github.com/akbarabe/newsigap_backend_update

## Overview

Resigap B4T is a Laravel REST API for laboratory and related services, applications, payments, and document/records management. The principal workflow is service-specific application processing, followed by an offer and payment, then document generation and archiving. The graph combines README capabilities with sampled controller/model references; several service modules are represented at their exact tree paths, but their internal call paths were not sampled, so uncertain connections are omitted.

Main entry points: [`app/Models/Permohonan.php`](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Permohonan.php) (Applications), [`app/Http/Controllers/PenawaranController.php`](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/PenawaranController.php) (Offer Management), [`routes/api.php`](https://github.com/akbarabe/newsigap_backend_update/blob/main/routes/api.php) (REST API), [`app/Http/Controllers/Api/SertifikasiLsproController.php`](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/SertifikasiLsproController.php) (LSPro Certification)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and API"]
  node_api["REST API<br/>[api.php]"]
  node_auth["Authentication<br/>[AuthController.php]"]
  node_google_auth["Google OAuth"]
end

subgraph group_requests["Service Requests"]
  node_requests_api["Application APIs"]
  node_request_model[("Applications<br/>[Permohonan.php]")]
  node_testing["Testing Requests"]
  node_testing_model[("Testing Items<br/>[Pengujian.php]")]
  node_calibration[("Calibration Requests<br/>[Kalibrasi.php]")]
  node_certification["LSPro Certification"]
  node_proficiency["Proficiency Testing"]
end

subgraph group_billing["Offers and Payments"]
  node_offer_api["Offer Management"]
  node_offers[("Offers<br/>[Penawaran.php]")]
  node_payment_api["Payment API"]
  node_payment[("Payments<br/>[Payment.php]")]
  node_bni["BNI eCollection"]
end

subgraph group_records["Documents and Records"]
  node_documents["Document Generation"]
  node_document_store["Document Repository"]
  node_archive["Archive and QR<br/>[ArsipService.php]"]
end

subgraph group_shared["Shared Domain"]
  node_user["Roles and Users<br/>[User.php]"]
  node_logs["Activity Logs<br/>[LogService.php]"]
  node_log_store[("Log Records<br/>[Log.php]")]
  node_catalog[("Service Catalog<br/>[Layanan.php]")]
  node_product_catalog[("Products and Parameters<br/>[Produk.php]")]
end

node_applicant(("Applicant / Staff"))

node_applicant -->|"calls"| node_api
node_api -.->|"authenticates"| node_auth
node_api -.->|"routes requests"| node_requests_api
node_applicant -->|"signs in"| node_google_auth
node_auth -.->|"authenticates"| node_user
node_google_auth -.->|"authenticates"| node_user
node_requests_api -.->|"manages"| node_request_model
node_request_model -->|"has items"| node_testing_model
node_request_model -->|"has items"| node_calibration
node_testing -->|"updates"| node_testing_model
node_certification -->|"uses"| node_request_model
node_certification -->|"uses"| node_product_catalog
node_proficiency -->|"uses"| node_request_model
node_proficiency -->|"records activity"| node_logs
node_offer_api -->|"manages"| node_offers
node_offer_api -->|"loads applications"| node_request_model
node_offer_api -->|"requests group VA"| node_bni
node_payment_api -->|"manages"| node_payment
node_payment_api -->|"calls"| node_bni
node_payment -->|"belongs to"| node_request_model
node_documents -->|"uses"| node_document_store
node_documents -->|"reads"| node_request_model
node_archive -->|"reads"| node_request_model
node_logs -->|"writes"| node_log_store
node_catalog -->|"has applications"| node_request_model
node_product_catalog -.->|"offers service inputs"| node_applicant

click node_api "https://github.com/akbarabe/newsigap_backend_update/blob/main/routes/api.php"
click node_auth "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/AuthController.php"
click node_google_auth "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/GoogleAuthController.php"
click node_user "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/User.php"
click node_requests_api "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/PermohonanController.php"
click node_request_model "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Permohonan.php"
click node_testing "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/PengujianService.php"
click node_testing_model "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Pengujian.php"
click node_calibration "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Kalibrasi.php"
click node_certification "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/SertifikasiLsproController.php"
click node_proficiency "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/UjiProfisiensiController.php"
click node_offer_api "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/PenawaranController.php"
click node_offers "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Penawaran.php"
click node_payment_api "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/PaymentController.php"
click node_payment "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Payment.php"
click node_bni "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/BniEcollectionService.php"
click node_documents "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/DocumentService.php"
click node_document_store "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Repositories/DocumentRepository.php"
click node_archive "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/ArsipService.php"
click node_logs "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/LogService.php"
click node_log_store "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Log.php"
click node_catalog "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Layanan.php"
click node_product_catalog "https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Produk.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_api,node_auth,node_google_auth toneBlue
class node_requests_api,node_request_model,node_testing,node_testing_model,node_calibration,node_certification,node_proficiency toneAmber
class node_offer_api,node_offers,node_payment_api,node_payment,node_bni toneMint
class node_documents,node_document_store,node_archive toneRose
class node_user,node_logs,node_log_store,node_catalog,node_product_catalog,node_applicant toneIndigo
```

## Components

### Access and API

- [REST API](https://github.com/akbarabe/newsigap_backend_update/blob/main/routes/api.php): `routes/api.php`
- [Authentication](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/AuthController.php): `app/Http/Controllers/Api/AuthController.php`
- [Google OAuth](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/GoogleAuthController.php): `app/Http/Controllers/Api/GoogleAuthController.php`

### Service Requests

- [Application APIs](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/PermohonanController.php): `app/Http/Controllers/Api/PermohonanController.php`
- [Applications](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Permohonan.php): `app/Models/Permohonan.php`
- [Testing Requests](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/PengujianService.php): `app/Services/PengujianService.php`
- [Testing Items](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Pengujian.php): `app/Models/Pengujian.php`
- [Calibration Requests](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Kalibrasi.php): `app/Models/Kalibrasi.php`
- [LSPro Certification](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/SertifikasiLsproController.php): `app/Http/Controllers/Api/SertifikasiLsproController.php`
- [Proficiency Testing](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/UjiProfisiensiController.php): `app/Http/Controllers/UjiProfisiensiController.php`

### Offers and Payments

- [Offer Management](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/PenawaranController.php): `app/Http/Controllers/PenawaranController.php`
- [Offers](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Penawaran.php): `app/Models/Penawaran.php`
- [Payment API](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Http/Controllers/Api/PaymentController.php): `app/Http/Controllers/Api/PaymentController.php`
- [Payments](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Payment.php): `app/Models/Payment.php`
- [BNI eCollection](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/BniEcollectionService.php): `app/Services/BniEcollectionService.php`

### Documents and Records

- [Document Generation](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/DocumentService.php): `app/Services/DocumentService.php`
- [Document Repository](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Repositories/DocumentRepository.php): `app/Repositories/DocumentRepository.php`
- [Archive and QR](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/ArsipService.php): `app/Services/ArsipService.php`

### Shared Domain

- [Roles and Users](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/User.php): `app/Models/User.php`
- [Activity Logs](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Services/LogService.php): `app/Services/LogService.php`
- [Log Records](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Log.php): `app/Models/Log.php`
- [Service Catalog](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Layanan.php): `app/Models/Layanan.php`
- [Products and Parameters](https://github.com/akbarabe/newsigap_backend_update/blob/main/app/Models/Produk.php): `app/Models/Produk.php`

### Other components

- **Applicant / Staff**

## Connections

- Applicant / Staff → REST API: calls (evidence: `README.md`)
- REST API → Authentication: authenticates
- REST API → Application APIs: routes requests
- Applicant / Staff → Google OAuth: signs in (evidence: `README.md`)
- Authentication → Roles and Users: authenticates
- Google OAuth → Roles and Users: authenticates
- Application APIs → Applications: manages
- Applications → Testing Items: has items (evidence: `app/Models/Permohonan.php`)
- Applications → Calibration Requests: has items (evidence: `app/Models/Permohonan.php`)
- Testing Requests → Testing Items: updates (evidence: `app/Services/PengujianService.php`)
- LSPro Certification → Applications: uses (evidence: `app/Http/Controllers/Api/SertifikasiLsproController.php`)
- LSPro Certification → Products and Parameters: uses (evidence: `app/Http/Controllers/Api/SertifikasiLsproController.php`)
- Proficiency Testing → Applications: uses (evidence: `app/Http/Controllers/UjiProfisiensiController.php`)
- Proficiency Testing → Activity Logs: records activity (evidence: `app/Http/Controllers/UjiProfisiensiController.php`)
- Offer Management → Offers: manages (evidence: `app/Http/Controllers/PenawaranController.php`)
- Offer Management → Applications: loads applications (evidence: `app/Http/Controllers/PenawaranController.php`)
- Offer Management → BNI eCollection: requests group VA (evidence: `app/Http/Controllers/PenawaranController.php`)
- Payment API → Payments: manages (evidence: `app/Http/Controllers/Api/PaymentController.php`)
- Payment API → BNI eCollection: calls (evidence: `app/Http/Controllers/Api/PaymentController.php`)
- Payments → Applications: belongs to (evidence: `app/Models/Payment.php`)
- Document Generation → Document Repository: uses (evidence: `app/Services/DocumentService.php`)
- Document Generation → Applications: reads (evidence: `app/Services/DocumentService.php`)
- Archive and QR → Applications: reads (evidence: `app/Services/ArsipService.php`)
- Activity Logs → Log Records: writes (evidence: `app/Services/LogService.php`)
- Service Catalog → Applications: has applications (evidence: `app/Models/Layanan.php`)
- Products and Parameters → Applicant / Staff: offers service inputs
