feat(billing): renewals, coupons, VAT numbering, billing cycles and invoice payment tracking

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
baodev0
2026-10-19 16:37:56 +07:00
co-authored by Claude Sonnet 5.5
parent ea9a53f742
commit 25f23d541e
134 changed files with 4926 additions and 185 deletions
@@ -0,0 +1,29 @@
<?php
namespace App\Http\Controllers\Api\Admin\Customer;
use App\Http\Controllers\Controller;
use App\Http\Requests\Api\BillingProfileRequest;
use App\Models\Customer;
use App\Support\CustomerBillingProfile;
use Illuminate\Http\JsonResponse;
class CustomerBillingProfileController extends Controller
{
public function show(string $uuid): JsonResponse
{
return response()->json([
'error' => false,
'data' => CustomerBillingProfile::payload(Customer::where('uuid', $uuid)->firstOrFail()),
]);
}
public function update(BillingProfileRequest $request, string $uuid): JsonResponse
{
return response()->json([
'error' => false,
'message' => 'Đã lưu thông tin xuất hóa đơn',
'data' => CustomerBillingProfile::save(Customer::where('uuid', $uuid)->firstOrFail(), $request->validated()),
]);
}
}