update vm ticket
This commit is contained in:
@@ -102,6 +102,75 @@ class PostCategoryController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function trashed(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$perPage = min((int) $request->get('per_page', 15), 100);
|
||||||
|
|
||||||
|
$paginator = PostCategory::onlyTrashed()
|
||||||
|
->withCount('posts')
|
||||||
|
->when(
|
||||||
|
$request->filled('keyword'),
|
||||||
|
fn ($q) => $q->where('name', 'like', '%' . $request->string('keyword')->toString() . '%')
|
||||||
|
)
|
||||||
|
->orderByDesc('deleted_at')
|
||||||
|
->paginate($perPage);
|
||||||
|
|
||||||
|
return response()->json([
|
||||||
|
'error' => false,
|
||||||
|
'data' => [
|
||||||
|
'items' => PostCategoryResource::collection($paginator->items()),
|
||||||
|
'total' => $paginator->total(),
|
||||||
|
'per_page' => $paginator->perPage(),
|
||||||
|
'current_page' => $paginator->currentPage(),
|
||||||
|
'last_page' => $paginator->lastPage(),
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function restore(int $id): JsonResponse
|
||||||
|
{
|
||||||
|
$category = PostCategory::onlyTrashed()->find($id);
|
||||||
|
|
||||||
|
if (!$category) {
|
||||||
|
return response()->json(['error' => true, 'message' => 'Không tìm thấy danh mục.'], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$category->restore();
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => 'Khôi phục danh mục thành công.']);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function forceDelete(int $id): JsonResponse
|
||||||
|
{
|
||||||
|
$category = PostCategory::onlyTrashed()->find($id);
|
||||||
|
|
||||||
|
if (!$category) {
|
||||||
|
return response()->json(['error' => true, 'message' => 'Không tìm thấy danh mục.'], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$category->forceDelete();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => 'Xoá vĩnh viễn danh mục thành công.']);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkRestore(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate(['ids' => 'required|array|min:1', 'ids.*' => 'integer']);
|
||||||
|
$count = PostCategory::onlyTrashed()->whereIn('id', $request->ids)->restore();
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã khôi phục {$count} danh mục."]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkForceDelete(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate(['ids' => 'required|array|min:1', 'ids.*' => 'integer']);
|
||||||
|
$count = PostCategory::onlyTrashed()->whereIn('id', $request->ids)->forceDelete();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã xoá vĩnh viễn {$count} danh mục."]);
|
||||||
|
}
|
||||||
|
|
||||||
public function destroy(int $id): JsonResponse
|
public function destroy(int $id): JsonResponse
|
||||||
{
|
{
|
||||||
$category = PostCategory::withCount('posts')->find($id);
|
$category = PostCategory::withCount('posts')->find($id);
|
||||||
|
|||||||
@@ -136,6 +136,97 @@ class PostController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function trashed(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$perPage = min((int) $request->get('per_page', 15), 100);
|
||||||
|
|
||||||
|
$paginator = Post::onlyTrashed()
|
||||||
|
->with('category')
|
||||||
|
->when(
|
||||||
|
$request->filled('keyword'),
|
||||||
|
fn ($q) => $q->where('title', 'like', '%' . $request->string('keyword')->toString() . '%')
|
||||||
|
)
|
||||||
|
->orderByDesc('deleted_at')
|
||||||
|
->paginate($perPage);
|
||||||
|
|
||||||
|
return response()->json([
|
||||||
|
'error' => false,
|
||||||
|
'data' => [
|
||||||
|
'items' => PostResource::collection($paginator->items()),
|
||||||
|
'total' => $paginator->total(),
|
||||||
|
'per_page' => $paginator->perPage(),
|
||||||
|
'current_page' => $paginator->currentPage(),
|
||||||
|
'last_page' => $paginator->lastPage(),
|
||||||
|
],
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function restore(int $id): JsonResponse
|
||||||
|
{
|
||||||
|
$post = Post::onlyTrashed()->find($id);
|
||||||
|
|
||||||
|
if (!$post) {
|
||||||
|
return response()->json(['error' => true, 'message' => 'Không tìm thấy bài viết.'], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$post->restore();
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => 'Khôi phục bài viết thành công.']);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function forceDelete(int $id): JsonResponse
|
||||||
|
{
|
||||||
|
$post = Post::onlyTrashed()->find($id);
|
||||||
|
|
||||||
|
if (!$post) {
|
||||||
|
return response()->json(['error' => true, 'message' => 'Không tìm thấy bài viết.'], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$post->forceDelete();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => 'Xoá vĩnh viễn bài viết thành công.']);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkRestore(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate(['ids' => 'required|array|min:1', 'ids.*' => 'integer']);
|
||||||
|
$count = Post::onlyTrashed()->whereIn('id', $request->ids)->restore();
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã khôi phục {$count} bài viết."]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkForceDelete(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate(['ids' => 'required|array|min:1', 'ids.*' => 'integer']);
|
||||||
|
$count = Post::onlyTrashed()->whereIn('id', $request->ids)->forceDelete();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã xoá vĩnh viễn {$count} bài viết."]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkDelete(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate(['ids' => 'required|array|min:1', 'ids.*' => 'integer']);
|
||||||
|
$count = Post::whereIn('id', $request->ids)->delete();
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã xoá {$count} bài viết."]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function bulkUpdateStatus(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$request->validate([
|
||||||
|
'ids' => 'required|array|min:1',
|
||||||
|
'ids.*' => 'integer',
|
||||||
|
'status' => 'required|in:draft,published,hidden',
|
||||||
|
]);
|
||||||
|
$count = Post::whereIn('id', $request->ids)->update(['status' => $request->status]);
|
||||||
|
$this->revalidation->revalidateDocs();
|
||||||
|
|
||||||
|
return response()->json(['error' => false, 'message' => "Đã cập nhật trạng thái {$count} bài viết."]);
|
||||||
|
}
|
||||||
|
|
||||||
public function syncWordpress(Request $request): JsonResponse
|
public function syncWordpress(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
$validated = $request->validate([
|
$validated = $request->validate([
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class TicketController extends Controller
|
|||||||
public function reply(Request $request, string $ticket_num)
|
public function reply(Request $request, string $ticket_num)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'message' => ['required', 'string', 'max:2000'],
|
'message' => ['required', 'string'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$admin = auth('admin')->user();
|
$admin = auth('admin')->user();
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ class VCenterController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function storeNode(Request $request, string $type): JsonResponse
|
public function storeNode(Request $request, string $type): JsonResponse
|
||||||
{
|
{
|
||||||
$rules = match ($type) {
|
$rules = match ($type) {
|
||||||
@@ -187,9 +188,9 @@ class VCenterController extends Controller
|
|||||||
$allHosts = ModuleHost::with(['datastore', 'network'])->get()->groupBy('module_datacenter_id');
|
$allHosts = ModuleHost::with(['datastore', 'network'])->get()->groupBy('module_datacenter_id');
|
||||||
$allFolders = ModuleFolder::all()->groupBy('module_datacenter_id');
|
$allFolders = ModuleFolder::all()->groupBy('module_datacenter_id');
|
||||||
// VMs with a host assignment — grouped by host DB id
|
// VMs with a host assignment — grouped by host DB id
|
||||||
$allVMs = VirtualMachines::whereNotNull('host_id')->get()->groupBy('host_id');
|
$allVMs = VirtualMachines::with('vmware')->whereNotNull('host_id')->get()->groupBy('host_id');
|
||||||
// VMs without a host assignment (synced before host_id was tracked) — grouped by datacenter DB id
|
// VMs without a host assignment (synced before host_id was tracked) — grouped by datacenter DB id
|
||||||
$orphanVMs = VirtualMachines::whereNull('host_id')->get()->groupBy('datacenter_id');
|
$orphanVMs = VirtualMachines::with('vmware')->whereNull('host_id')->get()->groupBy('datacenter_id');
|
||||||
|
|
||||||
$tree = $vcenters->map(function ($vc) use ($allHosts, $allFolders, $allVMs, $orphanVMs) {
|
$tree = $vcenters->map(function ($vc) use ($allHosts, $allFolders, $allVMs, $orphanVMs) {
|
||||||
$dcGroups = ($vc->datacenters ?? collect())->groupBy('datacenter_id');
|
$dcGroups = ($vc->datacenters ?? collect())->groupBy('datacenter_id');
|
||||||
@@ -227,8 +228,8 @@ class VCenterController extends Controller
|
|||||||
'uuid' => $vm->uuid,
|
'uuid' => $vm->uuid,
|
||||||
'vm_id' => $vm->vm_id,
|
'vm_id' => $vm->vm_id,
|
||||||
'ip' => $vm->ip,
|
'ip' => $vm->ip,
|
||||||
'username' => $vm->username,
|
'username' => $vm->vmware?->user,
|
||||||
'password' => $vm->password,
|
'password' => $vm->vmware?->plain_password,
|
||||||
'power_state' => $vm->power_state,
|
'power_state' => $vm->power_state,
|
||||||
'folder' => $vm->folder,
|
'folder' => $vm->folder,
|
||||||
'cpu' => $vm->cpu,
|
'cpu' => $vm->cpu,
|
||||||
@@ -304,6 +305,8 @@ class VCenterController extends Controller
|
|||||||
'uuid' => $vm->uuid,
|
'uuid' => $vm->uuid,
|
||||||
'vm_id' => $vm->vm_id,
|
'vm_id' => $vm->vm_id,
|
||||||
'ip' => $vm->ip,
|
'ip' => $vm->ip,
|
||||||
|
'username' => $vm->vmware?->user,
|
||||||
|
'password' => $vm->vmware?->plain_password,
|
||||||
'power_state' => $vm->power_state,
|
'power_state' => $vm->power_state,
|
||||||
'folder' => $vm->folder,
|
'folder' => $vm->folder,
|
||||||
'cpu' => $vm->cpu,
|
'cpu' => $vm->cpu,
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ namespace App\Http\Controllers\Api\Client\Ticket;
|
|||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Http\Resources\Api\Ticket\TicketResource;
|
use App\Http\Resources\Api\Ticket\TicketResource;
|
||||||
use App\Http\Resources\Api\Ticket\TicketReplyResource;
|
use App\Http\Resources\Api\Ticket\TicketReplyResource;
|
||||||
|
use App\Jobs\Ticket\TicketJobs;
|
||||||
|
use App\Mail\TicketCreated;
|
||||||
|
use App\Mail\Admin\TicketAdminNotification;
|
||||||
|
use App\Models\Setting;
|
||||||
use App\Models\Ticket;
|
use App\Models\Ticket;
|
||||||
use App\Models\Notification;
|
use App\Models\Notification;
|
||||||
use App\Models\TicketReply;
|
use App\Models\TicketReply;
|
||||||
@@ -12,6 +16,8 @@ use App\Events\TicketReplyCreated;
|
|||||||
use App\Repositories\Ticket\TicketRepositoryInterface;
|
use App\Repositories\Ticket\TicketRepositoryInterface;
|
||||||
use App\Repositories\TicketReply\TicketReplyRepositoryInterface;
|
use App\Repositories\TicketReply\TicketReplyRepositoryInterface;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Mail;
|
||||||
|
use Illuminate\Support\Facades\Storage;
|
||||||
use Illuminate\Support\Str;
|
use Illuminate\Support\Str;
|
||||||
|
|
||||||
class TicketController extends Controller
|
class TicketController extends Controller
|
||||||
@@ -60,22 +66,41 @@ class TicketController extends Controller
|
|||||||
'description' => ['required', 'string', 'min:20'],
|
'description' => ['required', 'string', 'min:20'],
|
||||||
'room' => ['nullable', 'string'],
|
'room' => ['nullable', 'string'],
|
||||||
'data' => ['nullable', 'array'],
|
'data' => ['nullable', 'array'],
|
||||||
|
'images' => ['nullable', 'array', 'max:5'],
|
||||||
|
'images.*' => ['image', 'mimes:jpg,jpeg,png,gif,webp', 'max:5120'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$customer = auth('client')->user();
|
$customer = auth('client')->user();
|
||||||
|
|
||||||
$ticketNum = 'TKT-' . now()->format('Ymd') . '-' . strtoupper(Str::random(5));
|
$ticketNum = 'TKT-' . now()->format('Ymd') . '-' . strtoupper(Str::random(5));
|
||||||
|
|
||||||
|
$gallery = [];
|
||||||
|
foreach ($request->file('images', []) as $image) {
|
||||||
|
$path = $image->store('tickets', 'public');
|
||||||
|
$gallery[] = Storage::disk('public')->url($path);
|
||||||
|
}
|
||||||
|
|
||||||
$ticket = $this->ticketRepository->create([
|
$ticket = $this->ticketRepository->create([
|
||||||
|
'uuid' => (string) Str::uuid(),
|
||||||
'ticket_num' => $ticketNum,
|
'ticket_num' => $ticketNum,
|
||||||
'subject' => $request->input('subject'),
|
'subject' => $request->input('subject'),
|
||||||
'description' => $request->input('description'),
|
'description' => $request->input('description'),
|
||||||
'status' => 'open',
|
'status' => 'open',
|
||||||
'room' => $request->input('room'),
|
'room' => $request->input('room'),
|
||||||
'data' => $request->input('data') ? json_encode($request->input('data')) : null,
|
'data' => $request->input('data') ? json_encode($request->input('data')) : null,
|
||||||
|
'gallery' => $gallery ?: null,
|
||||||
'customer_id' => $customer->id,
|
'customer_id' => $customer->id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
TicketJobs::dispatch($ticket, $customer);
|
||||||
|
Mail::to($customer->email)->queue(new TicketCreated($ticket, $customer));
|
||||||
|
|
||||||
|
$setting = Setting::where('key', 'setting')->first();
|
||||||
|
$adminEmail = $setting ? (json_decode((string) $setting->value)?->admin_email ?? null) : null;
|
||||||
|
if ($adminEmail) {
|
||||||
|
Mail::to($adminEmail)->queue(new TicketAdminNotification($ticket, $customer));
|
||||||
|
}
|
||||||
|
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => false,
|
'error' => false,
|
||||||
'message' => 'Ticket đã được tạo thành công.',
|
'message' => 'Ticket đã được tạo thành công.',
|
||||||
@@ -115,7 +140,7 @@ class TicketController extends Controller
|
|||||||
public function reply(Request $request, string $ticket_num)
|
public function reply(Request $request, string $ticket_num)
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'message' => ['required', 'string', 'max:2000'],
|
'message' => ['required', 'string'],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$customer = auth('client')->user();
|
$customer = auth('client')->user();
|
||||||
|
|||||||
@@ -20,8 +20,10 @@ use App\Services\ActivityLogger;
|
|||||||
use App\Services\Api\Order\OrderQueryService;
|
use App\Services\Api\Order\OrderQueryService;
|
||||||
use App\Services\Api\Order\OrderService;
|
use App\Services\Api\Order\OrderService;
|
||||||
use App\Services\InvoicePaymentService;
|
use App\Services\InvoicePaymentService;
|
||||||
|
use App\Services\InvoicePdfService;
|
||||||
use Illuminate\Http\JsonResponse;
|
use Illuminate\Http\JsonResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
class OrderControllerRefactor extends Controller
|
class OrderControllerRefactor extends Controller
|
||||||
{
|
{
|
||||||
@@ -225,6 +227,34 @@ class OrderControllerRefactor extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getClientOrderDetailByOrderNum(Request $request, string $orderNum): JsonResponse
|
||||||
|
{
|
||||||
|
$order = $this->orderQueryService->findCustomerInvoiceByOrderNum((int) $request->user()->id, $orderNum);
|
||||||
|
|
||||||
|
if (! $order) {
|
||||||
|
return response()->json(['success' => false, 'message' => 'Đơn hàng không tồn tại.'], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
return response()->json(['success' => true, 'data' => new OrderDetailResource($order)]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function downloadInvoicePdfByOrderNum(Request $request, string $orderNum, InvoicePdfService $pdfService): Response
|
||||||
|
{
|
||||||
|
$order = $this->orderQueryService->findCustomerInvoiceByOrderNum((int) $request->user()->id, $orderNum);
|
||||||
|
|
||||||
|
if (! $order?->invoice) {
|
||||||
|
abort(404, 'Hóa đơn không tồn tại.');
|
||||||
|
}
|
||||||
|
|
||||||
|
$pdf = $pdfService->generate($order->invoice);
|
||||||
|
$filename = $pdfService->generateFileName($order->invoice);
|
||||||
|
|
||||||
|
return response($pdf, 200, [
|
||||||
|
'Content-Type' => 'application/pdf',
|
||||||
|
'Content-Disposition' => 'attachment; filename="' . $filename . '"',
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
public function getClientServices(Request $request): JsonResponse
|
public function getClientServices(Request $request): JsonResponse
|
||||||
{
|
{
|
||||||
$services = $this->orderQueryService->getCustomerServices((int) $request->user()->id);
|
$services = $this->orderQueryService->getCustomerServices((int) $request->user()->id);
|
||||||
|
|||||||
@@ -11,15 +11,18 @@ class TicketResource extends JsonResource
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
|
'uuid' => $this->uuid,
|
||||||
'ticket_num' => $this->ticket_num,
|
'ticket_num' => $this->ticket_num,
|
||||||
'subject' => $this->subject,
|
'subject' => $this->subject,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
'room' => $this->room,
|
'room' => $this->room,
|
||||||
'data' => $this->data ? (is_string($this->data) ? json_decode($this->data, true) : $this->data) : null,
|
'data' => $this->data ? (is_string($this->data) ? json_decode($this->data, true) : $this->data) : null,
|
||||||
|
'gallery' => $this->gallery ?? [],
|
||||||
'customer_id' => $this->customer_id,
|
'customer_id' => $this->customer_id,
|
||||||
'customer' => $this->whenLoaded('customer', fn() => [
|
'customer' => $this->whenLoaded('customer', fn() => [
|
||||||
'id' => $this->customer->id,
|
'id' => $this->customer->id,
|
||||||
|
'uuid' => $this->customer->uuid,
|
||||||
'fullname' => $this->customer->fullname,
|
'fullname' => $this->customer->fullname,
|
||||||
'email' => $this->customer->email,
|
'email' => $this->customer->email,
|
||||||
]),
|
]),
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ declare(strict_types=1);
|
|||||||
namespace App\Jobs\VirtualMachine;
|
namespace App\Jobs\VirtualMachine;
|
||||||
|
|
||||||
use App\Http\Facade\SignRSA;
|
use App\Http\Facade\SignRSA;
|
||||||
|
use App\Mail\Customer\VmPasswordChanged;
|
||||||
|
use App\Models\ModuleVmware;
|
||||||
use App\Models\vCenter;
|
use App\Models\vCenter;
|
||||||
use App\Services\VmProvisionService;
|
use App\Services\VmProvisionService;
|
||||||
use App\Services\VsphereHostSshService;
|
use App\Services\VsphereHostSshService;
|
||||||
@@ -14,6 +16,7 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
|||||||
use Illuminate\Queue\InteractsWithQueue;
|
use Illuminate\Queue\InteractsWithQueue;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
use Illuminate\Support\Facades\Log;
|
use Illuminate\Support\Facades\Log;
|
||||||
|
use Illuminate\Support\Facades\Mail;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ChangeVmPasswordJob
|
* ChangeVmPasswordJob
|
||||||
@@ -71,6 +74,8 @@ class ChangeVmPasswordJob implements ShouldQueue
|
|||||||
// Persist encrypted password to DB
|
// Persist encrypted password to DB
|
||||||
$provision->updatePassword($this->moduleVmwareId, $this->newPassword);
|
$provision->updatePassword($this->moduleVmwareId, $this->newPassword);
|
||||||
|
|
||||||
|
$this->notifyCustomer();
|
||||||
|
|
||||||
Log::info('ChangeVmPasswordJob: password changed successfully', [
|
Log::info('ChangeVmPasswordJob: password changed successfully', [
|
||||||
'module_vmware_id' => $this->moduleVmwareId,
|
'module_vmware_id' => $this->moduleVmwareId,
|
||||||
'vm_id' => $this->vmId,
|
'vm_id' => $this->vmId,
|
||||||
@@ -86,6 +91,19 @@ class ChangeVmPasswordJob implements ShouldQueue
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function notifyCustomer(): void
|
||||||
|
{
|
||||||
|
$vm = ModuleVmware::with('customer')->find($this->moduleVmwareId);
|
||||||
|
if (!$vm?->customer?->email) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Mail::to($vm->customer->email)->queue(new VmPasswordChanged([
|
||||||
|
'fullname' => $vm->customer->fullname,
|
||||||
|
'vm_name' => $vm->name,
|
||||||
|
]));
|
||||||
|
}
|
||||||
|
|
||||||
private function assertSuccess(string $output): void
|
private function assertSuccess(string $output): void
|
||||||
{
|
{
|
||||||
if (str_contains(strtoupper(trim($output)), 'SUCCESS')) {
|
if (str_contains(strtoupper(trim($output)), 'SUCCESS')) {
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail\Admin;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class TicketAdminNotification extends Mailable implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
public readonly mixed $ticket,
|
||||||
|
public readonly mixed $customer,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
public function build(): static
|
||||||
|
{
|
||||||
|
return $this
|
||||||
|
->subject("[ADMIN] Ticket mới #{$this->ticket->ticket_num} — {$this->customer->email}")
|
||||||
|
->view('emails.admin.ticket-notification')
|
||||||
|
->with([
|
||||||
|
'ticketNum' => $this->ticket->ticket_num,
|
||||||
|
'subject' => $this->ticket->subject,
|
||||||
|
'room' => $this->ticket->room,
|
||||||
|
'description' => strip_tags($this->ticket->description),
|
||||||
|
'customerName' => trim($this->customer->firstname . ' ' . $this->customer->lastname),
|
||||||
|
'customerEmail' => $this->customer->email,
|
||||||
|
'ticketUrl' => config('app.frontend_url') . '/tickets/' . $this->ticket->ticket_num,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail\Customer;
|
||||||
|
|
||||||
|
use App\Models\Setting;
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Mail\Mailables\Content;
|
||||||
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class VmPasswordChanged extends Mailable
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
public function __construct(public array $data) {}
|
||||||
|
|
||||||
|
public function envelope(): Envelope
|
||||||
|
{
|
||||||
|
$appName = $this->payload()['company_name'] ?? config('app.name', 'The Gioi So');
|
||||||
|
|
||||||
|
return new Envelope(
|
||||||
|
subject: 'Mật khẩu VM của bạn đã được thay đổi — ' . $appName,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function content(): Content
|
||||||
|
{
|
||||||
|
$data = $this->payload();
|
||||||
|
|
||||||
|
return new Content(
|
||||||
|
view: 'emails.customer.vm-password-changed',
|
||||||
|
with: [
|
||||||
|
'appName' => $data['company_name'] ?? config('app.name', 'The Gioi So'),
|
||||||
|
'fullName' => $data['fullname'] ?? 'Quý khách',
|
||||||
|
'vmName' => $data['vm_name'] ?? '',
|
||||||
|
'loginUrl' => $data['login_url'] ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap',
|
||||||
|
'supportEmail' => $data['support_email'] ?? config('mail.support_email', 'support@thegioiso.com'),
|
||||||
|
'supportPhone' => $data['support_phone'] ?? config('mail.support_phone', '1900.xxxx'),
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function attachments(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
private function payload(): array
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
$setting = Setting::where('key', 'setting')->first();
|
||||||
|
$settingValue = $setting ? json_decode((string) $setting->value, true) : [];
|
||||||
|
} catch (\Throwable) {
|
||||||
|
$settingValue = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_merge([
|
||||||
|
'company_name' => $settingValue['company'] ?? config('app.name', 'The Gioi So'),
|
||||||
|
'support_email' => $settingValue['email'] ?? config('mail.support_email', 'support@thegioiso.com'),
|
||||||
|
'support_phone' => $settingValue['hotline'] ?? ($settingValue['phone'] ?? config('mail.support_phone', '1900.xxxx')),
|
||||||
|
'login_url' => rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap',
|
||||||
|
], $this->data);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Mail;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
|
use Illuminate\Mail\Mailable;
|
||||||
|
use Illuminate\Mail\Mailables\Content;
|
||||||
|
use Illuminate\Mail\Mailables\Envelope;
|
||||||
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
|
||||||
|
class TicketCreated extends Mailable implements ShouldQueue
|
||||||
|
{
|
||||||
|
use Queueable, SerializesModels;
|
||||||
|
|
||||||
|
public function __construct(
|
||||||
|
public readonly mixed $ticket,
|
||||||
|
public readonly mixed $customer,
|
||||||
|
) {}
|
||||||
|
|
||||||
|
public function envelope(): Envelope
|
||||||
|
{
|
||||||
|
return new Envelope(
|
||||||
|
subject: "[#{$this->ticket->ticket_num}] Yêu cầu hỗ trợ của bạn đã được tiếp nhận",
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function content(): Content
|
||||||
|
{
|
||||||
|
return new Content(
|
||||||
|
view: 'emails.customer.ticket-created',
|
||||||
|
with: [
|
||||||
|
'fullName' => trim("{$this->customer->firstname} {$this->customer->lastname}") ?: 'Quý khách',
|
||||||
|
'ticketNum' => $this->ticket->ticket_num,
|
||||||
|
'subject' => $this->ticket->subject,
|
||||||
|
'room' => $this->ticket->room,
|
||||||
|
'ticketUrl' => rtrim(config('app.frontend_url', ''), '/') . '/tickets/' . $this->ticket->ticket_num,
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function attachments(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -13,6 +13,7 @@ class Ticket extends Model
|
|||||||
protected $table = 'ticket';
|
protected $table = 'ticket';
|
||||||
|
|
||||||
protected $fillable = [
|
protected $fillable = [
|
||||||
|
'uuid',
|
||||||
'ticket_num',
|
'ticket_num',
|
||||||
'subject',
|
'subject',
|
||||||
'customer_id',
|
'customer_id',
|
||||||
@@ -20,6 +21,11 @@ class Ticket extends Model
|
|||||||
'status',
|
'status',
|
||||||
'room',
|
'room',
|
||||||
'data',
|
'data',
|
||||||
|
'gallery',
|
||||||
|
];
|
||||||
|
|
||||||
|
protected $casts = [
|
||||||
|
'gallery' => 'array',
|
||||||
];
|
];
|
||||||
|
|
||||||
public function customer()
|
public function customer()
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ class VirtualMachines extends Model
|
|||||||
'host_id',
|
'host_id',
|
||||||
'ip_pool_id',
|
'ip_pool_id',
|
||||||
'ip',
|
'ip',
|
||||||
'username',
|
|
||||||
'password',
|
|
||||||
];
|
];
|
||||||
|
|
||||||
public function datacenter()
|
public function datacenter()
|
||||||
@@ -43,4 +41,9 @@ class VirtualMachines extends Model
|
|||||||
{
|
{
|
||||||
return $this->belongsTo(IpPool::class, 'ip_pool_id');
|
return $this->belongsTo(IpPool::class, 'ip_pool_id');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function vmware()
|
||||||
|
{
|
||||||
|
return $this->hasOne(ModuleVmware::class, 'vmware_id', 'vm_id');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,23 +0,0 @@
|
|||||||
<?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('virtual_machines', function (Blueprint $table) {
|
|
||||||
$table->string('username')->nullable()->after('ip');
|
|
||||||
$table->string('password')->nullable()->after('username');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
public function down(): void
|
|
||||||
{
|
|
||||||
Schema::table('virtual_machines', function (Blueprint $table) {
|
|
||||||
$table->dropColumn(['username', 'password']);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?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('ticket', function (Blueprint $table) {
|
||||||
|
if (!Schema::hasColumn('ticket', 'gallery')) {
|
||||||
|
$table->json('gallery')->nullable()->after('data');
|
||||||
|
}
|
||||||
|
// customer_id was bigInteger (signed); must match customers.id (unsignedBigInteger)
|
||||||
|
$table->unsignedBigInteger('customer_id')->change();
|
||||||
|
$table->foreign('customer_id')->references('id')->on('customers')->onDelete('cascade');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('ticket', function (Blueprint $table) {
|
||||||
|
$table->dropForeign(['customer_id']);
|
||||||
|
$table->bigInteger('customer_id')->default(0)->change();
|
||||||
|
$table->dropColumn('gallery');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
<?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('ticket_reply', function (Blueprint $table) {
|
||||||
|
$table->longText('message')->nullable()->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('ticket_reply', function (Blueprint $table) {
|
||||||
|
$table->text('message')->nullable()->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="vi">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Thông báo ticket mới</title>
|
||||||
|
<style>
|
||||||
|
* { box-sizing: border-box; }
|
||||||
|
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f4f8; margin: 0; padding: 0; }
|
||||||
|
.wrapper { max-width: 620px; margin: 30px auto; }
|
||||||
|
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
|
||||||
|
.header { background: linear-gradient(135deg, #f06824 0%, #e05510 100%); padding: 36px 40px; text-align: center; }
|
||||||
|
.header .icon { font-size: 48px; margin-bottom: 12px; }
|
||||||
|
.header h1 { color: #fff; margin: 0 0 6px; font-size: 22px; font-weight: 700; }
|
||||||
|
.header p { color: #fde8d8; margin: 0; font-size: 14px; }
|
||||||
|
.body { padding: 36px 40px; }
|
||||||
|
.section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #9ca3af; margin: 24px 0 10px; }
|
||||||
|
.section-label:first-child { margin-top: 0; }
|
||||||
|
.info-table { width: 100%; border-collapse: collapse; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
|
||||||
|
.info-table td { padding: 10px 16px; font-size: 14px; border-bottom: 1px solid #f3f4f6; }
|
||||||
|
.info-table tr:last-child td { border-bottom: none; }
|
||||||
|
.info-table td:first-child { color: #6b7280; width: 45%; }
|
||||||
|
.info-table td:last-child { font-weight: 600; color: #111827; }
|
||||||
|
.desc-box { background: #fff7f3; border: 1.5px solid #fcd9c5; border-radius: 10px; padding: 16px 20px; margin-top: 10px; font-size: 14px; color: #374151; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
|
||||||
|
.cta { text-align: center; margin: 28px 0 4px; }
|
||||||
|
.cta a { display: inline-block; background: #f06824; color: #fff; text-decoration: none; padding: 12px 32px; border-radius: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
|
||||||
|
.footer { text-align: center; padding: 20px 40px; border-top: 1px solid #f3f4f6; font-size: 12px; color: #9ca3af; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="card">
|
||||||
|
<div class="header">
|
||||||
|
<div class="icon">🎫</div>
|
||||||
|
<h1>Ticket mới cần xử lý</h1>
|
||||||
|
<p>Ticket #{{ $ticketNum ?? 'N/A' }}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="body">
|
||||||
|
<div class="section-label">Thông tin ticket</div>
|
||||||
|
<table class="info-table">
|
||||||
|
<tr>
|
||||||
|
<td>Mã ticket</td>
|
||||||
|
<td>#{{ $ticketNum ?? 'N/A' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Tiêu đề</td>
|
||||||
|
<td>{{ $subject ?? 'N/A' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Phòng ban</td>
|
||||||
|
<td>{{ $room ?? 'N/A' }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="section-label">Thông tin khách hàng</div>
|
||||||
|
<table class="info-table">
|
||||||
|
<tr>
|
||||||
|
<td>Khách hàng</td>
|
||||||
|
<td>{{ $customerName ?? 'N/A' }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Email khách</td>
|
||||||
|
<td>{{ $customerEmail ?? 'N/A' }}</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="section-label">Nội dung</div>
|
||||||
|
<div class="desc-box">{{ mb_substr($description ?? '', 0, 500) }}{{ mb_strlen($description ?? '') > 500 ? '…' : '' }}</div>
|
||||||
|
|
||||||
|
<div class="cta">
|
||||||
|
<a href="{{ $ticketUrl }}">Xem ticket</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="footer">
|
||||||
|
© {{ date('Y') }} Portal Admin — Hệ thống quản lý dịch vụ<br>
|
||||||
|
Email này được gửi tự động. Vui lòng không trả lời.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,209 @@
|
|||||||
|
@php
|
||||||
|
$appName = $appName ?? config('app.name', 'Thế Giới Số');
|
||||||
|
$fullName = $fullName ?? 'Quý khách';
|
||||||
|
$supportEmail = $supportEmail ?? 'support@tgs.com.vn';
|
||||||
|
$supportPhone = $supportPhone ?? '1900. 6119';
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 20px;" align="center" valign="top">
|
||||||
|
<table style="padding-top: 20px; padding-bottom: 20px; border-collapse: collapse; background-color: #ffffff; width: 700px;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr class="NoiDungKM">
|
||||||
|
<td style="width: 700px;" valign="top">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="background-color: #f06824; padding: 34px 30px 30px; text-align: center; font-family: Arial, Helvetica, sans-serif; color: #ffffff;" align="center" valign="top" bgcolor="#f06824">
|
||||||
|
<div style="font-size: 42px; line-height: 1; margin-bottom: 12px;">🎫</div>
|
||||||
|
<h1 style="margin: 0 0 8px; padding: 0; color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 24px; line-height: 1.35; font-weight: 700;">
|
||||||
|
Yêu cầu hỗ trợ đã được tiếp nhận
|
||||||
|
</h1>
|
||||||
|
<div style="font-size: 14px; line-height: 1.6; color: #ffffff;">
|
||||||
|
Chúng tôi sẽ phản hồi trong thời gian sớm nhất
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="MXH">
|
||||||
|
<td style="text-align: center; padding: 0 30px;" align="center" valign="top">
|
||||||
|
<table style="border-collapse: collapse; background-color: #ffffff; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 15px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.7; color: #000000;" valign="top" height="15">
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">Xin chào <strong>{{ $fullName }}</strong>,</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
Chúng tôi đã nhận được yêu cầu hỗ trợ của Quý khách và sẽ xử lý trong thời gian sớm nhất. Dưới đây là thông tin ticket của Quý khách:
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
|
||||||
|
{{-- Ticket info box --}}
|
||||||
|
<table style="border-collapse: collapse; width: 100%; background-color: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 4px;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 16px 20px;">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #666666; padding: 4px 0; width: 140px;" valign="top">Mã ticket:</td>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; padding: 4px 0; font-weight: 700;" valign="top">#{{ $ticketNum }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #666666; padding: 4px 0;" valign="top">Tiêu đề:</td>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; padding: 4px 0;" valign="top">{{ $subject }}</td>
|
||||||
|
</tr>
|
||||||
|
@if($room)
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #666666; padding: 4px 0;" valign="top">Phòng ban:</td>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #000000; padding: 4px 0;" valign="top">{{ $room }}</td>
|
||||||
|
</tr>
|
||||||
|
@endif
|
||||||
|
<tr>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: #666666; padding: 4px 0;" valign="top">Trạng thái:</td>
|
||||||
|
<td style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; padding: 4px 0;" valign="top">
|
||||||
|
<span style="background-color: #28a745; color: #ffffff; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700;">Đang mở</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<a style="display: inline-block; background-color: #f06824; color: #ffffff !important; text-decoration: none; padding: 12px 28px; border-radius: 3px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700;" href="{{ $ticketUrl }}" target="_blank" rel="noopener">
|
||||||
|
Xem chi tiết ticket
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
Đội ngũ hỗ trợ của <strong>{{ $appName }}</strong> sẽ liên hệ với Quý khách qua email hoặc cập nhật trực tiếp trên hệ thống. Cảm ơn Quý khách đã tin tưởng sử dụng dịch vụ của chúng tôi.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left; color: #666666; font-size: 13px;">
|
||||||
|
Email này được gửi tự động. Vui lòng không trả lời email này.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="CacDV">
|
||||||
|
<td style="background-color: #f06824; width: 700px; color: #ffffff;" valign="top" bgcolor="#f06824">
|
||||||
|
<table style="border-collapse: collapse; background-color: #f06824; width: 100%; color: #ffffff;" border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#f06824">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0;" width="100%">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%; height: 1px; background: #ffffff;" bgcolor="#ffffff" width="100%" height="1"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 10px; color: #ffffff;" valign="top" height="10"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0; text-align: left; font-family: Helvetica, Arial, sans-serif; color: #ffffff; font-size: 16px; line-height: 150%;" align="center" valign="top">
|
||||||
|
<table style="border-collapse: collapse; color: #ffffff;" border="0" cellspacing="0" cellpadding="0" align="center">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/premium-hosting/" target="_blank" rel="noopener"><span style="color: #ffffff;">Premium HOSTING</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/cloud-server/" target="_blank" rel="noopener"><span style="color: #ffffff;">Cloud SERVER</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://cloudemail.vn/" target="_blank" rel="noopener"><span style="color: #ffffff;">EMAIL DOANH NGHIỆP</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/thiet-ke-website/" target="_blank" rel="noopener"><span style="color: #ffffff;">Thiết Kế WEBSITE</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 10px; color: #ffffff;" valign="top" height="10"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0;" width="100%">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%; height: 1px; background: #ffffff;" bgcolor="#ffffff" width="100%" height="1"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="ThongTin">
|
||||||
|
<td align="center" valign="top" bgcolor="#065d88">
|
||||||
|
<table style="border-collapse: collapse; background-color: #f06824; border-top: 0; border-bottom: 0; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr style="height: 30px;">
|
||||||
|
<td style="height: 30px;" valign="top" height="10"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 148px;">
|
||||||
|
<td style="padding: 0; font-family: Helvetica, Arial, sans-serif; text-decoration: none; color: #e7e7e7; font-size: 16px; font-weight: normal; line-height: 150%; vertical-align: top; text-align: center; height: 148px;" align="center">
|
||||||
|
<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: 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="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;">
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.thegioiso.cloud">www.thegioiso.CLOUD</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.thegioiserver.com">www.thegioiSERVER.com</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.cloudemail.vn">www.CloudEmail.vn</a>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
|
||||||
|
<span style="text-decoration: none; font-family: 'times new roman', times, serif; color: #ffffff !important; font-size: 12pt;">
|
||||||
|
<span style="color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;">
|
||||||
|
<span style="text-decoration: none; font-family: 'times new roman', times, serif; color: #ffffff !important;">
|
||||||
|
<span style="font-family: arial, sans-serif;"><strong>🥇Thế Giới Số🥇</strong>- Premium HOSTING • CLOUD • SERVER & WEBSITE | 15+ năm Phụng Sự 🚀</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 30px; color: #ffffff;" valign="top" height="30"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
@php
|
||||||
|
$appName = $appName ?? config('app.name', 'Thế Giới Số');
|
||||||
|
$fullName = $fullName ?? 'Quý khách';
|
||||||
|
$vmName = $vmName ?? '';
|
||||||
|
$loginUrl = $loginUrl ?? rtrim(config('app.frontend_url', ''), '/') . '/dang-nhap';
|
||||||
|
$supportEmail = $supportEmail ?? 'support@tgs.com.vn';
|
||||||
|
$supportPhone = $supportPhone ?? '1900. 6119';
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
<table style="border-collapse: collapse; width: 100%; background-color: #efefef;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 20px;" align="center" valign="top">
|
||||||
|
<table style="padding-top: 20px; padding-bottom: 20px; border-collapse: collapse; background-color: #ffffff; width: 700px;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr class="NoiDungKM">
|
||||||
|
<td style="width: 700px;" valign="top">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="background-color: #f06824; padding: 34px 30px 30px; text-align: center; font-family: Arial, Helvetica, sans-serif; color: #ffffff;" align="center" valign="top" bgcolor="#f06824">
|
||||||
|
<div style="font-size: 42px; line-height: 1; margin-bottom: 12px;">🔑</div>
|
||||||
|
<h1 style="margin: 0 0 8px; padding: 0; color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 24px; line-height: 1.35; font-weight: 700;">
|
||||||
|
Mật khẩu VM đã được thay đổi
|
||||||
|
</h1>
|
||||||
|
<div style="font-size: 14px; line-height: 1.6; color: #ffffff;">
|
||||||
|
Mật khẩu máy chủ ảo của bạn đã được cập nhật thành công
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="MXH">
|
||||||
|
<td style="text-align: center; padding: 0 30px;" align="center" valign="top">
|
||||||
|
<table style="border-collapse: collapse; background-color: #ffffff; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 15px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.7; color: #000000;" valign="top" height="15">
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">Xin chào <strong>{{ $fullName }}</strong>,</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
Mật khẩu đăng nhập vào máy chủ ảo (VM) của bạn tại <strong>{{ $appName }}</strong> đã được thay đổi thành công.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<table style="border-collapse: collapse; width: 100%; background-color: #f9fafb; border: 1px dashed #d1d5db; border-radius: 6px;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 14px 18px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.8; color: #000000;">
|
||||||
|
<div>Máy chủ: <strong style="font-family: 'Menlo','Consolas',monospace; color: #111827;">{{ $vmName }}</strong></div>
|
||||||
|
<div>Trạng thái: <strong style="color: #16a34a;">Đổi mật khẩu thành công ✓</strong></div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left;">
|
||||||
|
Bạn có thể đăng nhập vào cổng quản lý để kiểm tra trạng thái dịch vụ.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<a style="display: inline-block; background-color: #f06824; color: #ffffff !important; text-decoration: none; padding: 12px 28px; border-radius: 3px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 700;" href="{{ $loginUrl }}" target="_blank" rel="noopener">
|
||||||
|
Đăng nhập ngay
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left; color: #6b7280; font-size: 13px;">
|
||||||
|
Nếu bạn không thực hiện thao tác này, vui lòng liên hệ ngay với chúng tôi qua <strong>{{ $supportEmail }}</strong> hoặc <strong>{{ $supportPhone }}</strong>.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
<div style="text-align: left; color: #666666; font-size: 13px;">
|
||||||
|
Email này được gửi tự động. Vui lòng không trả lời email này.
|
||||||
|
</div>
|
||||||
|
<div style="text-align: left;"> </div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="CacDV">
|
||||||
|
<td style="background-color: #f06824; width: 700px; color: #ffffff;" valign="top" bgcolor="#f06824">
|
||||||
|
<table style="border-collapse: collapse; background-color: #f06824; width: 100%; color: #ffffff;" border="0" cellspacing="0" cellpadding="0" align="left" bgcolor="#f06824">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0;" width="100%">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%; height: 1px; background: #ffffff;" bgcolor="#ffffff" width="100%" height="1"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 10px; color: #ffffff;" valign="top" height="10"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0; text-align: left; font-family: Helvetica, Arial, sans-serif; color: #ffffff; font-size: 16px; line-height: 150%;" align="center" valign="top">
|
||||||
|
<table style="border-collapse: collapse; color: #ffffff;" border="0" cellspacing="0" cellpadding="0" align="center">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/premium-hosting/" target="_blank" rel="noopener"><span style="color: #ffffff;">Premium HOSTING</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/cloud-server/" target="_blank" rel="noopener"><span style="color: #ffffff;">Cloud SERVER</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://cloudemail.vn/" target="_blank" rel="noopener"><span style="color: #ffffff;">EMAIL DOANH NGHIỆP</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
<td style="vertical-align: middle; text-align: center; padding: 5px 10px; border: 1px solid #ffffff; color: #ffffff;" valign="top">
|
||||||
|
<a style="color: #ffffff; font-family: Helvetica, Arial, sans-serif; font-size: 10px; line-height: 1; font-weight: normal; text-transform: uppercase; word-wrap: break-word; text-decoration: none;" href="https://tgs.com.vn/thiet-ke-website/" target="_blank" rel="noopener"><span style="color: #ffffff;">Thiết Kế WEBSITE</span></a>
|
||||||
|
</td>
|
||||||
|
<td style="width: 3%; color: #ffffff;"><span style="color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 10px; color: #ffffff;" valign="top" height="10"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="padding: 0;" width="100%">
|
||||||
|
<table style="border-collapse: collapse; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%; height: 1px; background: #ffffff;" bgcolor="#ffffff" width="100%" height="1"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="ThongTin">
|
||||||
|
<td align="center" valign="top" bgcolor="#065d88">
|
||||||
|
<table style="border-collapse: collapse; background-color: #f06824; border-top: 0; border-bottom: 0; width: 100%;" border="0" cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr style="height: 30px;">
|
||||||
|
<td style="height: 30px;" valign="top" height="10"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr style="height: 148px;">
|
||||||
|
<td style="padding: 0; font-family: Helvetica, Arial, sans-serif; text-decoration: none; color: #e7e7e7; font-size: 16px; font-weight: normal; line-height: 150%; vertical-align: top; text-align: center; height: 148px;" align="center">
|
||||||
|
<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: 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="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;">
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.tgs.com.vn">www.TGS.com.vn</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.thegioiso.cloud">www.thegioiso.CLOUD</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.thegioiserver.com">www.thegioiSERVER.com</a> &
|
||||||
|
<a style="color: #ffffff !important; text-decoration: none;" href="https://www.cloudemail.vn">www.CloudEmail.vn</a>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
<p style="margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif; color: white; font-size: 11pt; line-height: 200%;">
|
||||||
|
<span style="text-decoration: none; font-family: 'times new roman', times, serif; color: #ffffff !important; font-size: 12pt;">
|
||||||
|
<span style="color: #ffffff; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;">
|
||||||
|
<span style="text-decoration: none; font-family: 'times new roman', times, serif; color: #ffffff !important;">
|
||||||
|
<span style="font-family: arial, sans-serif;"><strong>🥇Thế Giới Số🥇</strong>- Premium HOSTING • CLOUD • SERVER & WEBSITE | 15+ năm Phụng Sự 🚀</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="height: 30px; color: #ffffff;" valign="top" height="30"><span style="font-size: 14px; color: #ffffff;"> </span></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
@@ -244,6 +244,11 @@ Route::prefix('v1')
|
|||||||
->group(function () {
|
->group(function () {
|
||||||
Route::get('/', 'index')->name('index');
|
Route::get('/', 'index')->name('index');
|
||||||
Route::post('/', 'store')->name('store');
|
Route::post('/', 'store')->name('store');
|
||||||
|
Route::get('trashed', 'trashed')->name('trashed');
|
||||||
|
Route::post('bulk-restore', 'bulkRestore')->name('bulk-restore');
|
||||||
|
Route::post('bulk-force-delete', 'bulkForceDelete')->name('bulk-force-delete');
|
||||||
|
Route::post('{id}/restore', 'restore')->name('restore');
|
||||||
|
Route::delete('{id}/force-delete', 'forceDelete')->name('force-delete');
|
||||||
Route::get('{id}', 'show')->name('show');
|
Route::get('{id}', 'show')->name('show');
|
||||||
Route::put('{id}', 'update')->name('update');
|
Route::put('{id}', 'update')->name('update');
|
||||||
Route::delete('{id}', 'destroy')->name('destroy');
|
Route::delete('{id}', 'destroy')->name('destroy');
|
||||||
@@ -256,6 +261,13 @@ Route::prefix('v1')
|
|||||||
Route::get('/', 'index')->name('index');
|
Route::get('/', 'index')->name('index');
|
||||||
Route::post('/', 'store')->name('store');
|
Route::post('/', 'store')->name('store');
|
||||||
Route::post('sync-wordpress', 'syncWordpress')->name('sync-wordpress');
|
Route::post('sync-wordpress', 'syncWordpress')->name('sync-wordpress');
|
||||||
|
Route::post('bulk-delete', 'bulkDelete')->name('bulk-delete');
|
||||||
|
Route::post('bulk-update-status', 'bulkUpdateStatus')->name('bulk-update-status');
|
||||||
|
Route::get('trashed', 'trashed')->name('trashed');
|
||||||
|
Route::post('bulk-restore', 'bulkRestore')->name('bulk-restore');
|
||||||
|
Route::post('bulk-force-delete', 'bulkForceDelete')->name('bulk-force-delete');
|
||||||
|
Route::post('{id}/restore', 'restore')->name('restore');
|
||||||
|
Route::delete('{id}/force-delete', 'forceDelete')->name('force-delete');
|
||||||
Route::get('{id}', 'show')->name('show');
|
Route::get('{id}', 'show')->name('show');
|
||||||
Route::put('{id}', 'update')->name('update');
|
Route::put('{id}', 'update')->name('update');
|
||||||
Route::delete('{id}', 'destroy')->name('destroy');
|
Route::delete('{id}', 'destroy')->name('destroy');
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ Route::prefix('v1')
|
|||||||
->controller(OrderControllerRefactor::class)
|
->controller(OrderControllerRefactor::class)
|
||||||
->group(function () {
|
->group(function () {
|
||||||
Route::get('orders', 'getClientOrders')->name('orders.list');
|
Route::get('orders', 'getClientOrders')->name('orders.list');
|
||||||
|
Route::get('orders/num/{orderNum}', 'getClientOrderDetailByOrderNum')->name('orders.detailByOrderNum');
|
||||||
Route::get('orders/{id}', 'getClientOrderDetail')->name('orders.detail');
|
Route::get('orders/{id}', 'getClientOrderDetail')->name('orders.detail');
|
||||||
Route::post('orders/{id}/retry', 'retryOrderProvisioning')->name('orders.retry');
|
Route::post('orders/{id}/retry', 'retryOrderProvisioning')->name('orders.retry');
|
||||||
Route::get('invoices', 'getClientInvoices')->name('invoices.list');
|
Route::get('invoices', 'getClientInvoices')->name('invoices.list');
|
||||||
@@ -62,6 +63,9 @@ Route::prefix('v1')
|
|||||||
Route::get('invoices/order/{orderNum}', 'getClientInvoiceDetailByOrderNum')->name(
|
Route::get('invoices/order/{orderNum}', 'getClientInvoiceDetailByOrderNum')->name(
|
||||||
'invoices.detailByOrderNum',
|
'invoices.detailByOrderNum',
|
||||||
);
|
);
|
||||||
|
Route::get('invoices/order/{orderNum}/pdf', 'downloadInvoicePdfByOrderNum')->name(
|
||||||
|
'invoices.pdfByOrderNum',
|
||||||
|
);
|
||||||
Route::get('invoices/{id}', 'getClientInvoiceDetail')->name('invoices.detail');
|
Route::get('invoices/{id}', 'getClientInvoiceDetail')->name('invoices.detail');
|
||||||
Route::get('dich-vu', 'getClientServices')->name('services.list');
|
Route::get('dich-vu', 'getClientServices')->name('services.list');
|
||||||
Route::patch('dich-vu/{id}/auto-renew', 'updateClientServiceAutoRenew')->name(
|
Route::patch('dich-vu/{id}/auto-renew', 'updateClientServiceAutoRenew')->name(
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 614 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 675 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.7 MiB |
Reference in New Issue
Block a user