27 lines
961 B
PHP
27 lines
961 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Modules\Attendance\Http\Controllers\AttendanceController;
|
|
use Modules\Attendance\Http\Controllers\ReportController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::group([], function () {
|
|
Route::post('/clock-in-out', [AttendanceController::class, 'clockInOut'])->name('attendance.clockInOut');
|
|
Route::resource('attendance', AttendanceController::class)->names('attendance');
|
|
|
|
Route::group(['prefix' => 'attendance-report'], function () {
|
|
Route::get('/monthly', [ReportController::class, 'monthly'])->name('attendanceReport.monthly');
|
|
});
|
|
|
|
});
|