feat: Add customer notes functionality and enhance invoice/order models with date fields

This commit is contained in:
baodev0
2026-07-25 11:05:34 +07:00
parent cd61e1d242
commit 4daf52ef3e
9 changed files with 378 additions and 1 deletions
+15
View File
@@ -132,9 +132,24 @@ Route::prefix('v1')
'perm:customer.edit',
);
Route::put('{uuid}/services/{serviceId}', 'updateService')->middleware('perm:customer.edit');
Route::get('{uuid}/notes', 'getCustomerNotes')->middleware('perm:customer.view');
Route::post('{uuid}/notes', 'storeCustomerNote')->middleware('perm:customer.edit');
Route::delete('{uuid}/notes/{noteId}', 'destroyCustomerNote')->middleware('perm:customer.edit');
Route::get('{uuid}/services/{serviceId}/notes', 'getServiceNotes')->middleware('perm:customer.view');
Route::post('{uuid}/services/{serviceId}/notes', 'storeServiceNote')->middleware('perm:customer.edit');
Route::delete('{uuid}/services/{serviceId}/notes/{noteId}', 'destroyServiceNote')->middleware(
'perm:customer.edit',
);
Route::get('{uuid}/orders', 'getOrders')->middleware('perm:customer.view');
Route::put('{uuid}/orders/{orderId}', 'updateOrder')->middleware('perm:customer.edit');
Route::get('{uuid}/invoices', 'getInvoices')->middleware('perm:customer.view');
Route::put('{uuid}/invoices/{invoiceId}', 'updateInvoice')->middleware(
'perm:customer.edit',
);
Route::get('{uuid}/transactions', 'getTransactions')->middleware('perm:customer.view');
Route::put('{uuid}/transactions/{transactionId}', 'updateTransaction')->middleware(
'perm:customer.edit',
);
Route::get('{uuid}/domains', 'getDomains')->middleware('perm:customer.view');
Route::get('{uuid}/dns-domains', 'getDnsDomains')->middleware('perm:customer.view');
Route::get('{uuid}/dns-domains/{domainId}/records', 'getDnsDomainRecords')->middleware(