<?php

use App\Modules\HR\Reports\Controllers\HrReportsPageController;
use Illuminate\Support\Facades\Route;

Route::prefix('hr/reports')
    ->name('hr.reports.')
    ->middleware('module:hr')
    ->group(function () {
        Route::get('/', [HrReportsPageController::class, 'index'])
            ->middleware('can:employees.view')
            ->name('index');
        Route::get('/{report}', [HrReportsPageController::class, 'show'])
            ->middleware('can:employees.view')
            ->name('show');
    });
