Siopas Inventory PETI for ISTW Website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

240 lines
12 KiB

1 year ago
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PetiController;
1 year ago
use App\Http\Controllers\RoleController;
use App\Http\Controllers\M_userController;
use App\Http\Controllers\HistoryController;
1 year ago
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\CustomerController;
use App\Http\Controllers\DisposalController;
use App\Http\Controllers\TransferController;
use App\Http\Controllers\TypePetiController;
use App\Http\Controllers\WarehouseController;
1 year ago
use App\Http\Controllers\PeminjamanController;
1 year ago
use App\Http\Controllers\Report\StokOpNameController;
1 year ago
use App\Http\Controllers\KondisiPetiController;
use App\Http\Controllers\RecycleDataController;
1 year ago
use App\Http\Controllers\PengembalianController;
1 year ago
use App\Http\Controllers\Report\PetternLotPetiController;
use App\Http\Controllers\Report\ReportCustomerController;
use App\Http\Controllers\Report\ReportKondisiPetiController;
use App\Http\Controllers\Report\ReportTipePetiController;
use App\Http\Controllers\Report\ReportWarehouseController;
use App\Http\Controllers\TransaksiKeluarMasukController;
1 year ago
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/
Route::redirect('/', '/login');
1 year ago
Route::get('/redirect', [\App\Http\Controllers\Auth\RedirectAuthController::class, 'redirectAuth'])->name('redirect')->middleware('auth');
1 year ago
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');
1 year ago
Route::put('/profile/{id}', [ProfileController::class, 'updateprofile'])->name('profile.updateprofile');
1 year ago
Route::get('/setting', [ProfileController::class, 'setting'])->name('profile.setting');
1 year ago
});
1 year ago
Route::prefix('dashboard')->name('dashboard.')->middleware(['auth'])->group(function () {
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home.admin');
1 year ago
Route::get('/home/navbarList', [App\Http\Controllers\HomeController::class, 'notification'])->name('navbarList.notification');
Route::get('/homeuser', [App\Http\Controllers\HomeController::class, 'indexUser'])->name('home.user');
1 year ago
1 year ago
//Halaman Peminjaman
1 year ago
Route::controller(PeminjamanController::class)->group(function () {
Route::get('peminjaman', 'index')->name('peminjaman.index');
Route::get('peminjaman/create', 'create')->name('peminjaman.create');
1 year ago
Route::post('peminjaman/store', 'store')->name('peminjaman.store');
Route::get('peminjaman/{id}/edit', 'edit')->name('peminjaman.edit');
1 year ago
Route::put('peminjaman/{id}', 'update')->name('peminjaman.update');
Route::delete('peminjaman/delete/{id}', 'destroy')->name('peminjaman.destroy');
Route::get('peminjaman/{id}/pengembalian', 'pengembalian')->name('peminjaman.pengembalian');
Route::get('peminjaman/Search', 'autoCompleteSearch')->name('peminjaman.autoCompleteSearch');
1 year ago
});
1 year ago
1 year ago
//Halaman Pengembalian
Route::controller(PengembalianController::class)->group(function () {
Route::get('pengembalian', 'index')->name('pengembalian.index');
Route::get('pengembalian/create', 'create')->name('pengembalian.create');
Route::post('pengembalian/store', 'store')->name('pengembalian.store');
Route::get('pengembalian/{id}', 'show')->name('pengembalian.show');
Route::get('pengembalian/{id}/edit', 'edit')->name('pengembalian.edit');
Route::put('pengembalian/{id}', 'update')->name('pengembalian.update');
Route::delete('pengembalian/delete/{id}', 'destroy')->name('pengembalian.destroy');
});
1 year ago
// tidak di pakai
// Route::controller(TransaksiKeluarMasukController::class)->group(function () {
// Route::get('transaksikeluamasuk', 'index')->name('transaksikeluamasuk.index');
// Route::get('transaksikeluamasuk/create', 'create')->name('transaksikeluamasuk.create');
// Route::post('transaksikeluamasuk/store', 'store')->name('transaksikeluamasuk.store');
// Route::get('transaksikeluamasuk/{id}', 'show')->name('transaksikeluamasuk.show');
// Route::get('transaksikeluamasuk/{id}/edit', 'edit')->name('transaksikeluamasuk.edit');
// Route::put('transaksikeluamasuk/{id}', 'update')->name('transaksikeluamasuk.update');
// Route::delete('transaksikeluamasuk/delete/{id}', 'destroy')->name('transaksikeluamasuk.destroy');
// });
1 year ago
//Halaman Transfer
Route::controller(TransferController::class)->group(function () {
Route::get('transfer', 'index')->name('transfer.index');
Route::get('transfer/create', 'create')->name('transfer.create');
Route::post('transfer/store', 'store')->name('transfer.store');
Route::get('transfer/{id}/edit', 'edit')->name('transfer.edit');
Route::put('transfer/{id}', 'update')->name('transfer.update');
Route::delete('transfer/delete/{id}', 'destroy')->name('transfer.destroy');
Route::get('transfer/Search', 'autoCompleteSearch')->name('transfer.autoCompleteSearch');
});
//Halaman Disposal
Route::controller(DisposalController::class)->group(function () {
Route::get('disposal', 'index')->name('disposal.index');
Route::get('disposal/create', 'create')->name('disposal.create');
Route::post('disposal/store', 'store')->name('disposal.store');
Route::get('disposal/{id}/edit', 'edit')->name('disposal.edit');
Route::put('disposal/{id}', 'update')->name('disposal.update');
Route::delete('disposal/delete/{id}', 'destroy')->name('disposal.destroy');
Route::get('disposal/Search', 'autoCompleteSearch')->name('disposal.autoCompleteSearch');
});
//Halaman History
Route::controller(HistoryController::class)->group(function () {
Route::get('history/peminjaman', 'historyPeminjaman')->name('history.historyPeminjaman');
Route::get('history/pengembalian', 'historyPengembalian')->name('history.historyPengembalian');
Route::get('history/transfer', 'historyTransfer')->name('history.historyTransfer');
});
1 year ago
//Halaman User
Route::controller(M_userController::class)->group(function () {
Route::get('user', 'index')->name('user.index');
Route::get('user/create', 'create')->name('user.create');
Route::post('user/store', 'store')->name('user.store');
Route::get('user/{id}', 'show')->name('user.show');
Route::get('user/{id}/edit', 'edit')->name('user.edit');
Route::put('user/{id}', 'update')->name('user.update');
Route::delete('user/delete/{id}', 'destroy')->name('user.destroy');
});
//Halaman Role
Route::controller(RoleController::class)->group(function () {
Route::get('role', 'index')->name('role.index');
Route::post('role/store', 'store')->name('role.store');
Route::put('role/{id}', 'update')->name('role.update');
Route::delete('role/delete/{id}', 'destroy')->name('role.destroy');
});
//Halaman Customer
Route::controller(CustomerController::class)->group(function () {
Route::get('customer', 'index')->name('customer.index');
Route::get('customer/create', 'create')->name('customer.create');
Route::post('customer/store', 'store')->name('customer.store');
Route::get('customer/{id}', 'show')->name('customer.show');
Route::get('customer/{id}/edit', 'edit')->name('customer.edit');
Route::put('customer/{id}', 'update')->name('customer.update');
Route::delete('customer/delete/{id}', 'destroy')->name('customer.destroy');
Route::post('customers/import', 'importCustomer')->name('customer.import');
});
//Halaman Kondisi Peti
1 year ago
Route::controller(KondisiPetiController::class)->group(function () {
Route::get('kondisipeti', 'index')->name('kondisipeti.index');
Route::post('kondisipeti/store', 'store')->name('kondisipeti.store');
Route::put('kondisipeti/{id}', 'update')->name('kondisipeti.update');
Route::delete('kondisipeti/delete/{id}', 'destroy')->name('kondisipeti.destroy');
1 year ago
Route::post('kondisipeti/import', 'importKondisiPeti')->name('kondisipeti.import');
1 year ago
});
//Halaman Type Peti
Route::controller(TypePetiController::class)->group(function () {
Route::get('typepeti', 'index')->name('typepeti.index');
Route::get('typepeti/create', 'create')->name('typepeti.create');
Route::post('typepeti/store', 'store')->name('typepeti.store');
Route::get('typepeti/{id}', 'show')->name('typepeti.show');
Route::get('typepeti/{id}/edit', 'edit')->name('typepeti.edit');
Route::put('typepeti/{id}', 'update')->name('typepeti.update');
Route::delete('typepeti/delete/{id}', 'destroy')->name('typepeti.destroy');
1 year ago
Route::post('typepeti/import', 'importTipePeti')->name('typepeti.import');
});
//Halaman Peti
Route::controller(PetiController::class)->group(function () {
Route::get('peti', 'index')->name('peti.index');
Route::get('peti/create', 'create')->name('peti.create');
Route::post('peti/store', 'store')->name('peti.store');
Route::get('peti/{id}', 'show')->name('peti.show');
Route::get('peti/{id}/edit', 'edit')->name('peti.edit');
Route::put('peti/{id}', 'update')->name('peti.update');
Route::delete('peti/delete/{id}', 'destroy')->name('peti.destroy');
Route::get('peticetak_pdf/{id}', 'cetakPdf')->name('peticetakpdf.cetakpdf');
Route::get('all-cetak/peti', 'AllPdf')->name('all-pdf.cetakpdf');
1 year ago
Route::post('peti/import', 'importPeti')->name('peti.import');
Route::post('peti/delete-selected', 'deleteSelected')->name('peti.delete-selected');
});
1 year ago
1 year ago
//Halaman Warehouse
Route::controller(WarehouseController::class)->group(function () {
Route::get('warehouse', 'index')->name('warehouse.index');
Route::post('warehouse/store', 'store')->name('warehouse.store');
Route::put('warehouse/{id}', 'update')->name('warehouse.update');
Route::delete('warehouse/delete/{id}', 'destroy')->name('warehouse.destroy');
1 year ago
Route::post('warehouse/import', 'importWarehouse')->name('warehouse.import');
1 year ago
});
//halaman Report Peti
1 year ago
Route::controller(PetternLotPetiController::class)->group(function () {
Route::get('Pettern_Lot_Peti/export', 'export')->name('Pettern_Lot_Peti.export');
1 year ago
Route::get('Pettern_Lot_Peti', 'index')->name('Pettern_Lot_Peti.index');
Route::get('Pettern_Lot_Peti/{id}', 'show')->name('Pettern_Lot_Peti.show');
1 year ago
});
//halaman Report Stok
Route::controller(StokOpNameController::class)->group(function () {
Route::get('StokOpname/export', 'export')->name('StokOpname.export');
Route::get('StokOpname', 'index')->name('StokOpname.index');
});
1 year ago
//halaman Report Customer
Route::controller(ReportCustomerController::class)->group(function () {
Route::get('ReportCustomer/export', 'export')->name('ReportCustomer.export');
Route::get('ReportCustomer', 'index')->name('ReportCustomer.index');
});
//halaman Report Customer
Route::controller(ReportWarehouseController::class)->group(function () {
Route::get('ReportWarehouse/export', 'export')->name('ReportWarehouse.export');
Route::get('ReportWarehouse', 'index')->name('ReportWarehouse.index');
});
//halaman Report Tipe Peti
Route::controller(ReportTipePetiController::class)->group(function () {
Route::get('ReportTipePeti/export', 'export')->name('ReportTipePeti.export');
Route::get('ReportTipePeti', 'index')->name('ReportTipePeti.index');
});
//halaman Report Kondisi Peti
Route::controller(ReportKondisiPetiController::class)->group(function () {
Route::get('ReportKondisiPeti/export', 'export')->name('ReportKondisiPeti.export');
Route::get('ReportKondisiPeti', 'index')->name('ReportKondisiPeti.index');
});
1 year ago
});
1 year ago
1 year ago
require __DIR__ . '/auth.php';