# Master Gudang

- Module key: `MasterGudang`
- Category: `Project/Logistik`
- Path: `app/Modules/MasterGudang`

## Ringkasan

Master Gudang berada di kategori Project/Logistik. Modul ini memiliki 7 definisi route, 1 controller, 1 model, dan 1 view. Database module terdeteksi pada tabel: `master_gudangs`.

## Flowchart

```mermaid
flowchart TD
    A[User / Operator] --> B[Menu Master Gudang]
    B --> C[Routes: 7]
    C --> D[Controllers: 1]
    D --> E[Views: 1]
    D --> F[(Tables: 1<br/>master_gudangs)]
    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/MasterGudang/routes/web.php`
- `Route::prefix('master-gudang')->name('master_gudang.')->group(function () {`  
  File: `app/Modules/MasterGudang/routes/web.php`
- `Route::get('/', [MasterGudangController::class, 'index'])->name('index');`  
  File: `app/Modules/MasterGudang/routes/web.php`
- `Route::get('data', [MasterGudangController::class, 'data'])->name('data');`  
  File: `app/Modules/MasterGudang/routes/web.php`
- `Route::post('/', [MasterGudangController::class, 'store'])->name('store');`  
  File: `app/Modules/MasterGudang/routes/web.php`
- `Route::put('{id}', [MasterGudangController::class, 'update'])->name('update');`  
  File: `app/Modules/MasterGudang/routes/web.php`
- `Route::delete('{id}', [MasterGudangController::class, 'destroy'])->name('destroy');`  
  File: `app/Modules/MasterGudang/routes/web.php`

## Controllers

- `app/Modules/MasterGudang/Http/Controllers/MasterGudangController.php`

## Models

- `app/Modules/MasterGudang/Models/GudangModel.php`

## Views

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

## Database / Migration

### `master_gudangs`
- Actions: `create`
- Columns: 6
  - `code:string`
  - `name:string`
  - `warehouse_type:enum`
  - `address:string`
  - `description:text`
  - `is_active:boolean`
- Migrations:
  - `app/Modules/MasterGudang/Database/migrations/2026_02_24_100000_create_master_gudangs_table.php`
