update
This commit is contained in:
@@ -4,12 +4,14 @@ namespace App\Http\Controllers\admin;
|
|||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Repositories\Module\IPPool\IPPoolRepositoryInterface;
|
use App\Repositories\Module\IPPool\IPPoolRepositoryInterface;
|
||||||
|
use App\Repositories\Module\Network\NetworkRepository;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
class ModuleIPPoolController extends Controller
|
class ModuleIPPoolController extends Controller
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
public IPPoolRepositoryInterface $ipPoolRepository
|
public IPPoolRepositoryInterface $ipPoolRepository,
|
||||||
|
public NetworkRepository $moduleNetworkRepository
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
public function index(Request $request)
|
public function index(Request $request)
|
||||||
@@ -26,7 +28,12 @@ class ModuleIPPoolController extends Controller
|
|||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
$title = 'Add new server ip pool';
|
$title = 'Add new server ip pool';
|
||||||
return view('admin.module.ippool.add', compact('title'));
|
$moduleNetworks = $this->moduleNetworkRepository->filter(
|
||||||
|
[
|
||||||
|
'page' => 1
|
||||||
|
]
|
||||||
|
);
|
||||||
|
return view('admin.module.ippool.add', compact('title', 'moduleNetworks'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
@@ -48,8 +55,13 @@ class ModuleIPPoolController extends Controller
|
|||||||
public function edit(int $id = 0)
|
public function edit(int $id = 0)
|
||||||
{
|
{
|
||||||
$module = $this->ipPoolRepository->find($id);
|
$module = $this->ipPoolRepository->find($id);
|
||||||
|
$moduleNetworks = $this->moduleNetworkRepository->filter(
|
||||||
|
[
|
||||||
|
'page' => 1
|
||||||
|
]
|
||||||
|
);
|
||||||
$title = 'Edit server ip pool';
|
$title = 'Edit server ip pool';
|
||||||
return view('admin.module.ippool.edit', compact('module', 'title'));
|
return view('admin.module.ippool.edit', ['module' => $module, 'title' => $title, 'moduleNetworks' => $moduleNetworks]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update(Request $request, int $id = 0)
|
public function update(Request $request, int $id = 0)
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('module_ip_address', function (Blueprint $table) {
|
||||||
|
$table->unsignedBigInteger('module_host_id')->nullable()->default(null)->change();
|
||||||
|
$table->unsignedBigInteger('module_network_id')->nullable()->default(null)->change();
|
||||||
|
|
||||||
|
$table->foreign('module_host_id')->references('id')->on('module_host')->onDelete('set null');
|
||||||
|
$table->foreign('module_network_id')->references('id')->on('module_network')->onDelete('set null');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('module_ip_address', function (Blueprint $table) {
|
||||||
|
$table->dropForeign(['module_host_id']);
|
||||||
|
$table->dropForeign(['module_network_id']);
|
||||||
|
|
||||||
|
$table->bigInteger('module_host_id')->default(0)->nullable(false)->change();
|
||||||
|
$table->bigInteger('module_network_id')->default(0)->nullable(false)->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
+12
-20
@@ -1,5 +1,5 @@
|
|||||||
@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&display=swap);
|
@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&display=swap);
|
||||||
/*! tailwindcss v4.1.4 | MIT License | https://tailwindcss.com */
|
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
||||||
@layer properties;
|
@layer properties;
|
||||||
@layer theme, base, components, utilities;
|
@layer theme, base, components, utilities;
|
||||||
@layer theme {
|
@layer theme {
|
||||||
@@ -435,6 +435,9 @@
|
|||||||
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
|
::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
|
||||||
padding-block: 0;
|
padding-block: 0;
|
||||||
}
|
}
|
||||||
|
::-webkit-calendar-picker-indicator {
|
||||||
|
line-height: 1;
|
||||||
|
}
|
||||||
:-moz-ui-invalid {
|
:-moz-ui-invalid {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
@@ -476,7 +479,7 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
margin: -1px;
|
margin: -1px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
clip: rect(0, 0, 0, 0);
|
clip-path: inset(50%);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
}
|
}
|
||||||
@@ -1720,19 +1723,19 @@
|
|||||||
border-collapse: separate;
|
border-collapse: separate;
|
||||||
}
|
}
|
||||||
.origin-bottom-left {
|
.origin-bottom-left {
|
||||||
transform-origin: bottom left;
|
transform-origin: 0 100%;
|
||||||
}
|
}
|
||||||
.origin-bottom-right {
|
.origin-bottom-right {
|
||||||
transform-origin: bottom right;
|
transform-origin: 100% 100%;
|
||||||
}
|
}
|
||||||
.origin-left {
|
.origin-left {
|
||||||
transform-origin: left;
|
transform-origin: 0;
|
||||||
}
|
}
|
||||||
.origin-top-left {
|
.origin-top-left {
|
||||||
transform-origin: top left;
|
transform-origin: 0 0;
|
||||||
}
|
}
|
||||||
.origin-top-right {
|
.origin-top-right {
|
||||||
transform-origin: top right;
|
transform-origin: 100% 0;
|
||||||
}
|
}
|
||||||
.-translate-x-1\/2 {
|
.-translate-x-1\/2 {
|
||||||
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
--tw-translate-x: calc(calc(1/2 * 100%) * -1);
|
||||||
@@ -4807,51 +4810,43 @@
|
|||||||
}
|
}
|
||||||
.backdrop-blur-2xl {
|
.backdrop-blur-2xl {
|
||||||
--tw-backdrop-blur: blur(var(--blur-2xl));
|
--tw-backdrop-blur: blur(var(--blur-2xl));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-3xl {
|
.backdrop-blur-3xl {
|
||||||
--tw-backdrop-blur: blur(var(--blur-3xl));
|
--tw-backdrop-blur: blur(var(--blur-3xl));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-lg {
|
.backdrop-blur-lg {
|
||||||
--tw-backdrop-blur: blur(var(--blur-lg));
|
--tw-backdrop-blur: blur(var(--blur-lg));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-md {
|
.backdrop-blur-md {
|
||||||
--tw-backdrop-blur: blur(var(--blur-md));
|
--tw-backdrop-blur: blur(var(--blur-md));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-none {
|
.backdrop-blur-none {
|
||||||
--tw-backdrop-blur: ;
|
--tw-backdrop-blur: ;
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-sm {
|
.backdrop-blur-sm {
|
||||||
--tw-backdrop-blur: blur(var(--blur-sm));
|
--tw-backdrop-blur: blur(var(--blur-sm));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-xl {
|
.backdrop-blur-xl {
|
||||||
--tw-backdrop-blur: blur(var(--blur-xl));
|
--tw-backdrop-blur: blur(var(--blur-xl));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.backdrop-blur-xs {
|
.backdrop-blur-xs {
|
||||||
--tw-backdrop-blur: blur(var(--blur-xs));
|
--tw-backdrop-blur: blur(var(--blur-xs));
|
||||||
-webkit-backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
||||||
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
||||||
}
|
}
|
||||||
.transition {
|
.transition {
|
||||||
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
||||||
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
||||||
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
||||||
}
|
}
|
||||||
.transition\! {
|
.transition\! {
|
||||||
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter !important;
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter, display, content-visibility, overlay, pointer-events !important;
|
||||||
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function)) !important;
|
||||||
transition-duration: var(--tw-duration, var(--default-transition-duration)) !important;
|
transition-duration: var(--tw-duration, var(--default-transition-duration)) !important;
|
||||||
}
|
}
|
||||||
@@ -5924,14 +5919,12 @@
|
|||||||
}
|
}
|
||||||
.before\:content-\[\'\'\] {
|
.before\:content-\[\'\'\] {
|
||||||
&::before {
|
&::before {
|
||||||
content: var(--tw-content);
|
|
||||||
--tw-content: '';
|
--tw-content: '';
|
||||||
content: var(--tw-content);
|
content: var(--tw-content);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.before\:content-\[\\\'\\\'\] {
|
.before\:content-\[\\\'\\\'\] {
|
||||||
&::before {
|
&::before {
|
||||||
content: var(--tw-content);
|
|
||||||
--tw-content: \'\';
|
--tw-content: \'\';
|
||||||
content: var(--tw-content);
|
content: var(--tw-content);
|
||||||
}
|
}
|
||||||
@@ -6089,7 +6082,6 @@
|
|||||||
}
|
}
|
||||||
.after\:content-\[\'\'\] {
|
.after\:content-\[\'\'\] {
|
||||||
&::after {
|
&::after {
|
||||||
content: var(--tw-content);
|
|
||||||
--tw-content: '';
|
--tw-content: '';
|
||||||
content: var(--tw-content);
|
content: var(--tw-content);
|
||||||
}
|
}
|
||||||
|
|||||||
+46
-40
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
@@ -5,5 +5,8 @@
|
|||||||
"/js/core.min.js": "/js/core.min.js",
|
"/js/core.min.js": "/js/core.min.js",
|
||||||
"/js/main.min.js": "/js/main.min.js",
|
"/js/main.min.js": "/js/main.min.js",
|
||||||
"/js/service/vminfo.min.js": "/js/service/vminfo.min.js",
|
"/js/service/vminfo.min.js": "/js/service/vminfo.min.js",
|
||||||
"/css/app.css": "/css/app.css"
|
"/css/app.css": "/css/app.css",
|
||||||
|
"/fonts/AvertaPE-Regular.woff2?d2975139654f9cae8bac2e858686ffa8": "/fonts/AvertaPE-Regular.woff2?d2975139654f9cae8bac2e858686ffa8",
|
||||||
|
"/fonts/AvertaPE-Bold.woff2?0c3fa07354777de57ba64f1838b591dc": "/fonts/AvertaPE-Bold.woff2?0c3fa07354777de57ba64f1838b591dc",
|
||||||
|
"/fonts/AvertaPE-Extrabold.woff2?45d04f8ca8d830e0dd8e1c11b97e3bd4": "/fonts/AvertaPE-Extrabold.woff2?45d04f8ca8d830e0dd8e1c11b97e3bd4"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,10 +107,6 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<table class="table table-sm table-borderless">
|
<table class="table table-sm table-borderless">
|
||||||
<tr>
|
|
||||||
<td width="30%" class="text-muted">VM ID:</td>
|
|
||||||
<td><code>{{ $product->vmware_id ?? 'N/A' }}</code></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-muted">Tên VM:</td>
|
<td class="text-muted">Tên VM:</td>
|
||||||
<td>{{ $product->name ?? 'Chưa đặt tên' }}</td>
|
<td>{{ $product->name ?? 'Chưa đặt tên' }}</td>
|
||||||
@@ -162,10 +158,12 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="text-muted">vCenter:</td>
|
<td class="text-muted">vCenter:</td>
|
||||||
<td>
|
<td>
|
||||||
@if (isset($product->ipaddress) &&
|
@if (
|
||||||
|
isset($product->ipaddress) &&
|
||||||
isset($product->ipaddress->host) &&
|
isset($product->ipaddress->host) &&
|
||||||
isset($product->ipaddress->host->datacenter) &&
|
isset($product->ipaddress->host->datacenter) &&
|
||||||
isset($product->ipaddress->host->datacenter->vCenter))
|
isset($product->ipaddress->host->datacenter->vCenter)
|
||||||
|
)
|
||||||
{{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
|
{{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
|
||||||
@else
|
@else
|
||||||
N/A
|
N/A
|
||||||
@@ -274,9 +272,6 @@
|
|||||||
<span class="badge badge-secondary ml-1">Hết hạn</span>
|
<span class="badge badge-secondary ml-1">Hết hạn</span>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-6">
|
|
||||||
<small class="text-muted">VM ID:</small> <code>{{ $product->vmware_id ?? 'N/A' }}</code>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row mt-1">
|
<div class="row mt-1">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
|
|||||||
@@ -19,8 +19,12 @@
|
|||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<label class="col-md-3" for="module_network_id">Module Network</label>
|
<label class="col-md-3" for="module_network_id">Module Network</label>
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
<input type="text" id="module_network_id" name="module_network_id" placeholder="1"
|
<select name="module_network_id" id="module_network_id" class="form-control">
|
||||||
value="{{ old('module_network_id') }}" class="form-control">
|
<option value="">Select Module Network</option>
|
||||||
|
@foreach ($moduleNetworks as $moduleNetwork)
|
||||||
|
<option value="{{ $moduleNetwork->id }}">{{ $moduleNetwork->name . ' - ' . $moduleNetwork->network }}</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -71,12 +71,6 @@
|
|||||||
<span class="font-medium">{{ $invoice->invoiceItem->first()->server_name ?? '' }}
|
<span class="font-medium">{{ $invoice->invoiceItem->first()->server_name ?? '' }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@if ($invoice->vm_id)
|
|
||||||
<div class="flex justify-between">
|
|
||||||
<span class="text-gray-600">VM ID:</span>
|
|
||||||
<span class="font-medium text-green-600">{{ $invoice->vm_id }}</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -29,13 +29,16 @@
|
|||||||
<span class="text-gray-600">Trạng thái:</span>
|
<span class="text-gray-600">Trạng thái:</span>
|
||||||
<span class="font-medium">
|
<span class="font-medium">
|
||||||
@if ($orders->status == 0)
|
@if ($orders->status == 0)
|
||||||
<span class="bg-red-100 text-red-800 px-2 py-1 rounded-full text-xs">Chờ xử lý</span>
|
<span class="bg-red-100 text-red-800 px-2 py-1 rounded-full text-xs">Chờ xử
|
||||||
|
lý</span>
|
||||||
@elseif($orders->status == 1)
|
@elseif($orders->status == 1)
|
||||||
<span class="bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs">Đã kích hoạt</span>
|
<span class="bg-green-100 text-green-800 px-2 py-1 rounded-full text-xs">Đã kích
|
||||||
|
hoạt</span>
|
||||||
@elseif($orders->status == 2)
|
@elseif($orders->status == 2)
|
||||||
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-xs">Đã hủy</span>
|
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-xs">Đã hủy</span>
|
||||||
@elseif($orders->status == 3)
|
@elseif($orders->status == 3)
|
||||||
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs">Đang xử lý</span>
|
<span class="bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs">Đang xử
|
||||||
|
lý</span>
|
||||||
@else
|
@else
|
||||||
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-xs">Khác</span>
|
<span class="bg-gray-100 text-gray-800 px-2 py-1 rounded-full text-xs">Khác</span>
|
||||||
@endif
|
@endif
|
||||||
@@ -52,8 +55,7 @@
|
|||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<span class="text-gray-600">Họ tên:</span>
|
<span class="text-gray-600">Họ tên:</span>
|
||||||
<span
|
<span class="font-medium">{{ $orders->customer->firstname . ' ' . $orders->customer->lastname }}</span>
|
||||||
class="font-medium">{{ $orders->customer->firstname . ' ' . $orders->customer->lastname }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex justify-between">
|
<div class="flex justify-between">
|
||||||
<span class="text-gray-600">Số điện thoại:</span>
|
<span class="text-gray-600">Số điện thoại:</span>
|
||||||
@@ -79,12 +81,10 @@
|
|||||||
<th class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider">
|
<th class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider">
|
||||||
Mô tả
|
Mô tả
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider text-right">
|
||||||
class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider text-right">
|
|
||||||
Số lượng
|
Số lượng
|
||||||
</th>
|
</th>
|
||||||
<th
|
<th class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider text-right">
|
||||||
class="px-4 py-3 text-sm font-medium text-gray-500 uppercase tracking-wider text-right">
|
|
||||||
Giá
|
Giá
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -200,13 +200,10 @@
|
|||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
@if ($orders->status == 1)
|
@if ($orders->status == 1)
|
||||||
<div class="flex flex-row justify-between pt-3 border-t border-gray-200">
|
<div class="flex flex-row justify-end pt-3 border-t border-gray-200">
|
||||||
<flux:modal.trigger name="destroy-order">
|
<flux:modal.trigger name="confirm-order" class="flex-end">
|
||||||
<flux:button type="button" variant="danger" icon="trash">Huỷ đơn hàng</flux:button>
|
<flux:button type="button" variant="primary" color="orange" icon="credit-card">Xác nhận
|
||||||
</flux:modal.trigger>
|
thanh toán</flux:button>
|
||||||
|
|
||||||
<flux:modal.trigger name="confirm-order">
|
|
||||||
<flux:button type="button" variant="primary" color="orange" icon="credit-card">Xác nhận thanh toán</flux:button>
|
|
||||||
</flux:modal.trigger>
|
</flux:modal.trigger>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@@ -235,8 +232,8 @@
|
|||||||
<div class="flex-1">
|
<div class="flex-1">
|
||||||
<h3 class="text-lg font-medium text-blue-800">Bạn cần hỗ trợ?</h3>
|
<h3 class="text-lg font-medium text-blue-800">Bạn cần hỗ trợ?</h3>
|
||||||
<p class="text-blue-600 mt-1">Nếu bạn gặp bất kỳ vấn đề nào khi thanh toán, vui lòng liên hệ với
|
<p class="text-blue-600 mt-1">Nếu bạn gặp bất kỳ vấn đề nào khi thanh toán, vui lòng liên hệ với
|
||||||
chúng tôi thông qua. </br> Hotline <span
|
chúng tôi thông qua. </br> Hotline <span class="font-medium">{{ setting('setting.tel') }}</span>
|
||||||
class="font-medium">{{ setting('setting.tel') }}</span> hoặc
|
hoặc
|
||||||
thông qua Email <span class="font-medium">{{ setting('setting.support') }}</span></p>
|
thông qua Email <span class="font-medium">{{ setting('setting.support') }}</span></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -135,7 +135,6 @@
|
|||||||
<div class="mt-6 pt-4 border-t border-gray-200">
|
<div class="mt-6 pt-4 border-t border-gray-200">
|
||||||
<div class="flex items-center justify-between text-sm text-gray-500">
|
<div class="flex items-center justify-between text-sm text-gray-500">
|
||||||
<span>Cập nhật lần cuối: {{ $vmInfo['last_updated'] }}</span>
|
<span>Cập nhật lần cuối: {{ $vmInfo['last_updated'] }}</span>
|
||||||
<span>VM ID: {{ $vmInfo['vm_id'] }}</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
|
|||||||
Reference in New Issue
Block a user