feat: Implement soft deletes for customer, invoice, order, and transaction models, and add customer edit and trash management to the admin panel.
This commit is contained in:
@@ -110,6 +110,13 @@ Route::prefix('')->group(function () {
|
||||
//View All Client
|
||||
Route::prefix('customer')->controller(CustomerController::class)->group(function () {
|
||||
Route::get('list-customer', 'index')->name('customer.index');
|
||||
Route::get('edit/{id}', 'edit')->name('customer.edit');
|
||||
Route::put('edit/{id}', 'update')->name('customer.update');
|
||||
Route::delete('delete/{id}', 'destroy')->name('customer.destroy');
|
||||
Route::get('trash', 'trash')->name('customer.trash');
|
||||
Route::get('trash/datatable', 'datatableTrash')->name('customer.trash.datatable');
|
||||
Route::post('trash/restore/{id}', 'restore')->name('customer.restore');
|
||||
Route::delete('trash/force-delete/{id}', 'forceDelete')->name('customer.forceDelete');
|
||||
Route::get('datatable', 'datatable')->name('customer.datatable');
|
||||
Route::get('view-customer', 'getCustomerInfo')->name('customer.info');
|
||||
Route::get('view-profile', 'getCustomerProfile')->name('customer.profile');
|
||||
|
||||
Reference in New Issue
Block a user