- Mail campaign: mẫu nhắc gia hạn thanh toán QR, chọn dịch vụ + chu kỳ từng dòng (renewal_services) - Hosting: nhiều server Plesk cho một gói (service_plan_servers), chuyển server khi server chết - Admin xem/sửa giấy tờ định danh khách, tuỳ chọn gia hạn cho khách, nhật ký cấp phát dịch vụ - Đánh dấu mẫu email dịch vụ là non-marketing Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
25 lines
617 B
PHP
25 lines
617 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api\Admin\Customer;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Customer;
|
|
use App\Support\CustomerIdentity;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class CustomerIdentityController extends Controller
|
|
{
|
|
public function show(string $uuid): JsonResponse
|
|
{
|
|
return response()->json([
|
|
'error' => false,
|
|
'data' => CustomerIdentity::payload(Customer::where('uuid', $uuid)->firstOrFail()),
|
|
]);
|
|
}
|
|
|
|
public function image(Customer $customer, string $side)
|
|
{
|
|
return CustomerIdentity::response($customer, $side);
|
|
}
|
|
}
|