Skip to content

Commit

Permalink
add attendance master controller
Browse files Browse the repository at this point in the history
  • Loading branch information
farahamaliaa committed Jul 16, 2024
1 parent 019d43b commit 34ea503
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
23 changes: 23 additions & 0 deletions app/Http/Controllers/AttendanceMasterController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace App\Http\Controllers;

use App\Contracts\Interfaces\ModelHasRfidInterface;
use Illuminate\Http\Request;

class AttendanceMasterController extends Controller
{
private ModelHasRfidInterface $modelHasRfid;

public function __construct(ModelHasRfidInterface $modelHasRfid) {
$this->modelHasRfid = $modelHasRfid;
}

public function index() {
return view('school.pages.test.attendance');
}

public function check(Request $request) {

}
}
5 changes: 2 additions & 3 deletions routes/role/school.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use App\Http\Controllers\AttendanceController;
use App\Http\Controllers\AttendanceMasterController;
use App\Http\Controllers\AttendanceRuleController;
use App\Http\Controllers\ClassroomController;
use App\Http\Controllers\ClassroomStudentController;
Expand Down Expand Up @@ -153,9 +154,7 @@
Route::put('school/{classroom}', [ClassroomStudentController::class, 'update'])->name('classroom.update');

//tes absensi
Route::get('attendance-test', function () {
return view('school.pages.test.attendance');
})->name('attendance-test.index');
Route::get('menu-test', function () {
return view('school.pages.test.menu');
})->name('menu-test.index');
Route::get('attendance-test', [AttendanceMasterController::class, 'index'])->name('attendance-test.index');

0 comments on commit 34ea503

Please sign in to comment.