⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.10
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
tech
/
hrplus.techlup.co.ke
/
hrplus
/
routes
/
Edit File: web.php
<?php use App\Http\Controllers\ProfileController; use Illuminate\Foundation\Application; use Illuminate\Support\Facades\Route; use Inertia\Inertia; /* |-------------------------------------------------------------------------- | 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::get('/', function () { // if (auth()->user()) return redirect()->route('dashboard'); // return view('welcome'); }); Route::get('/dashboard', function () { return redirect()->route('payroll.home'); return Inertia::render('Dashboard'); })->middleware(['auth', 'verified'])->name('dashboard'); Route::middleware('auth')->group(function () { Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit'); Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update'); Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy'); }); Route::get('/test', function () { return Inertia::render('Test'); }); Route::middleware(['auth'])->namespace('App\Http\Controllers\Modules')->group(function () { Route::resource('departments', 'DepartmentController')->names([ 'index' => 'departments.index', 'store' => 'departments.store', 'update' => 'departments.update' ]); }); Route::middleware(['auth'])->namespace('App\Http\Controllers\Modules\Payroll')->prefix('payroll')->group(function () { Route::get('/', 'ReportController@dashboardStatistics')->name('payroll.home'); Route::resource('employees', 'EmployeeController')->names([ 'index' => 'employees.index', 'store' => 'employees.store', 'update' => 'employees.update', 'destroy' => 'employees.destroy' ]); Route::get('present/employees', 'ReportController@employeesPresentToday')->name('employees.present'); Route::get('absent/employees', 'ReportController@employeesAbsentToday')->name('employees.absent'); Route::resource('attendance', 'AttendanceController')->names([ 'index' => 'attendance.index', 'store' => 'attendance.store', 'update' => 'attendance.update', 'destroy' => 'attendance.destroy', ]); Route::get('import/attendance', 'ImportController@importAttendance')->name('attendance.import'); Route::post('import/attendance', 'ImportController@storeAttendanceImport')->name('attendance.import'); Route::post('attendance/clock/{id}', 'AttendanceController@clocking')->name('attendance.clock'); Route::post('attendance/partial/update/{id}', 'AttendanceController@updatePartial')->name('attendance.partial.update'); Route::resource('allowance', 'AllowanceController')->names([ 'index' => 'allowance.index', 'store' => 'allowance.store', 'update' => 'allowance.update', 'destroy' => 'allowance.destroy', ]); Route::resource('leave/payment', 'LeavePaymentController')->names([ 'index' => 'leave.payment.index', 'store' => 'leave.payment.store', 'update' => 'leave.payment.update', 'destroy' => 'leave.payment.destroy', ]); Route::resource('leave', 'LeaveController')->names([ 'index' => 'leave.index', 'store' => 'leave.store', 'update' => 'leave.update', 'destroy' => 'leave.destroy', ]); Route::resource('advance', 'AdvanceController')->names([ 'index' => 'advance.index', 'store' => 'advance.store', 'update' => 'advance.update', 'destroy' => 'advance.destroy', ]); Route::resource('payments', 'PayrollPaymentController')->names([ 'index' => 'payroll.payments.index', 'store' => 'payroll.payments.store', 'update' => 'payroll.payments.update', 'destroy' => 'payroll.payments.destroy', ]); Route::resource('holiday', 'HolidayController')->names([ 'index' => 'holiday.index', 'store' => 'holiday.store', 'update' => 'holiday.update', 'destroy' => 'holiday.destroy', ]); Route::prefix('reports')->group(function () { Route::get('pay_slipt/{payment}', 'ReportController@showPaySlipt')->name('payroll.reports.payslip.show'); Route::any('nssf/{period}', 'ReportController@nssf')->name('payroll.reports.nssf'); Route::any('nhif/{period}', 'ReportController@nhif')->name('payroll.reports.nhif'); Route::any('paye/{period}', 'ReportController@paye')->name('payroll.reports.paye'); Route::any('h_levy/{period}', 'ReportController@hLeavy')->name('payroll.reports.h-levy'); Route::any('leave/{period}', 'ReportController@leaveReport')->name('payroll.reports.leave'); }); }); require __DIR__ . '/auth.php';
Simpan