feat: Implement VM suspension feature with email notification
- Added suspend method in VCenterManagerController to handle VM suspension requests. - Introduced VmSuspendedMail for notifying customers about VM suspension. - Created email template for VM suspension notification. - Updated API routes to include VM suspend functionality. - Modified cors.php to allow additional local development URL. - Updated DatabaseSeeder to include AdminSeeder and commented out unused seeders. - Removed deprecated Livewire components related to cart, customer email history, invoices, orders, tickets, transactions, user settings, and VPS reinstall modal.
This commit is contained in:
+1
-9
@@ -45,15 +45,6 @@ use Illuminate\Support\Facades\Route;
|
||||
*/
|
||||
|
||||
Route::prefix('v1')
|
||||
->group(function () {
|
||||
Route::get('/debug-customers', function () {
|
||||
$customers = \App\Models\Customer::orderByDesc('created_at')
|
||||
->limit(5)
|
||||
->get(['id', 'uuid', 'fullname', 'email', 'total', 'created_at']);
|
||||
|
||||
return response()->json($customers);
|
||||
});
|
||||
})
|
||||
->group(function () {
|
||||
// Invoice Test — Send invoice email with PDF attachment
|
||||
Route::prefix('invoice-test')
|
||||
@@ -398,6 +389,7 @@ Route::prefix('v1')
|
||||
Route::post('vm/power-off', 'powerOff')->middleware('perm:module-vcenter.edit');
|
||||
Route::post('vm/restart', 'restart')->middleware('perm:module-vcenter.edit');
|
||||
Route::post('vm/snapshot', 'snapshot')->middleware('perm:module-vcenter.edit');
|
||||
Route::post('vm/suspend', 'suspend')->middleware('perm:module-vcenter.edit');
|
||||
Route::get('vms/powered-off', 'getPoweredOffVms')->middleware('perm:module-vcenter.view');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user