-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.php
80 lines (44 loc) · 3.21 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
use App\Http\Controllers\OfficerController;
use App\Http\Controllers\VisitorController;
use App\Http\Controllers\ActivityController;
Route::get('/', function () {
return view('welcome');
});
Route::get('/officer', [OfficerController::class, 'index'])->name('officer_index');
Route::post('/officer', [OfficerController::class, 'store'])->name('officer_insert');
Route::post('/editOfficer', [OfficerController::class, 'edit'])->name('update_officer');
Route::post('/getOfficerDetailByID', [OfficerController::class, 'getDetail'])->name('officer_detail');
Route::post('/toggleOfficerStatus', [OfficerController::class, 'toggleStatus'])->name('toggle_officer_status');
Route::get('/viewOfficerAppointment', [OfficerController::class, 'viewAppointment'])->name('officer_view_appointment');
// visitor related routes
Route::get('/visitor', [VisitorController::class, 'index'])->name('visitor_index');
Route::post('/visitor', [VisitorController::class, 'store'])->name('visitor_insert');
Route::post('/editVisitor', [VisitorController::class, 'edit'])->name('update_visitor');
Route::post('/getVisitorDetailByID', [VisitorController::class, 'getDetail'])->name('visitor_detail');
Route::post('/toggleVisitorStatus', [VisitorController::class, 'toggleStatus'])->name('toggle_visitor_status');
Route::get('/viewVisitorAppointment', [VisitorController::class, 'viewAppointment'])->name('visitor_view_appointment');
// activity related routes
Route::get('/activity', [ActivityController::class, 'index'])->name('activity_index');
Route::post('/activity', [ActivityController::class, 'store'])->name('activity_insert');
Route::post('/editActivity', [ActivityController::class, 'edit'])->name('activity_edit');
Route::get('/fetchActivity', [ActivityController::class, 'fetchActivity'])->name('activity_fetch');
Route::get('/filterBasedOnType', [ActivityController::class, 'filterBasedOnType'])->name('activity_filter_based_on_type');
Route::get('/filterBasedOnStatus', [ActivityController::class, 'filterBasedOnStatus'])->name('activity_filter_based_on_status');
Route::get('/filterBasedOnOfficer', [ActivityController::class, 'filterBasedOnOfficer'])->name('activity_filter_based_on_officer');
Route::get('/filterBasedOnVisitor', [ActivityController::class, 'filterBasedOnVisitor'])->name('activity_filter_based_on_visitor');
Route::get('/filterBasedOnDateRange', [ActivityController::class, 'filterBasedOnDateRange'])->name('activity_filter_based_on_date');
Route::get('/filterBasedOnTimeRange', [ActivityController::class, 'filterBasedOnTimeRange'])->name('activity_filter_based_on_time');
Route::post('/fetchActivityBasedOnID', [ActivityController::class, 'fetchActivityBasedOnID'])->name('activity_fetch_based_on_id');
Route::post('/cancelActivity', [ActivityController::class, 'cancelActivity'])->name('cancel_activity');