Commit Graph
87 Commits
Author SHA1 Message Date
baodev0 2deb4ad74e feat: Enhance service management and transaction handling
- Implemented client access token verification middleware to secure API endpoints.
- Updated ServiceController to fetch active hosting services for authenticated users.
- Refactored OrderController to ensure order retrieval is customer-specific.
- Improved error logging in VmController for unexpected vCenter responses.
- Disabled VNPay auto-deposit in TransactionController, switching to manual deposit flow.
- Enhanced ServiceClientDetailResource to include Plesk credentials for hosting accounts.
- Adjusted VpsServiceResource to dynamically set page type based on product type.
- Added logging for PowerShellService to capture errors in RDP port changes.
- Provisioning job now resolves service plans and logs relevant information for hosting accounts.
- Updated database migrations to add necessary fields for service plans and DNS servers.
- Refactored Service and ServicePlan models to establish relationships with hosting accounts and DNS servers.
2026-08-17 11:55:48 +07:00
baodev0 7314313198 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.
2026-08-11 10:12:25 +07:00
baodev0 e3d3dea8aa Refactor code structure for improved readability and maintainability 2026-08-10 08:37:52 +07:00
baodev0 d6d63e5152 feat: Implement Plesk domain and hosting services
- Added PleskDomainService for managing domain operations (create, update, remove, get info).
- Introduced PleskHostingService for provisioning hosting accounts and notifying customers.
- Created PleskService for handling API requests to Plesk.
- Added migration to include 'type' column in dns_manager_servers table.
- Created migration for module_hosting_accounts table to track hosting subscriptions.
- Created migration for module_hosting_plesk_clients table to manage Plesk client credentials.
- Added email templates for notifying customers and admins about hosting account creation.
2026-08-06 17:24:01 +07:00
baodev0 79f06c2fa2 Add bulk update gateway endpoint to vCenter API routes
- Introduced a new POST route 'bulk-update-gateway' for bulk updating gateways.
- This route is protected by the 'module-vcenter.manager' permission middleware.
2026-08-06 15:32:51 +07:00
baodev0 90f2c97bb4 update 2026-08-06 11:18:39 +07:00
baodev0 a5e342f0f5 update ippool 2026-08-06 11:13:42 +07:00
baodev0 ad743d3767 update 2026-07-25 16:26:32 +07:00
baodev0 8a451e434e update 2026-07-25 15:18:48 +07:00
baodev0 4daf52ef3e feat: Add customer notes functionality and enhance invoice/order models with date fields 2026-07-25 11:05:34 +07:00
baodev0 cd61e1d242 feat: Update maintenance messages and localize billing labels in InvoiceItem and OrderItem models 2026-07-25 09:35:26 +07:00
baodev0 2eac92ad5f feat: Add service date handling and enhance service details in response 2026-07-25 08:47:02 +07:00
baodev0 5d2eeac6c4 feat: Enhance service management with VMware integration and update note field to LONGTEXT 2026-07-24 17:01:25 +07:00
baodev0 18106877fc update cors, api test telegram 2026-07-24 10:29:41 +07:00
baodev0 3ed33ea7e4 Refactor VM creation and configuration process
- Updated VpsServiceResource to return product UUID instead of ID.
- Modified VirtualMachineService to utilize product data for CPU, RAM, and disk settings.
- Replaced AssignIpToGuestJob with UpdateVmConfigJob in CreateVirtualMachineJob to streamline VM configuration after cloning.
- Adjusted AssignIpToGuestJob to remove unnecessary UpdateVmConfigJob dispatch and focus on IP assignment.
- Enhanced UpdateVmConfigJob to handle CPU/RAM configuration and power cycling more effectively.
- Introduced ChangeIpVMJob for handling customer-initiated IP changes asynchronously.
- Updated InvoiceRepository to set invoice due date based on maximum months instead of a fixed 7 days.
- Improved web design quote PDF layout for better readability.
- Added Times-Roman font metrics for PDF generation.
2026-07-24 09:29:43 +07:00
baodev0 ccf95114f6 refactor: Update console ticket response structure in VCenterController and ServiceController 2026-07-23 11:56:58 +07:00
baodev0 1459fd49a3 update 2026-07-23 10:51:58 +07:00
baodev0 c13ff0229d update cidr 2026-07-23 09:02:02 +07:00
baodev0 9b65d58310 update 2026-07-23 08:48:09 +07:00
baodev0 5d3ed57b32 feat: Enhance vCenter integration with resource pool and folder support
- Added methods to ResourceService for fetching resource pools and updated existing methods to include datacenter filtering.
- Modified CreateVirtualMachine to accept folder and resource pool parameters from product data.
- Updated various jobs to synchronize resource pools and include them in the provisioning process.
- Introduced new ModuleResourcePool model and migration for resource pool management.
- Enhanced existing models (ModuleDatastore, ModuleNetwork, Os) to include relationships with vCenter and resource pools.
- Added netmask field to IpPool and updated related logic for IP reservation.
- Improved error handling and logging in VM creation and IP reservation processes.
- Updated API routes to include sync functionality for vCenter.
2026-07-21 21:37:28 +07:00
baodev0 2d43e95855 Add datastore_id to OS model and related functionality; update validation and relationships 2026-07-21 11:10:45 +07:00
baodev0 c3b5417b19 update 2026-07-21 08:34:15 +07:00
baodev0 d9da3b5bb3 Add SnapshotActionMail class and email template for snapshot actions; implement email notifications for create, remove, and revert actions 2026-07-17 10:17:52 +07:00
baodev0 abc12b71ef Implement VM deletion functionality and update related services; add confirmation check and logging 2026-07-17 09:14:26 +07:00
baodev0 401dcc8783 update vm ticket 2026-07-14 17:03:38 +07:00
baodev0 f035730a44 Add username and password fields to VirtualMachines model and database migration; update related email templates to use config for frontend URL 2026-07-14 11:10:38 +07:00
baodev0 9cae94b807 Add ServiceController for managing customer services; implement index, show, and detachCustomer methods 2026-07-14 10:14:50 +07:00
baodev0 cd5239b108 Add customer status update and bulk management endpoints 2026-07-13 10:43:17 +07:00
baodev0 290dcc2fb1 Add EmailLogController and routes for email logs management 2026-07-13 09:40:21 +07:00
baodev0 dfb926055d Add feature tests for domain order management
- Implement AdminDomainOrderTest to cover admin functionalities for domain orders including listing, confirming registration, KYC updates, activation, rejection, and refunds.
- Implement ClientDomainOrderTest to cover client functionalities for placing domain orders, including validation for balance, duplicate orders, and domain normalization.
- Ensure proper handling of domain pricing and service statuses throughout the tests.
2026-07-10 14:16:35 +07:00
baodev0 61c0e026c8 update 2026-07-09 11:19:50 +07:00
baodev0 61fc870c03 update 2026-07-06 08:16:06 +07:00
baodev0 9a16a5c313 update 2026-07-06 08:00:23 +07:00
baodev0 3bb59feba3 update 2026-07-01 10:51:05 +07:00
baodev0 914e96138a update 2026-06-23 15:52:00 +07:00
baodev0 776b1a6807 update 2026-06-22 09:55:11 +07:00
baodev0 0c436153c6 update 2026-06-22 08:43:32 +07:00
baodev0 3243473843 update logic 2026-06-15 09:11:57 +07:00
baodev0 9c68273b4a Add VM rebuild pipeline with isolated job chain and admin log API 2026-05-29 18:19:38 +07:00
baodev0 7ae237ee9d Refactor VM provisioning pipeline into focused services and add IP pool
management
2026-05-29 12:03:35 +07:00
baodev0 6bb4a47bfb Add stubs for various Laravel components and scaffolding
- Created stubs for JavaScript and SASS assets.
- Added stubs for channel, command, component, controller, event, factory, job, listener, mail, middleware, migration, model, notification, observer, policy, request, resource, route provider, seeder, and validation rule.
- Implemented scaffolding for configuration, service provider, and Vite integration.
- Included example views for module structure.
- Introduced a module loader for Vite to handle asset paths dynamically.
2026-05-29 09:28:08 +07:00
baodev0 fccb0c353a feat: Add DNS management resources and importer
- Implemented DomainCollection, DomainDetailResource, DomainNSCollection, DomainNSResource, and DomainResource for handling DNS domain and record data.
- Created VpsServiceCollection and VpsServiceResource for VPS service management.
- Added DnsManagerNS and DnsManagerUser models to represent DNS records and user associations.
- Developed AdminZoneDnsSqlImporter for importing DNS data from SQL dumps, including customer and DNS domain records.
- Added migration scripts to update the customers table with new fields and sync foreign key references for DNS tables.
- Created a migration preview document outlining the mapping and schema changes for the admin zone DNS import.
2026-05-26 13:54:33 +07:00
baodev0 520f21cb11 feat: add GeneratesUniqueSlug class for unique slug generation
feat: create PostCategoryFactory for generating post category data

feat: create PostFactory for generating post data

feat: add retry_requested_at column to services table

feat: add vcenter provisioning fields to products table

feat: add module_host_id to os table

feat: create email_notification_templates table for email templates

feat: add scenario and format fields to template table

feat: add admin fields to transactions table

fix: update ticket table columns and types

feat: add uuid to ticket table and backfill existing records

fix: make ticket_reply user_id nullable

feat: create notifications table for user notifications

fix: make ticket uuid nullable

feat: create post_categories table for blog categories

feat: create posts table for blog posts

feat: add invoice email template for PDF generation
2026-05-25 15:39:42 +07:00
pbao9 551c90d60b feat: implement system-wide activity logging with database persistence, repository patterns, and admin controller access. 2026-05-16 20:01:52 +07:00
pbao9 8a115c5175 refactor: implement centralized cache key management and add utility traits for vCenter SSH operations. 2026-05-16 16:52:21 +07:00
pbao9 41de3744a8 feat: add manual deposit system, implement Bank model, remove Docker configs, and initialize comprehensive Laravel best practice documentation for AI agents. 2026-05-14 16:33:35 +07:00
pbao9 ae3b681aaa feat: add bulk delete with validation to IP Pool and update provisioning logic and email notifications 2026-05-13 15:41:56 +07:00
pbao9 1bbba4e158 feat: implement IP pool management module with CRUD operations and network integration 2026-05-13 11:02:28 +07:00
pbao9 7311a20324 feat: implement admin SMTP settings management and automated order notification system 2026-05-13 10:26:47 +07:00
pbao9 96778e7bed feat: implement VM snapshot management, enhance client resource loading, and refactor deployment workflow for production 2026-05-11 11:09:55 +07:00