ajax update

This commit is contained in:
Abhishek Mali
2026-03-12 11:48:42 +05:30
parent ff4c006ca4
commit 43b1a64911
4 changed files with 100 additions and 219 deletions

View File

@@ -429,8 +429,10 @@ class AdminInvoiceController extends Controller
'grand_total_with_charges'=> $invoice->grand_total_with_charges,
]);
return redirect()
->back()
->with('success', 'Charge group saved successfully.');
return response()->json([
'success' => true,
'message' => 'Charge group saved successfully.',
'group_id' => $group->id,
]);
}
}