<?php

use App\Modules\Integration\Controllers\SalesOrderController;
use Illuminate\Support\Facades\Route;

Route::middleware(['web', 'auth', 'verified'])->group(function () {
    Route::prefix('integration')->name('integration.')->group(function () {
        Route::middleware('permission:sales_orders.view')->group(function () {
            Route::get('sales-orders', [SalesOrderController::class, 'index'])->name('sales-orders.index');
            Route::get('sales-orders/{salesOrder}', [SalesOrderController::class, 'show'])->name('sales-orders.show');
        });
    });
});
