Refactor order payment process and enhance invoice details

- Updated `payOrder` method in `OrderControllerRefactor` to accept `orderNum` instead of `id` for better clarity and functionality.
- Implemented `findByOrderNum` method in `OrderRepository` to retrieve orders based on order number and customer ID.
- Enhanced `InvoiceDetailResource` to include VMware details and removed unnecessary fields.
- Added `service_plan_id` to `ProductResource` and updated the `Product` model to establish a relationship with `ServicePlan`.
- Created `ServicePlan` and `ServicePlanPlesk` models along with their respective controllers and migrations for managing hosting service plans.
- Updated API routes to include endpoints for managing service plans.
- Modified email templates to standardize support phone number across various customer communications.
This commit is contained in:
baodev0
2026-08-11 10:12:25 +07:00
parent e3d3dea8aa
commit 7314313198
26 changed files with 329 additions and 32 deletions
@@ -0,0 +1,119 @@
<?php
namespace App\Http\Controllers\Api\Admin\Hosting;
use App\Http\Controllers\Controller;
use App\Models\ServicePlan;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
class ServicePlanController extends Controller
{
public function index(): JsonResponse
{
$plans = ServicePlan::with('plesk')->orderBy('title')->get();
return response()->json(['error' => false, 'data' => $plans]);
}
public function show(int $id): JsonResponse
{
$plan = ServicePlan::with('plesk')->find($id);
if (!$plan) {
return response()->json(['error' => true, 'message' => 'Không tìm thấy gói hosting.'], 404);
}
return response()->json(['error' => false, 'data' => $plan]);
}
public function store(Request $request): JsonResponse
{
$validated = $request->validate([
'title' => 'required|string|max:255',
'vcpu' => 'required|integer|min:0',
'ram' => 'required|integer|min:0',
'disk' => 'required|integer|min:0',
'domain' => 'required|integer|min:0',
'plesk_plan_name' => 'nullable|string|max:255',
'note' => 'nullable|string',
]);
$plan = ServicePlan::create([
'title' => $validated['title'],
'vcpu' => $validated['vcpu'],
'ram' => $validated['ram'],
'disk' => $validated['disk'],
'domain' => $validated['domain'],
]);
$this->savePlesk($plan, $validated);
return response()->json([
'error' => false,
'message' => 'Tạo gói hosting thành công.',
'data' => $plan->load('plesk'),
], 201);
}
public function update(Request $request, int $id): JsonResponse
{
$plan = ServicePlan::find($id);
if (!$plan) {
return response()->json(['error' => true, 'message' => 'Không tìm thấy gói hosting.'], 404);
}
$validated = $request->validate([
'title' => 'required|string|max:255',
'vcpu' => 'required|integer|min:0',
'ram' => 'required|integer|min:0',
'disk' => 'required|integer|min:0',
'domain' => 'required|integer|min:0',
'plesk_plan_name' => 'nullable|string|max:255',
'note' => 'nullable|string',
]);
$plan->update([
'title' => $validated['title'],
'vcpu' => $validated['vcpu'],
'ram' => $validated['ram'],
'disk' => $validated['disk'],
'domain' => $validated['domain'],
]);
$this->savePlesk($plan, $validated);
return response()->json([
'error' => false,
'message' => 'Cập nhật gói hosting thành công.',
'data' => $plan->fresh('plesk'),
]);
}
public function destroy(int $id): JsonResponse
{
$plan = ServicePlan::find($id);
if (!$plan) {
return response()->json(['error' => true, 'message' => 'Không tìm thấy gói hosting.'], 404);
}
$plan->delete();
return response()->json(['error' => false, 'message' => 'Xoá gói hosting thành công.']);
}
private function savePlesk(ServicePlan $plan, array $data): void
{
if (empty($data['plesk_plan_name'])) {
$plan->plesk()->delete();
return;
}
$plan->plesk()->updateOrCreate(
['service_plan_id' => $plan->id],
['plesk_plan_name' => $data['plesk_plan_name'], 'note' => $data['note'] ?? null]
);
}
}
@@ -62,6 +62,7 @@ class ProductController extends Controller
$validated = $request->validate([ $validated = $request->validate([
'name' => 'required|string|max:255', 'name' => 'required|string|max:255',
'product_categories_id' => 'nullable|integer|exists:product_categories,id', 'product_categories_id' => 'nullable|integer|exists:product_categories,id',
'service_plan_id' => 'nullable|integer|exists:service_plans,id',
'product_type' => 'nullable|string', 'product_type' => 'nullable|string',
'category' => 'nullable|string|max:255', 'category' => 'nullable|string|max:255',
'thumbnail' => 'nullable|string|max:2048', 'thumbnail' => 'nullable|string|max:2048',
@@ -93,6 +94,7 @@ class ProductController extends Controller
'name' => $validated['name'], 'name' => $validated['name'],
'slug' => Str::slug($validated['name']), 'slug' => Str::slug($validated['name']),
'product_categories_id' => $validated['product_categories_id'] ?? null, 'product_categories_id' => $validated['product_categories_id'] ?? null,
'service_plan_id' => $validated['service_plan_id'] ?? null,
'product_type' => $productType, 'product_type' => $productType,
'thumbnail' => ($validated['thumbnail'] ?? null) ?: null, 'thumbnail' => ($validated['thumbnail'] ?? null) ?: null,
'is_active' => $validated['is_active'] ?? true, 'is_active' => $validated['is_active'] ?? true,
@@ -124,6 +126,7 @@ class ProductController extends Controller
$validated = $request->validate([ $validated = $request->validate([
'name' => 'sometimes|required|string|max:255', 'name' => 'sometimes|required|string|max:255',
'product_categories_id' => 'nullable|integer|exists:product_categories,id', 'product_categories_id' => 'nullable|integer|exists:product_categories,id',
'service_plan_id' => 'nullable|integer|exists:service_plans,id',
'product_type' => 'nullable|string', 'product_type' => 'nullable|string',
'thumbnail' => 'nullable|string|max:2048', 'thumbnail' => 'nullable|string|max:2048',
'is_active' => 'boolean', 'is_active' => 'boolean',
@@ -105,18 +105,14 @@ class OrderControllerRefactor extends Controller
} }
} }
public function payOrder(int $id, PayOrderRequest $request): JsonResponse public function payOrder(string $orderNum, PayOrderRequest $request): JsonResponse
{ {
$order = $this->orderRepository->find($id); $order = $this->orderRepository->findByOrderNum($orderNum, (int) $request->user()->id);
if (! $order) { if (! $order) {
return response()->json(['success' => false, 'message' => 'Đơn hàng không tồn tại.'], 404); return response()->json(['success' => false, 'message' => 'Đơn hàng không tồn tại.'], 404);
} }
if ($order->customer_id !== $request->user()->id) {
return response()->json(['success' => false, 'message' => 'Không có quyền truy cập.'], 403);
}
$this->orderService->pay($order, $request->payment_method); $this->orderService->pay($order, $request->payment_method);
$this->activityLogger->log( $this->activityLogger->log(
@@ -180,6 +176,8 @@ class OrderControllerRefactor extends Controller
return response()->json(['success' => false, 'message' => 'Hóa đơn không tồn tại.'], 404); return response()->json(['success' => false, 'message' => 'Hóa đơn không tồn tại.'], 404);
} }
$order->load('vmWare.os.osGroup', 'vmWare.virtualMachine', 'vmWare.service');
return response()->json(['success' => true, 'data' => new InvoiceDetailResource($order->invoice->setRelation('order', $order))]); return response()->json(['success' => true, 'data' => new InvoiceDetailResource($order->invoice->setRelation('order', $order))]);
} }
@@ -27,6 +27,7 @@ class ProductResource extends JsonResource
'page_type' => $this->resolvePageType($this->product_type), 'page_type' => $this->resolvePageType($this->product_type),
'product_categories_id' => $this->whenLoaded('category', fn() => $this->category?->id), 'product_categories_id' => $this->whenLoaded('category', fn() => $this->category?->id),
'category' => $this->whenLoaded('category', fn() => $this->category?->name), 'category' => $this->whenLoaded('category', fn() => $this->category?->name),
'service_plan_id' => $this->service_plan_id,
'cpu' => $this->cpu, 'cpu' => $this->cpu,
'ram' => $this->ram, 'ram' => $this->ram,
'disk' => $this->disk, 'disk' => $this->disk,
@@ -13,7 +13,6 @@ class InvoiceDetailResource extends JsonResource
public function toArray(Request $request): array public function toArray(Request $request): array
{ {
return [ return [
'id' => $this->id,
'invoice_number' => $this->invoice_number, 'invoice_number' => $this->invoice_number,
'invoice_type' => $this->invoice_type, 'invoice_type' => $this->invoice_type,
'status' => $this->status, 'status' => $this->status,
@@ -28,18 +27,15 @@ class InvoiceDetailResource extends JsonResource
'due_date' => $this->due_date?->toISOString(), 'due_date' => $this->due_date?->toISOString(),
'paid_at' => $this->paid_at?->toISOString(), 'paid_at' => $this->paid_at?->toISOString(),
'customer' => $this->whenLoaded('customer', fn () => [ 'customer' => $this->whenLoaded('customer', fn () => [
'id' => $this->customer->id,
'name' => $this->customer->fullname, 'name' => $this->customer->fullname,
'email' => $this->customer->email, 'email' => $this->customer->email,
'address' => $this->customer->address, 'address' => $this->customer->address,
]), ]),
'order' => $this->whenLoaded('order', fn () => [ 'order' => $this->whenLoaded('order', fn () => [
'id' => $this->order->id,
'order_num' => $this->order->order_num, 'order_num' => $this->order->order_num,
'total' => (float) $this->order->total, 'total' => (float) $this->order->total,
]), ]),
'items' => $this->whenLoaded('order', fn () => $this->order->orderItems->map(fn ($item) => [ 'items' => $this->whenLoaded('order', fn () => $this->order->orderItems->map(fn ($item) => [
'id' => $item->id,
'product_name' => $item->product?->name, 'product_name' => $item->product?->name,
'server_name' => $item->server_name, 'server_name' => $item->server_name,
'billing_cycle' => $item->billing_cycle, 'billing_cycle' => $item->billing_cycle,
@@ -48,11 +44,36 @@ class InvoiceDetailResource extends JsonResource
'os_id' => $item->os_id, 'os_id' => $item->os_id,
])->values()->all()), ])->values()->all()),
'attachments' => $this->whenLoaded('attachments', fn () => $this->attachments->map(fn ($a) => [ 'attachments' => $this->whenLoaded('attachments', fn () => $this->attachments->map(fn ($a) => [
'id' => $a->id,
'filename' => $a->filename, 'filename' => $a->filename,
'url' => $a->url, 'url' => $a->url,
'mime_type' => $a->mime_type, 'mime_type' => $a->mime_type,
])->all()), ])->all()),
'vmware' => $this->when(
$this->order?->relationLoaded('vmWare') && $this->order->vmWare->isNotEmpty(),
fn () => $this->resolveVmware($this->order->vmWare->first()),
),
];
}
private function resolveVmware(\App\Models\ModuleVmware $vm): array
{
return [
'id' => $vm->id,
'uuid' => $vm->service?->uuid,
'name' => $vm->name,
'hostname' => $vm->hostname,
'ip_address' => $vm->ip,
'os_name' => $vm->os?->name,
'status' => $vm->status,
'username' => $vm->user,
'port' => $vm->port,
'power_state' => match ($vm->virtualMachine?->power_state) {
'POWERED_ON' => 'poweredOn',
'POWERED_OFF' => 'poweredOff',
'SUSPENDED' => 'suspended',
default => null,
},
'next_due_date' => $vm->next_due_date ? \Illuminate\Support\Carbon::createFromTimestamp($vm->next_due_date)->toISOString() : null,
]; ];
} }
} }
+4
View File
@@ -70,6 +70,10 @@ class ModuleVmware extends Model
{ {
return $this->belongsTo(\App\Models\Order::class); return $this->belongsTo(\App\Models\Order::class);
} }
public function virtualMachine()
{
return $this->hasOne(\App\Models\VirtualMachines::class, 'vm_id', 'vmware_id');
}
public function services() public function services()
{ {
+6
View File
@@ -34,6 +34,7 @@ class Product extends Model
'is_active', 'is_active',
'sort_order', 'sort_order',
'product_categories_id', 'product_categories_id',
'service_plan_id',
'module_ip_address', 'module_ip_address',
'module_host_id', 'module_host_id',
'module_datastore_id', 'module_datastore_id',
@@ -70,6 +71,11 @@ class Product extends Model
return $this->belongsTo(ProductCategories::class, 'product_categories_id'); return $this->belongsTo(ProductCategories::class, 'product_categories_id');
} }
public function servicePlan()
{
return $this->belongsTo(ServicePlan::class);
}
/** /**
* Relationship: Product has many OS versions (pivot table: os_product) * Relationship: Product has many OS versions (pivot table: os_product)
*/ */
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ServicePlan extends Model
{
protected $fillable = [
'title',
'vcpu',
'ram',
'disk',
'domain',
];
public function plesk()
{
return $this->hasOne(ServicePlanPlesk::class);
}
}
+21
View File
@@ -0,0 +1,21 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class ServicePlanPlesk extends Model
{
protected $table = 'service_plan_plesk';
protected $fillable = [
'service_plan_id',
'plesk_plan_name',
'note',
];
public function servicePlan()
{
return $this->belongsTo(ServicePlan::class);
}
}
@@ -61,6 +61,15 @@ class OrderRepository extends BaseApiRepository implements OrderRepositoryInterf
return $this->model->where('customer_id', $customerId)->where('status', OrderStatus::PENDING->value)->exists(); return $this->model->where('customer_id', $customerId)->where('status', OrderStatus::PENDING->value)->exists();
} }
// -------------------------------------------------------------------------
// findByOrderNum
// -------------------------------------------------------------------------
public function findByOrderNum(string $orderNum, int $customerId): ?Order
{
return $this->model->where('order_num', $orderNum)->where('customer_id', $customerId)->first();
}
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
// getOrders // getOrders
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
@@ -29,4 +29,9 @@ interface OrderRepositoryInterface extends BaseRepositoryInterface
* Paginated order list for a customer, with optional filters. * Paginated order list for a customer, with optional filters.
*/ */
public function getOrders(int $customerId, array $filters): LengthAwarePaginator; public function getOrders(int $customerId, array $filters): LengthAwarePaginator;
/**
* Find an order by order_num, scoped to the owning customer.
*/
public function findByOrderNum(string $orderNum, int $customerId): ?Order;
} }
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('service_plans', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->unsignedInteger('vcpu');
$table->unsignedInteger('ram');
$table->unsignedInteger('disk');
$table->unsignedInteger('domain');
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('service_plans');
}
};
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('service_plan_plesk', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('service_plan_id')->unique();
$table->string('plesk_plan_name');
$table->text('note')->nullable();
$table->timestamps();
$table->foreign('service_plan_id')->references('id')->on('service_plans')->onDelete('cascade');
});
}
public function down(): void
{
Schema::dropIfExists('service_plan_plesk');
}
};
@@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('products', function (Blueprint $table) {
$table->unsignedBigInteger('service_plan_id')->nullable()->after('product_categories_id');
$table->foreign('service_plan_id')->references('id')->on('service_plans')->nullOnDelete();
});
}
public function down(): void
{
Schema::table('products', function (Blueprint $table) {
$table->dropForeign(['service_plan_id']);
$table->dropColumn('service_plan_id');
});
}
};
@@ -2,7 +2,7 @@
$heroImage = $heroImage ?? 'https://client.tgs.com.vn/index.php?rp=/images/em/368_30.4-CP.png'; $heroImage = $heroImage ?? 'https://client.tgs.com.vn/index.php?rp=/images/em/368_30.4-CP.png';
$ticketUrl = $ticketUrl ?? 'https://client.tgs.com.vn/submitticket.php?step=2&deptid=5'; $ticketUrl = $ticketUrl ?? 'https://client.tgs.com.vn/submitticket.php?step=2&deptid=5';
$supportEmail = $supportEmail ?? 'Support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'Support@tgs.com.vn';
$hotline = $hotline ?? '1900. 6119'; $hotline = $hotline ?? '(028) 7309. 7379';
$holidayName = $holidayName ?? 'ngày Giải phóng miền Nam 30/4 và ngày Quốc tế Lao động 1/5'; $holidayName = $holidayName ?? 'ngày Giải phóng miền Nam 30/4 và ngày Quốc tế Lao động 1/5';
$holidayFrom = $holidayFrom ?? 'Thứ Năm, ngày 30/04/2026'; $holidayFrom = $holidayFrom ?? 'Thứ Năm, ngày 30/04/2026';
$holidayTo = $holidayTo ?? 'Thứ Hai, ngày 04/05/2026'; $holidayTo = $holidayTo ?? 'Thứ Hai, ngày 04/05/2026';
@@ -150,7 +150,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $hotline }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $hotline }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:support@tgs.com.vn">Support@tgs.com.vn</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:support@tgs.com.vn">Support@tgs.com.vn</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -11,7 +11,7 @@
$pleskPanelUrl = $pleskPanelUrl ?? ''; $pleskPanelUrl = $pleskPanelUrl ?? '';
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap'; $loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -196,7 +196,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -5,7 +5,7 @@
$password = $password ?? ''; $password = $password ?? '';
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap'; $loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -153,7 +153,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -7,7 +7,7 @@
$actionAt = $actionAt ?? now()->format('d/m/Y H:i:s'); $actionAt = $actionAt ?? now()->format('d/m/Y H:i:s');
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap'; $loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
$actionLabels = [ $actionLabels = [
'create' => ['icon' => '📸', 'title' => 'Tạo Snapshot thành công', 'desc' => 'Snapshot máy chủ ảo của bạn đã được tạo thành công', 'status' => 'Tạo thành công ✓'], 'create' => ['icon' => '📸', 'title' => 'Tạo Snapshot thành công', 'desc' => 'Snapshot máy chủ ảo của bạn đã được tạo thành công', 'status' => 'Tạo thành công ✓'],
@@ -167,7 +167,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -2,7 +2,7 @@
$appName = $appName ?? config('app.name', 'Thế Giới Số'); $appName = $appName ?? config('app.name', 'Thế Giới Số');
$fullName = $fullName ?? 'Quý khách'; $fullName = $fullName ?? 'Quý khách';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -174,7 +174,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -3,7 +3,7 @@
$fullName = $fullName ?? 'Quý khách'; $fullName = $fullName ?? 'Quý khách';
$verifyCode = $verifyCode ?? ''; $verifyCode = $verifyCode ?? '';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -143,7 +143,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -5,7 +5,7 @@
$productName = $productName ?? 'N/A'; $productName = $productName ?? 'N/A';
$invoiceUrl = $invoiceUrl ?? rtrim((string) env('FRONTEND_URL', config('app.url')), '/') . '/hoa-don'; $invoiceUrl = $invoiceUrl ?? rtrim((string) env('FRONTEND_URL', config('app.url')), '/') . '/hoa-don';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -149,7 +149,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -5,7 +5,7 @@
$newPassword = $newPassword ?? ''; $newPassword = $newPassword ?? '';
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap'; $loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -159,7 +159,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -5,7 +5,7 @@
$ip = $ip ?? 'N/A'; $ip = $ip ?? 'N/A';
$serviceUrl = $serviceUrl ?? rtrim((string) env('FRONTEND_URL', config('app.url')), '/') . '/dich-vu'; $serviceUrl = $serviceUrl ?? rtrim((string) env('FRONTEND_URL', config('app.url')), '/') . '/dich-vu';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -86,7 +86,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
@@ -3,7 +3,7 @@
$fullName = $fullName ?? 'Quý khách'; $fullName = $fullName ?? 'Quý khách';
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap'; $loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
$supportEmail = $supportEmail ?? 'support@tgs.com.vn'; $supportEmail = $supportEmail ?? 'support@tgs.com.vn';
$supportPhone = $supportPhone ?? '1900. 6119'; $supportPhone = $supportPhone ?? '(028) 7309. 7379';
@endphp @endphp
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0"> <table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
@@ -146,7 +146,7 @@
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;"> <p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
<span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br> <span style="color: #ffffff; font-family: 'times new roman', times, serif;"><strong style="font-size: 20px;">CÔNG TY CỔ PHẦN GIẢI PHÁP CÔNG NGHỆ THẾ GIỚI SỐ</strong></span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Địa chỉ: 128/38 Tân Hương, Phường Phú Thọ Hòa, Thành Phố Hồ Chí Minh</span><br>
<span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: (028) 7309. 7379 - Tổng đài: {{ $supportPhone }}</span><br> <span style="color: #ffffff; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Tel: {{ $supportPhone }}</span><br>
<span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br> <span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Email: <span style="color: #ffffff;"><a style="color: #ffffff; text-decoration: none;" href="mailto:{{ $supportEmail }}">{{ $supportEmail }}</a></span></span><br>
<span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;"> <span style="text-decoration: none; font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #ffffff !important;">
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp; <a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &amp;
+13
View File
@@ -28,6 +28,7 @@ use App\Http\Controllers\Api\Admin\DnsManager\RecordController as DnsRecordContr
use App\Http\Controllers\Api\Admin\Hosting\HostingAccountController; use App\Http\Controllers\Api\Admin\Hosting\HostingAccountController;
use App\Http\Controllers\Api\Admin\OsManager\OsGroupController; use App\Http\Controllers\Api\Admin\OsManager\OsGroupController;
use App\Http\Controllers\Api\Admin\OsManager\OsController; use App\Http\Controllers\Api\Admin\OsManager\OsController;
use App\Http\Controllers\Api\Admin\Hosting\ServicePlanController;
use App\Http\Controllers\Api\Admin\IpPool\IpPoolController; use App\Http\Controllers\Api\Admin\IpPool\IpPoolController;
use App\Http\Controllers\Api\Admin\Bank\BankController; use App\Http\Controllers\Api\Admin\Bank\BankController;
use App\Http\Controllers\Api\Admin\EmailTemplate\EmailTemplateController; use App\Http\Controllers\Api\Admin\EmailTemplate\EmailTemplateController;
@@ -435,6 +436,18 @@ Route::prefix('v1')
Route::post('{id}/reset-ftp-password', 'resetFtpPassword')->middleware('perm:hosting.edit'); Route::post('{id}/reset-ftp-password', 'resetFtpPassword')->middleware('perm:hosting.edit');
}); });
// Service Plans — hosting package configs (module: hosting)
Route::prefix('service-plans')
->controller(ServicePlanController::class)
->as('service-plans.')
->group(function () {
Route::get('/', 'index')->middleware('perm:hosting.view')->name('index');
Route::post('/', 'store')->middleware('perm:hosting.create')->name('store');
Route::get('{id}', 'show')->middleware('perm:hosting.view')->name('show');
Route::put('{id}', 'update')->middleware('perm:hosting.edit')->name('update');
Route::delete('{id}', 'destroy')->middleware('perm:hosting.destroy')->name('destroy');
});
// InfraManagement (jumphost, vcenter config) // InfraManagement (jumphost, vcenter config)
Route::prefix('infra-management') Route::prefix('infra-management')
->controller(InfraManagementController::class) ->controller(InfraManagementController::class)
+1 -1
View File
@@ -171,7 +171,7 @@ Route::prefix('v1')
Route::get('/', 'getList')->name('list'); Route::get('/', 'getList')->name('list');
Route::get('check-server-name', 'checkServerName')->name('check-server-name'); Route::get('check-server-name', 'checkServerName')->name('check-server-name');
Route::post('/', 'storeOrder')->name('store'); Route::post('/', 'storeOrder')->name('store');
Route::post('{id}/pay', 'payOrder')->name('pay'); Route::post('{orderNum}/pay', 'payOrder')->name('pay');
}); });
}); });