feat(customers): tambahkan rute dan breadcrumb untuk manajemen pelanggan dan email blast

- Menambahkan rute untuk manajemen pelanggan dan email blast.
- Mengimplementasikan breadcrumb untuk navigasi yang lebih baik.
- Memperbarui file module.json untuk menambahkan menu baru.
This commit is contained in:
Daeng Deni Mardaeni
2025-02-18 16:34:00 +07:00
parent 29c0852fc6
commit 0d95bf33c3
4 changed files with 126 additions and 30 deletions

View File

@@ -2,18 +2,40 @@
use Illuminate\Support\Facades\Route;
use Modules\Webstatement\Http\Controllers\MigrasiController;
use Modules\Webstatement\Http\Controllers\WebstatementController;
use Modules\Webstatement\Http\Controllers\CustomerController;
use Modules\Webstatement\Http\Controllers\EmailBlastController;
/*
|--------------------------------------------------------------------------
| 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!
|
*/
|--------------------------------------------------------------------------
| 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::middleware(['auth'])->group(function () {});
Route::middleware(['auth'])->group(function () {
//Route::get('/', [WebstatementController::class, 'index'])->name('webstatement.index');
// Customer routes
Route::get('datatables', [CustomerController::class, 'dataForDatatables'])->name('customer.datatables');
Route::get('export', [CustomerController::class, 'export'])->name('customer.export');
Route::resource('customer', CustomerController::class);
Route::prefix('emailblast')->group(function () {
Route::get('/', [EmailBlastController::class, 'index'])->name('emailblast.index');
Route::get('/create', [EmailBlastController::class, 'create'])->name('emailblast.create');
Route::post('/', [EmailBlastController::class, 'store'])->name('emailblast.store');
Route::get('/{id}/view', [EmailBlastController::class, 'view'])->name('emailblast.view');
Route::get('/datatables', [EmailBlastController::class, 'datatables'])->name('emailblast.datatables');
});
});
Route::get('migrasi', [MigrasiController::class, 'index'])->name('migrasi.index');
Route::get('/stmt-entries/{accountNumber}', [MigrasiController::class, 'getStmtEntryByAccount']);