# Department

- Module key: `Department`
- Category: `General`
- Path: `app/Modules/Department`

## Ringkasan

Department berada di kategori General. Modul ini memiliki 7 definisi route, 1 controller, 2 model, dan 1 view. Tidak ada migration khusus module yang terdeteksi; kemungkinan memakai tabel core atau hanya modul UI/utility.

## Flowchart

```mermaid
flowchart TD
    A[User / Operator] --> B[Menu Department]
    B --> C[Routes: 7]
    C --> D[Controllers: 1]
    D --> E[Views: 1]
    D --> F[(Tables: 0<br/>No module table)]
    D --> G[Validation / Business Rules]
    G --> F
    F --> H[Report / Export / Audit]
```


## Routes

- `Route::middleware(['auth', 'ip.block', 'menu.access'])->group(function () {`  
  File: `app/Modules/Department/routes/web.php`
- `Route::prefix('department')->name('department.')->group(function () {`  
  File: `app/Modules/Department/routes/web.php`
- `Route::get('data', [DepartmentController::class, 'data'])->name('data');`  
  File: `app/Modules/Department/routes/web.php`
- `Route::post('import', [DepartmentController::class, 'import'])->name('import');`  
  File: `app/Modules/Department/routes/web.php`
- `Route::get('export', [DepartmentController::class, 'export'])->name('export');`  
  File: `app/Modules/Department/routes/web.php`
- `Route::get('template', [DepartmentController::class, 'template'])->name('template');`  
  File: `app/Modules/Department/routes/web.php`
- `Route::resource('department', DepartmentController::class)->only(['index', 'store', 'update', 'destroy']);`  
  File: `app/Modules/Department/routes/web.php`

## Controllers

- `app/Modules/Department/Http/Controllers/DepartmentController.php`

## Models

- `app/Modules/Department/Models/DepartmentModels.php`
- `app/Modules/Department/Models/UserModels.php`

## Views

- `app/Modules/Department/Resources/views/index.blade.php`

## Database / Migration

- Tidak ada migration module terdeteksi.
