diff --git a/app/Http/Controllers/admin/package/Datastore.php b/app/Http/Controllers/admin/package/Datastore.php
index 75b167f..c89aef6 100644
--- a/app/Http/Controllers/admin/package/Datastore.php
+++ b/app/Http/Controllers/admin/package/Datastore.php
@@ -11,13 +11,15 @@ use App\Repositories\Module\Host\HostRepositoryInterface;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
+use Yajra\DataTables\Facades\DataTables;
class Datastore extends Controller
{
public function __construct(
public DatastoreRepositoryInterface $datastoreRepository,
public HostRepositoryInterface $hostRepository
- ) {}
+ ) {
+ }
//
public function index(Request $request)
{
@@ -30,7 +32,7 @@ class Datastore extends Controller
]
);
$title = 'List all datastore';
- return view('admin.package.datastore.index', compact('title', 'datastore'));
+ return view('administrator.pages.package.datastore.index', compact('title', 'datastore'));
}
public function sync(SyncDatastore $syncDatastore)
{
@@ -41,14 +43,14 @@ class Datastore extends Controller
public function create()
{
$title = 'Add Datastore';
- return view('admin.package.datastore.add', compact('title'));
+ return view('administrator.pages.package.datastore.add', compact('title'));
}
public function store(DatastoreRequest $request)
{
$request->validated();
$host = $this->hostRepository->find($request->get('module_host_id'));
- if (! $host) {
+ if (!$host) {
return back()->withErrors('Invalid Request');
}
$isCreated = $this->datastoreRepository->findBy('datastore', $request->get('datastore'));
@@ -70,23 +72,23 @@ class Datastore extends Controller
{
$datastore = $this->datastoreRepository->findWithRelationships($id, ['host.datacenter']);
- if (! $datastore) {
+ if (!$datastore) {
return back()->withErrors('Invalid Request');
}
$title = 'Edit Datastore';
- return view('admin.package.datastore.edit', compact('title', 'datastore'));
+ return view('administrator.pages.package.datastore.edit', compact('title', 'datastore'));
}
public function update(int $id, DatastoreRequest $request)
{
$datastore = $this->datastoreRepository->find($id);
- if (! $datastore) {
+ if (!$datastore) {
return redirect()->route('package.datastore.index')->withErrors('Invalid request.');
}
$request->validated();
$host = $this->hostRepository->find($request->get('module_host_id'));
- if (! $host) {
+ if (!$host) {
return back()->withErrors('Invalid Request');
}
if ($request->get('datastore') !== $datastore->datastore) {
@@ -110,7 +112,7 @@ class Datastore extends Controller
{
$datastore = $this->datastoreRepository->find($id);
- if (! $datastore) {
+ if (!$datastore) {
return back()->withErrors('Invalid request.');
}
@@ -124,4 +126,28 @@ class Datastore extends Controller
}
return redirect()->route('package.datastore.index')->with('success', 'Deleted datacenter successfully!');
}
+
+ public function datatable(Request $request)
+ {
+ $query = $this->datastoreRepository->filter(
+ $request->all(),
+ ['host.datacenter.vCenter'],
+ [],
+ ['*'],
+ true
+ );
+
+ return DataTables::eloquent($query)
+ ->addColumn(
+ 'action',
+ fn($d) =>
+ 'Edit '
+ )
+ ->filterColumn('host.datacenter.v_center.host', function ($query, $keyword) {
+ $query->whereHas('host.datacenter.vCenter', function ($q) use ($keyword) {
+ $q->where('host', 'like', "%{$keyword}%");
+ });
+ })
+ ->make(true);
+ }
}
diff --git a/app/Http/Controllers/admin/package/Folder.php b/app/Http/Controllers/admin/package/Folder.php
index d9eaf24..e0f6cb8 100644
--- a/app/Http/Controllers/admin/package/Folder.php
+++ b/app/Http/Controllers/admin/package/Folder.php
@@ -11,13 +11,15 @@ use App\Repositories\Module\Folder\FolderRepositoryInterface;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
+use Yajra\DataTables\Facades\DataTables;
class Folder extends Controller
{
public function __construct(
public FolderRepositoryInterface $folderRepository,
public DatacenterRepositoryInterface $datacenterRepository
- ) {}
+ ) {
+ }
public function index(Request $request)
{
$folders = $this->folderRepository->filter([
@@ -25,7 +27,7 @@ class Folder extends Controller
], ['datacenter.vCenter']);
$title = 'List all folder';
- return view('admin.package.folder.index', compact('folders', 'title'));
+ return view('administrator.pages.package.folder.index', compact('folders', 'title'));
}
public function sync(SyncFolder $syncFolder)
{
@@ -35,14 +37,14 @@ class Folder extends Controller
public function create()
{
$title = 'Add Folder';
- return view('admin.package.folder.add', compact('title'));
+ return view('administrator.pages.package.folder.add', compact('title'));
}
public function store(FolderRequest $request)
{
$request->validated();
$datacenter = $this->datacenterRepository->find($request->get('module_datacenter_id'));
- if (! $datacenter) {
+ if (!$datacenter) {
return back()->withErrors('Invalid Request');
}
$isCreated = $this->folderRepository->findBy('folder', $request->get('folder'));
@@ -63,23 +65,23 @@ class Folder extends Controller
public function edit(int $id = 0)
{
$folder = $this->folderRepository->findWithRelationships($id, ['datacenter']);
- if (! $folder) {
+ if (!$folder) {
return back()->withErrors('Invalid Request');
}
$title = 'Edit Folder';
- return view('admin.package.folder.edit', compact('title', 'folder'));
+ return view('administrator.pages.package.folder.edit', compact('title', 'folder'));
}
public function update(int $id, FolderRequest $request)
{
$folder = $this->folderRepository->find($id);
- if (! $folder) {
+ if (!$folder) {
return redirect()->route('package.folder.index')->withErrors('Invalid request.');
}
$request->validated();
$datacenter = $this->datacenterRepository->find($request->get('module_datacenter_id'));
- if (! $datacenter) {
+ if (!$datacenter) {
return back()->withErrors('Invalid Request');
}
if ($request->get('folder') !== $folder->folder) {
@@ -104,7 +106,7 @@ class Folder extends Controller
{
$datastore = $this->folderRepository->find($id);
- if (! $datastore) {
+ if (!$datastore) {
return back()->withErrors('Invalid request.');
}
@@ -118,4 +120,28 @@ class Folder extends Controller
}
return redirect()->route('package.folder.index')->with('success', 'Deleted successfully!');
}
+
+ public function datatable(Request $request)
+ {
+ $query = $this->folderRepository->filter(
+ $request->all(),
+ ['datacenter.vCenter'],
+ [],
+ ['*'],
+ true
+ );
+
+ return DataTables::eloquent($query)
+ ->addColumn(
+ 'action',
+ fn($d) =>
+ 'Edit '
+ )
+ ->filterColumn('datacenter.v_center.host', function ($query, $keyword) {
+ $query->whereHas('datacenter.vCenter', function ($q) use ($keyword) {
+ $q->where('host', 'like', "%{$keyword}%");
+ });
+ })
+ ->make(true);
+ }
}
diff --git a/app/Repositories/Module/Datastore/DatastoreCachedRepository.php b/app/Repositories/Module/Datastore/DatastoreCachedRepository.php
index 5670da4..836b2ee 100644
--- a/app/Repositories/Module/Datastore/DatastoreCachedRepository.php
+++ b/app/Repositories/Module/Datastore/DatastoreCachedRepository.php
@@ -16,19 +16,32 @@ class DatastoreCachedRepository extends BaseCachedRepository implements Datastor
{
return $this->datastoreRepository->getModel();
}
- public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'])
- {
+ public function filter(
+ array $data = [],
+ array $relationships = [],
+ array $withCount = [],
+ array $select = ['*'],
+ bool $returnQuery = false
+ ) {
+ if (
+ $returnQuery ||
+ !empty($data['paginate'])
+ ) {
+ return $this->datastoreRepository
+ ->filter($data, $relationships, $withCount, $select, $returnQuery);
+ }
+
$cacheKey = $this->getCacheKey(md5(json_encode([
- 'filterItem' => [
- 'data' => $data,
- 'relationships' => $relationships,
- 'select' => $select,
- 'withCount' => $withCount
- ]
+ 'filter' => compact('data', 'relationships', 'withCount', 'select')
])));
- return Cache::remember($cacheKey, $this->cacheTime, function () use ($data, $relationships, $select, $withCount) {
- return $this->datastoreRepository->filter($data, $relationships, $withCount, $select);
- });
+
+ return Cache::remember(
+ $cacheKey,
+ $this->cacheTime,
+ fn() =>
+ $this->datastoreRepository
+ ->filter($data, $relationships, $withCount, $select, $returnQuery)
+ );
}
public function findBy(string $key = '', string|int|null $value = '')
{
@@ -38,11 +51,13 @@ class DatastoreCachedRepository extends BaseCachedRepository implements Datastor
'value' => $value
]
])));
- return Cache::remember($cacheKey, $this->cacheTime, function () use ($key, $value) {
- return $this->datastoreRepository->findBy($key, $value);
- });
+ return Cache::remember(
+ $cacheKey,
+ $this->cacheTime,
+ fn() => $this->datastoreRepository->findBy($key, $value)
+ );
}
- public function findWithRelationships(int $id = 0, array $relationships = [],array $withCount = [], array $withSum = [])
+ public function findWithRelationships(int $id = 0, array $relationships = [], array $withCount = [], array $withSum = [])
{
$cacheKey = $this->getCacheKey(md5(json_encode([
'findWithRelationships' => [
@@ -50,8 +65,10 @@ class DatastoreCachedRepository extends BaseCachedRepository implements Datastor
'relationships' => $relationships
]
])));
- return Cache::remember($cacheKey, $this->cacheTime, function () use ($id, $relationships,$withCount,$withSum) {
- return $this->datastoreRepository->findWithRelationships($id, $relationships,$withCount,$withSum);
- });
+ return Cache::remember(
+ $cacheKey,
+ $this->cacheTime,
+ fn() => $this->datastoreRepository->findWithRelationships($id, $relationships, $withCount, $withSum)
+ );
}
}
diff --git a/app/Repositories/Module/Datastore/DatastoreRepository.php b/app/Repositories/Module/Datastore/DatastoreRepository.php
index 15713e9..a4f1e82 100644
--- a/app/Repositories/Module/Datastore/DatastoreRepository.php
+++ b/app/Repositories/Module/Datastore/DatastoreRepository.php
@@ -11,23 +11,30 @@ class DatastoreRepository extends BaseRepository implements DatastoreRepositoryI
{
return ModuleDatastore::class;
}
- public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'])
+ public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'], bool $returnQuery = false)
{
- $model = $this->model->with($relationships)->select($select);
-
+ $query = $this->model->with($relationships)->select($select);
+
if (isset($data['status'])) {
- $model = $model->where("status", $data['status']);
+ $query = $query->where("status", $data['status']);
}
if (isset($data['module_host_id']) && $data['module_host_id']) {
- $model = $model->where("module_host_id", $data['module_host_id']);
+ $query->where("module_host_id", $data['module_host_id']);
}
if (count($withCount) > 0) {
- $model = $model->withCount($withCount);
+ $query->withCount($withCount);
}
- if(isset($data['page'])) {
- return $model->paginate(15);
+ if ($returnQuery) {
+ return $query;
}
- return $model->get();
+
+ if (!empty($data['paginate'])) {
+ return $query->paginate(
+ $data['per_page'] ?? 15
+ );
+ }
+
+ return $query->get();
}
public function findWithRelationships(int $id = 0, array $relationships = [], array $withCount = [], array $withSum = [])
{
diff --git a/app/Repositories/Module/Datastore/DatastoreRepositoryInterface.php b/app/Repositories/Module/Datastore/DatastoreRepositoryInterface.php
index 486110b..608371b 100644
--- a/app/Repositories/Module/Datastore/DatastoreRepositoryInterface.php
+++ b/app/Repositories/Module/Datastore/DatastoreRepositoryInterface.php
@@ -3,9 +3,16 @@ namespace App\Repositories\Module\Datastore;
use App\Repositories\BaseRepositoryInterface;
-interface DatastoreRepositoryInterface extends BaseRepositoryInterface {
- public function filter(array $data = [],array $relationships = [],array $withCount = [],array $select = ['*']);
- public function findBy(string $key = '',string|int|null $value = '' );
- public function findWithRelationships(int $id = 0, array $relationships = [],array $withCount = [], array $withSum = []);
+interface DatastoreRepositoryInterface extends BaseRepositoryInterface
+{
+ public function filter(
+ array $data = [],
+ array $relationships = [],
+ array $withCount = [],
+ array $select = ['*'],
+ bool $returnQuery = false
+ );
+ public function findBy(string $key = '', string|int|null $value = '');
+ public function findWithRelationships(int $id = 0, array $relationships = [], array $withCount = [], array $withSum = []);
}
\ No newline at end of file
diff --git a/app/Repositories/Module/Folder/FolderCachedRepository.php b/app/Repositories/Module/Folder/FolderCachedRepository.php
index 93f66ad..0d8840a 100644
--- a/app/Repositories/Module/Folder/FolderCachedRepository.php
+++ b/app/Repositories/Module/Folder/FolderCachedRepository.php
@@ -16,19 +16,32 @@ class FolderCachedRepository extends BaseCachedRepository implements FolderRepos
{
return $this->folderRepository->getModel();
}
- public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'])
- {
+ public function filter(
+ array $data = [],
+ array $relationships = [],
+ array $withCount = [],
+ array $select = ['*'],
+ bool $returnQuery = false
+ ) {
+ if (
+ $returnQuery ||
+ !empty($data['paginate'])
+ ) {
+ return $this->folderRepository
+ ->filter($data, $relationships, $withCount, $select, $returnQuery);
+ }
+
$cacheKey = $this->getCacheKey(md5(json_encode([
- 'filterItem' => [
- 'data' => $data,
- 'relationships' => $relationships,
- 'select' => $select,
- 'withCount' => $withCount
- ]
+ 'filter' => compact('data', 'relationships', 'withCount', 'select')
])));
- return Cache::remember($cacheKey, $this->cacheTime, function () use ($data, $relationships, $select, $withCount) {
- return $this->folderRepository->filter($data, $relationships, $withCount, $select);
- });
+
+ return Cache::remember(
+ $cacheKey,
+ $this->cacheTime,
+ fn() =>
+ $this->folderRepository
+ ->filter($data, $relationships, $withCount, $select, $returnQuery)
+ );
}
public function findBy(string $key = '', string|int|null $value = '')
{
@@ -42,7 +55,7 @@ class FolderCachedRepository extends BaseCachedRepository implements FolderRepos
return $this->folderRepository->findBy($key, $value);
});
}
- public function findWithRelationships(int $id = 0, array $relationships = [],array $withCount = [], array $withSum = [])
+ public function findWithRelationships(int $id = 0, array $relationships = [], array $withCount = [], array $withSum = [])
{
$cacheKey = $this->getCacheKey(md5(json_encode([
'findWithRelationships' => [
@@ -50,8 +63,8 @@ class FolderCachedRepository extends BaseCachedRepository implements FolderRepos
'relationships' => $relationships
]
])));
- return Cache::remember($cacheKey, $this->cacheTime, function () use ($id, $relationships,$withCount,$withSum) {
- return $this->folderRepository->findWithRelationships($id, $relationships,$withCount,$withSum);
+ return Cache::remember($cacheKey, $this->cacheTime, function () use ($id, $relationships, $withCount, $withSum) {
+ return $this->folderRepository->findWithRelationships($id, $relationships, $withCount, $withSum);
});
}
}
diff --git a/app/Repositories/Module/Folder/FolderRepository.php b/app/Repositories/Module/Folder/FolderRepository.php
index f25f1e7..f0e50d5 100644
--- a/app/Repositories/Module/Folder/FolderRepository.php
+++ b/app/Repositories/Module/Folder/FolderRepository.php
@@ -11,21 +11,26 @@ class FolderRepository extends BaseRepository implements FolderRepositoryInterfa
{
return ModuleFolder::class;
}
- public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'])
+ public function filter(array $data = [], array $relationships = [], array $withCount = [], array $select = ['*'], bool $returnQuery = false)
{
- $model = $this->model->with($relationships)->select($select);
+ $query = $this->model->with($relationships)->select($select);
if (isset($data['module_datacenter_id']) && $data['module_datacenter_id']) {
- $model = $model->where("module_datacenter_id", $data['module_datacenter_id']);
+ $query->where("module_datacenter_id", $data['module_datacenter_id']);
}
if (count($withCount) > 0) {
- $model = $model->withCount($withCount);
+ $query->withCount($withCount);
}
- if (isset($data['page'])) {
- return $model->paginate(15);
+ if ($returnQuery) {
+ return $query;
}
- return $model->get();
+ if (!empty($data['paginate'])) {
+ return $query->paginate(
+ $data['per_page'] ?? 15
+ );
+ }
+ return $query->get();
}
public function findBy(string $key = '', string|int|null $value = '')
{
diff --git a/app/Repositories/Module/Folder/FolderRepositoryInterface.php b/app/Repositories/Module/Folder/FolderRepositoryInterface.php
index f61169d..1579253 100644
--- a/app/Repositories/Module/Folder/FolderRepositoryInterface.php
+++ b/app/Repositories/Module/Folder/FolderRepositoryInterface.php
@@ -3,9 +3,16 @@ namespace App\Repositories\Module\Folder;
use App\Repositories\BaseRepositoryInterface;
-interface FolderRepositoryInterface extends BaseRepositoryInterface{
- public function filter(array $data = [],array $relationships = [],array $withCount = [],array $select = ['*']);
- public function findBy(string $key = '',string|int|null $value = '' );
- public function findWithRelationships(int $id = 0, array $relationships = [],array $withCount = [], array $withSum = []);
+interface FolderRepositoryInterface extends BaseRepositoryInterface
+{
+ public function filter(
+ array $data = [],
+ array $relationships = [],
+ array $withCount = [],
+ array $select = ['*'],
+ bool $returnQuery = false
+ );
+ public function findBy(string $key = '', string|int|null $value = '');
+ public function findWithRelationships(int $id = 0, array $relationships = [], array $withCount = [], array $withSum = []);
}
\ No newline at end of file
diff --git a/database/migrations/2026_01_31_093643_update_fk_column_module_folder.php b/database/migrations/2026_01_31_093643_update_fk_column_module_folder.php
new file mode 100644
index 0000000..e9f9aee
--- /dev/null
+++ b/database/migrations/2026_01_31_093643_update_fk_column_module_folder.php
@@ -0,0 +1,48 @@
+unsignedBigInteger('module_datacenter_id')->nullable()->change();
+ });
+
+ // Clean up orphan records that point to non-existent datacenters
+ DB::table('module_folder')
+ ->whereNotNull('module_datacenter_id')
+ ->whereNotExists(function ($query) {
+ $query->select(DB::raw(1))
+ ->from('module_datacenter')
+ ->whereColumn('module_folder.module_datacenter_id', 'module_datacenter.id');
+ })
+ ->update(['module_datacenter_id' => null]);
+
+ Schema::table('module_folder', function (Blueprint $table) {
+ $table->foreign('module_datacenter_id')
+ ->references('id')
+ ->on('module_datacenter')
+ ->cascadeOnDelete();
+ });
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table('module_folder', function (Blueprint $table) {
+ $table->dropForeign(['module_datacenter_id']);
+ // Revert changes if necessary, though restoring invalid data isn't possible.
+ // We just restore the foreign key constraint if that was the intent.
+ $table->foreign('module_datacenter_id')->references('id')->on('module_datacenter')->onDelete('cascade');
+ });
+ }
+};
diff --git a/resources/.DS_Store b/resources/.DS_Store
new file mode 100644
index 0000000..0a76604
Binary files /dev/null and b/resources/.DS_Store differ
diff --git a/resources/views/.DS_Store b/resources/views/.DS_Store
new file mode 100644
index 0000000..5008ddf
Binary files /dev/null and b/resources/views/.DS_Store differ
diff --git a/resources/views/admin/account.blade.php b/resources/views/admin/account.blade.php
deleted file mode 100644
index 2b44cde..0000000
--- a/resources/views/admin/account.blade.php
+++ /dev/null
@@ -1,89 +0,0 @@
-@extends('admin.main')
-@section('content')
-
-@endsection()
diff --git a/resources/views/admin/addon/add.blade.php b/resources/views/admin/addon/add.blade.php
deleted file mode 100644
index d1d3d80..0000000
--- a/resources/views/admin/addon/add.blade.php
+++ /dev/null
@@ -1,81 +0,0 @@
-@extends("admin.main")
-@section("content")
-
-@endsection
diff --git a/resources/views/admin/addon/edit.blade.php b/resources/views/admin/addon/edit.blade.php
deleted file mode 100644
index c1e2a20..0000000
--- a/resources/views/admin/addon/edit.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@extends("admin.main")
-@section("content")
-
-@endsection
diff --git a/resources/views/admin/addon/index.blade.php b/resources/views/admin/addon/index.blade.php
deleted file mode 100644
index 6fb78f1..0000000
--- a/resources/views/admin/addon/index.blade.php
+++ /dev/null
@@ -1,59 +0,0 @@
-@extends("admin.main")
-@section("content")
-
-
-
-
-
-
- Name
- Price
- Type
-
-
-
-
-
- @if(count($addOns) > 0)
- @foreach($addOns->all() as $item)
-
-
- {{ $item->name }}
-
-
- {{ number_format($item->price,0,',','.') }} vnđ
-
-
- {{ $item->Type->name }}
-
-
-
-
-
-
-
-
-
-
- @endforeach
- @endif
-
-
-
-
-
-@endsection
diff --git a/resources/views/admin/block/Group.blade.php b/resources/views/admin/block/Group.blade.php
deleted file mode 100644
index eaad5b7..0000000
--- a/resources/views/admin/block/Group.blade.php
+++ /dev/null
@@ -1,10 +0,0 @@
-
- Add New Group
-
- File Import Demo
diff --git a/resources/views/admin/block/ModuleDNS.blade.php b/resources/views/admin/block/ModuleDNS.blade.php
deleted file mode 100644
index 0fec4d0..0000000
--- a/resources/views/admin/block/ModuleDNS.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
- Add New Server
-
- File Import Demo
diff --git a/resources/views/admin/block/ModuleHosting.blade.php b/resources/views/admin/block/ModuleHosting.blade.php
deleted file mode 100644
index 7d63c1e..0000000
--- a/resources/views/admin/block/ModuleHosting.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
- Add New Server
-
- File Import Demo
diff --git a/resources/views/admin/block/ModuleIPPool.blade.php b/resources/views/admin/block/ModuleIPPool.blade.php
deleted file mode 100644
index f3e80ad..0000000
--- a/resources/views/admin/block/ModuleIPPool.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
- Add New IP Pool
-
- File Import Demo
diff --git a/resources/views/admin/block/ModuleVCenter.blade.php b/resources/views/admin/block/ModuleVCenter.blade.php
deleted file mode 100644
index e3979d6..0000000
--- a/resources/views/admin/block/ModuleVCenter.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
- Add New Server
-
- File Import Demo
diff --git a/resources/views/admin/block/Sync/All.blade.php b/resources/views/admin/block/Sync/All.blade.php
deleted file mode 100644
index d0e61e5..0000000
--- a/resources/views/admin/block/Sync/All.blade.php
+++ /dev/null
@@ -1 +0,0 @@
- Sync All Package
diff --git a/resources/views/admin/block/Sync/Datacenter.blade.php b/resources/views/admin/block/Sync/Datacenter.blade.php
deleted file mode 100644
index 9ddca44..0000000
--- a/resources/views/admin/block/Sync/Datacenter.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
- Add Datacenter
-@include("admin.block.Sync.All")
- Sync Datacenter
diff --git a/resources/views/admin/block/Sync/Datastore.blade.php b/resources/views/admin/block/Sync/Datastore.blade.php
deleted file mode 100644
index 9f253d4..0000000
--- a/resources/views/admin/block/Sync/Datastore.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
- Add Datastore
-@include("admin.block.Sync.All")
- Sync Datastore
diff --git a/resources/views/admin/block/Sync/Folder.blade.php b/resources/views/admin/block/Sync/Folder.blade.php
deleted file mode 100644
index 0a163de..0000000
--- a/resources/views/admin/block/Sync/Folder.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
- Add Folder
-@include("admin.block.Sync.All")
- Sync Folder
diff --git a/resources/views/admin/block/Sync/Host.blade.php b/resources/views/admin/block/Sync/Host.blade.php
deleted file mode 100644
index 54ce5a7..0000000
--- a/resources/views/admin/block/Sync/Host.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
- Add Host
-@include("admin.block.Sync.All")
- Sync Host
diff --git a/resources/views/admin/block/Sync/Network.blade.php b/resources/views/admin/block/Sync/Network.blade.php
deleted file mode 100644
index 44fef41..0000000
--- a/resources/views/admin/block/Sync/Network.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
- Add Network
-@include("admin.block.Sync.All")
- Sync Network
diff --git a/resources/views/admin/block/btn.blade.php b/resources/views/admin/block/btn.blade.php
deleted file mode 100644
index 58960b1..0000000
--- a/resources/views/admin/block/btn.blade.php
+++ /dev/null
@@ -1,2 +0,0 @@
- Add New Product Group
- Add New Product
diff --git a/resources/views/admin/block/import.blade.php b/resources/views/admin/block/import.blade.php
deleted file mode 100644
index 929da64..0000000
--- a/resources/views/admin/block/import.blade.php
+++ /dev/null
@@ -1,8 +0,0 @@
- Add New Product
-
diff --git a/resources/views/admin/block/nav.blade.php b/resources/views/admin/block/nav.blade.php
deleted file mode 100644
index aaf7c0d..0000000
--- a/resources/views/admin/block/nav.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
diff --git a/resources/views/admin/component/addon.blade.php b/resources/views/admin/component/addon.blade.php
deleted file mode 100644
index 0762904..0000000
--- a/resources/views/admin/component/addon.blade.php
+++ /dev/null
@@ -1,17 +0,0 @@
-@if($addon)
- @foreach($addon as $item)
-
- @endforeach
-@endif
diff --git a/resources/views/admin/component/media.blade.php b/resources/views/admin/component/media.blade.php
deleted file mode 100644
index 6ebdf2b..0000000
--- a/resources/views/admin/component/media.blade.php
+++ /dev/null
@@ -1,11 +0,0 @@
-@if(count($media))
- @foreach($media as $item)
-
- @endforeach
-@endif
diff --git a/resources/views/admin/copyright.blade.php b/resources/views/admin/copyright.blade.php
deleted file mode 100644
index 65b5e3d..0000000
--- a/resources/views/admin/copyright.blade.php
+++ /dev/null
@@ -1,3 +0,0 @@
-
- Copyright © {{ date('Y') }} {{ ucfirst(setting('company')) }}. All rights reserved.
-
diff --git a/resources/views/admin/coupon/add.blade.php b/resources/views/admin/coupon/add.blade.php
deleted file mode 100644
index b251cef..0000000
--- a/resources/views/admin/coupon/add.blade.php
+++ /dev/null
@@ -1,109 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add coupon"))
-
-
- @else
-
-
Access Denied - You are not assigned to any Coupon management department
-
- @endif
- @push('style')
-
- @endpush
- @push('scripts')
-
-
- @endpush
-@endsection
diff --git a/resources/views/admin/coupon/edit.blade.php b/resources/views/admin/coupon/edit.blade.php
deleted file mode 100644
index a740464..0000000
--- a/resources/views/admin/coupon/edit.blade.php
+++ /dev/null
@@ -1,110 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add coupon"))
-
-
- @else
-
-
Access Denied - You are not assigned to any Coupon management department
-
- @endif
- @push('style')
-
- @endpush
- @push('scripts')
-
-
- @endpush
-@endsection
diff --git a/resources/views/admin/coupon/index.blade.php b/resources/views/admin/coupon/index.blade.php
deleted file mode 100644
index e9ec5f9..0000000
--- a/resources/views/admin/coupon/index.blade.php
+++ /dev/null
@@ -1,90 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('manager coupon'))
-
- @else
-
-
Access Denied - You are not assigned to any Coupon
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/action/addon.blade.php b/resources/views/admin/customer/action/addon.blade.php
deleted file mode 100644
index 6c0dc9c..0000000
--- a/resources/views/admin/customer/action/addon.blade.php
+++ /dev/null
@@ -1,110 +0,0 @@
-
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/customer/action/selector.blade.php b/resources/views/admin/customer/action/selector.blade.php
deleted file mode 100644
index 1e67234..0000000
--- a/resources/views/admin/customer/action/selector.blade.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
diff --git a/resources/views/admin/customer/add.blade.php b/resources/views/admin/customer/add.blade.php
deleted file mode 100644
index 0e002a4..0000000
--- a/resources/views/admin/customer/add.blade.php
+++ /dev/null
@@ -1,123 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add customer"))
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/addPay.blade.php b/resources/views/admin/customer/addPay.blade.php
deleted file mode 100644
index 9c33f68..0000000
--- a/resources/views/admin/customer/addPay.blade.php
+++ /dev/null
@@ -1,69 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit customer"))
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/console.blade.php b/resources/views/admin/customer/console.blade.php
deleted file mode 100644
index b4730bd..0000000
--- a/resources/views/admin/customer/console.blade.php
+++ /dev/null
@@ -1,273 +0,0 @@
-@extends('admin.main')
-
-@push('style')
-
-
-
-@endpush
-
-@section('content')
-
-
-
-
-
-
-
-
VM: {{ $product->name ?? 'VM Console' }}
-
-
-
-
-
-
-
-
-
- Nhập văn bản:
-
-
-
-
-
-
- Toàn màn hình
-
-
- Ctrl+Alt+Del
-
-
- Gửi văn bản
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ __('Đang kết nối đến vCenter') }}
-
{{ __('Khởi tạo kết nối Console') }}
-
-
-
-
-
-
-
-
-
-
-
- {{ __('Đang thiết lập phiên làm việc...') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-@endsection
diff --git a/resources/views/admin/customer/domain.blade.php b/resources/views/admin/customer/domain.blade.php
deleted file mode 100644
index 2af4728..0000000
--- a/resources/views/admin/customer/domain.blade.php
+++ /dev/null
@@ -1,20 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit customer"))
-
-
-
-
- Feature in development
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/form/hosting.blade.php b/resources/views/admin/customer/form/hosting.blade.php
deleted file mode 100644
index ac78115..0000000
--- a/resources/views/admin/customer/form/hosting.blade.php
+++ /dev/null
@@ -1,120 +0,0 @@
-@php use Illuminate\Support\Carbon; @endphp
-@php use App\Http\Helpers\Helper; @endphp
-
diff --git a/resources/views/admin/customer/form/scripts/vps.blade.php b/resources/views/admin/customer/form/scripts/vps.blade.php
deleted file mode 100644
index a87969f..0000000
--- a/resources/views/admin/customer/form/scripts/vps.blade.php
+++ /dev/null
@@ -1,569 +0,0 @@
-
diff --git a/resources/views/admin/customer/form/vps.blade.php b/resources/views/admin/customer/form/vps.blade.php
deleted file mode 100644
index 5a4dba4..0000000
--- a/resources/views/admin/customer/form/vps.blade.php
+++ /dev/null
@@ -1,431 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- Tên VM:
- {{ $product->name ?? 'Chưa đặt tên' }}
-
-
- Trạng thái:
-
- @if ($product->status == 1)
- Đang chạy
- @elseif($product->status == 2)
- Tạm dừng
- @elseif($product->status == 3)
- Đang khởi tạo
- @elseif($product->status == 0)
- Đã dừng
- @elseif($product->status == 4)
- Hết hạn
- @else
- Không xác định
- @endif
-
-
-
- Hostname:
- {{ $product->hostname ?? 'N/A' }}
-
-
-
-
-
-
- IP Address:
- {{ $product->ipaddress->ip ?? 'N/A' }}
-
-
- Username:
- {{ $product->user ?? 'N/A' }}
-
-
- Hệ điều hành:
-
- @if (isset($product->os) && isset($product->os->osGroup))
- {{ $product->os->osGroup->name ?? 'Unknown' }} {{ $product->os->version ?? '' }}
- @else
- N/A
- @endif
-
-
-
- vCenter:
-
- @if (
- isset($product->ipaddress) &&
- isset($product->ipaddress->host) &&
- isset($product->ipaddress->host->datacenter) &&
- isset($product->ipaddress->host->datacenter->vCenter)
-)
- {{ $product->ipaddress->host->datacenter->vCenter->host ?? 'N/A' }}
- @else
- N/A
- @endif
-
-
-
-
-
-
-
- @if (isset($product->os) && isset($product->os->osGroup) && $product->os->osGroup->name == 'Windows')
-
-
Thông tin đăng nhập Windows
-
-
- Username: administrator
-
-
- Password: TGS@123
- Copy
-
-
-
* Đổi mật khẩu sau khi đăng nhập lần đầu để bảo mật tốt hơn.
-
- @endif
-
-
-
-
-
-
-
-
-
-
-
- Khởi động
-
-
-
-
-
-
- Tắt máy
-
-
-
-
-
-
- Shutdown
-
-
-
-
-
- status === 2 ? 'disabled' : '' }}>
- Tạm dừng
-
-
-
-
-
-
- Khởi động lại
-
-
-
-
-
-
-
-
-
- Cài lại
-
-
-
-
-
-
-
Thông tin chi tiết:
-
-
- Trạng thái VM:
- @if ($product->status == 1)
- Đang chạy
- @elseif($product->status == 2)
- Tạm dừng
- @elseif($product->status == 3)
- Đang khởi tạo
- @elseif($product->status == 0)
- Đã dừng
- @elseif($product->status == 4)
- Hết hạn
- @endif
-
-
-
-
- IP Address:
- {{ $product->ipaddress->ip ?? 'N/A' }}
-
-
- Ngày tạo:
- {{ $product->order->date ? \Carbon\Carbon::parse($product->order->date)->format('d/m/Y H:i') : 'N/A' }}
-
-
-
-
-
-
-
- Lưu ý:
- • Các thao tác có thể mất vài giây để hoàn thành
- • VM sẽ được khởi động lại sau khi thay đổi cấu hình
- • Vui lòng đợi thao tác hoàn thành trước khi thực hiện tiếp
- • Console sẽ mở trong tab mới
-
-
-
-
-
-
-
- @include('admin.customer.action.addon')
-
-
-@include('admin.customer.form.scripts.vps')
diff --git a/resources/views/admin/customer/index.blade.php b/resources/views/admin/customer/index.blade.php
deleted file mode 100644
index 0844a2b..0000000
--- a/resources/views/admin/customer/index.blade.php
+++ /dev/null
@@ -1,115 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager customer"))
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/info.blade.php b/resources/views/admin/customer/info.blade.php
deleted file mode 100644
index f919cc1..0000000
--- a/resources/views/admin/customer/info.blade.php
+++ /dev/null
@@ -1,310 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("edit customer"))
-
-
-
-
-
-
-
-
Clients Information
-
-
-
-
-
- First Name
- {{ $customer->firstname }}
-
-
-
- Last Name
- {{ $customer->lastname }}
-
-
- Company
- {{ $customer->company }}
-
-
- Email
- {{ $customer->email }}
-
-
- Address
- {{ $customer->address }}
-
-
- City
- {{ $customer->city }}
-
-
- Country
- {{ $customer->country }}
-
-
- Phone Number
- {{ $customer->phone }}
-
-
-
-
-
-
-
-
-
-
-
-
Invoices/Billing
-
-
-
-
-
- Invoice Paid
- {{ $customer->invoices_status_count_1 }}
- (@money($customer->invoices_status_1)
- đ)
-
-
-
-
- Invoice UnPaid
- {{ $customer->invoices_status_count_0 }}
- (@money($customer->invoices_status_0)
- đ)
-
-
-
- Total
- @money($customer->invoices_status_0 + $customer->invoices_status_1) đ
-
-
-
-
-
-
-
Recent Emails
-
- @if($customer->mail->count())
-
- @else
-
No recent Email
- @endif
-
-
-
-
-
-
-
-
Products/Services
-
-
-
-
-
- VPS/Server
- {{ $customer->vps_count}}
-
-
- Hosting
- {{ $customer->hosting_count }}
-
-
- Domain
- {{ $customer->domain_count }}
-
-
- Support Tickets
- {{ $customer->ticket_count }}
-
-
-
-
-
-
-
-
Files
-
- @if($customer->file->count())
-
-
- @foreach($customer->file->all() as $item)
-
-
- {{ $item->filename }}
-
-
-
-
-
-
-
- @endforeach
-
-
- @else
-
No files uploaded
- @endif
-
-
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
-@endif
-@endsection
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/customer/invoice.blade.php b/resources/views/admin/customer/invoice.blade.php
deleted file mode 100644
index 1d094b7..0000000
--- a/resources/views/admin/customer/invoice.blade.php
+++ /dev/null
@@ -1,80 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('edit customer'))
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/log.blade.php b/resources/views/admin/customer/log.blade.php
deleted file mode 100644
index 1840f08..0000000
--- a/resources/views/admin/customer/log.blade.php
+++ /dev/null
@@ -1,56 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('edit customer'))
-
-
-
-
-
-
- Date
- Description
- Username
- Client IP
-
-
-
- @if (count($logs) > 0)
- @foreach ($logs as $item)
-
-
- {{ $item->created_at }}
-
-
- {{ $item->description }}
-
-
- {{ $item->username }}
-
-
- {{ $item->client_ip }}
-
-
- @endforeach
- @else
-
-
- No Records Found
-
-
- @endif
-
-
- {!! $logs->withQueryString()->links() !!}
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/mail.blade.php b/resources/views/admin/customer/mail.blade.php
deleted file mode 100644
index 2febd23..0000000
--- a/resources/views/admin/customer/mail.blade.php
+++ /dev/null
@@ -1,72 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('edit customer'))
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/product.blade.php b/resources/views/admin/customer/product.blade.php
deleted file mode 100644
index 02e6c0c..0000000
--- a/resources/views/admin/customer/product.blade.php
+++ /dev/null
@@ -1,57 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("edit customer"))
-
-
-
-
- @if($allService->count())
- @include("admin.customer.action.selector")
- @if((int) $type === 3)
- @include("admin.customer.form.hosting")
- @endif
- @if((int) $type === 4)
- @include("admin.customer.form.vps")
- @endif
- @else
-
- No products found for this user. Click here to place a new order.
-
- @endif
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
-@endif
-@endsection
-@push('style')
-
-@endpush
-@push('scripts')
-
-
-
-@endpush
diff --git a/resources/views/admin/customer/profile.blade.php b/resources/views/admin/customer/profile.blade.php
deleted file mode 100644
index 0a2e255..0000000
--- a/resources/views/admin/customer/profile.blade.php
+++ /dev/null
@@ -1,145 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit customer"))
-
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/customer/transaction.blade.php b/resources/views/admin/customer/transaction.blade.php
deleted file mode 100644
index d1245c6..0000000
--- a/resources/views/admin/customer/transaction.blade.php
+++ /dev/null
@@ -1,53 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('edit customer'))
-
-
-
-
-
-
- Transaction ID
- Amount
- Date
-
-
-
- @if (count($transactions))
- @foreach ($transactions as $item)
-
-
- {{ $item->trans }}
-
-
- {{ number_format($item->amount, 0, ',', '.') }} đ
-
-
- {{ $item->created_at }}
-
-
- @endforeach
- @else
-
-
- No Records Found
-
-
- @endif
-
-
- {!! $transactions->withQueryString()->links() !!}
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Customer
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/footer.blade.php b/resources/views/admin/footer.blade.php
deleted file mode 100644
index d0b65a3..0000000
--- a/resources/views/admin/footer.blade.php
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-@include('alerts')
-@include('ckfinder::setup')
-
-@stack('scripts')
-
diff --git a/resources/views/admin/form/vps.blade.php b/resources/views/admin/form/vps.blade.php
deleted file mode 100644
index 7a7a40d..0000000
--- a/resources/views/admin/form/vps.blade.php
+++ /dev/null
@@ -1,176 +0,0 @@
-
diff --git a/resources/views/admin/head.blade.php b/resources/views/admin/head.blade.php
deleted file mode 100644
index 9614beb..0000000
--- a/resources/views/admin/head.blade.php
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{ $title }}
-
-
-
-
-
-
-
-
-
-
- @stack('style')
-
-
diff --git a/resources/views/admin/home.blade.php b/resources/views/admin/home.blade.php
deleted file mode 100644
index 917efbb..0000000
--- a/resources/views/admin/home.blade.php
+++ /dev/null
@@ -1,318 +0,0 @@
-@extends('admin.main')
-@section('content')
-
-
-
-
-
-
-
-
- Pending Orders
- {{ count($pending_order) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- Invoices Pending
- {{ count($invocie_unpaid) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Tickets Waiting
- {{ count($tickets) }}
-
-
-
-
-
-
-
-
-
-
-
- Users
- {{ $customers }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@money($total_amount_day)
-
Today
-
-
-
-
-
@money($total_amount_month)
-
This Month
-
-
-
-
-
@money($total_amount_year)
-
This Year
-
-
-
-
-
@money($total_amount)
-
All Time
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @if ($posts->count())
- @foreach ($posts as $item)
-
- {{ $item->name }}
-
-
-
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}
-
-
-
-
-
-
-
- @endforeach
- @endif
-
-
-
-
-
-
-
-
-
-
-
-@endsection
diff --git a/resources/views/admin/invoice/edit.blade.php b/resources/views/admin/invoice/edit.blade.php
deleted file mode 100644
index bf43095..0000000
--- a/resources/views/admin/invoice/edit.blade.php
+++ /dev/null
@@ -1,300 +0,0 @@
-@extends('admin.main')
-@section('styles')
-
-@endsection
-@section('content')
- @if (auth()->guard('admins')->user()->can('edit invoice'))
-
- @else
-
-
Access Denied - You are not assigned to any Invoice
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/invoice/index.blade.php b/resources/views/admin/invoice/index.blade.php
deleted file mode 100644
index 16717e3..0000000
--- a/resources/views/admin/invoice/index.blade.php
+++ /dev/null
@@ -1,190 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager invoice"))
-
- @else
-
-
Access Denied - You are not assigned to any Invoice
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/log.blade.php b/resources/views/admin/log.blade.php
deleted file mode 100644
index 8f8a5d5..0000000
--- a/resources/views/admin/log.blade.php
+++ /dev/null
@@ -1,70 +0,0 @@
-@extends('administrator.layout.master')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager system log'))
-
-
-
-
-
-
-
-
-
-
-
-
- Date
- Description
- Customer
- Username
- Client IP
-
-
-
- @if (count($logs) > 0)
- @foreach ($logs->all() as $item)
-
-
- {{ $item->created_at }}
-
-
- {{ $item->description }}
-
-
- @if ($item->Customer)
- Customer
- Code {{ $item->customer_id }}
-
- {{ $item->customer->email }}
- @else
- None
- @endif
-
-
- {{ $item->username }}
-
-
- {{ $item->client_ip }}
-
-
- @endforeach
- @else
-
-
- No Records Found
-
-
- @endif
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to System Log
-
- @endif
-@endsection
diff --git a/resources/views/admin/main.blade.php b/resources/views/admin/main.blade.php
deleted file mode 100644
index 1209d81..0000000
--- a/resources/views/admin/main.blade.php
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-@include('admin.head')
-
-
-
- @include('admin.nav')
- @include('admin.sidebar')
-
-
-
-
-
-
-
-
-
- @yield('content')
-
-
-
-
-
-
- @include('admin.copyright')
-
- @include('admin.footer')
-
-
-
-
-
diff --git a/resources/views/admin/menu/add.blade.php b/resources/views/admin/menu/add.blade.php
deleted file mode 100644
index 81c6590..0000000
--- a/resources/views/admin/menu/add.blade.php
+++ /dev/null
@@ -1,95 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('add menu'))
-
-
- @csrf
-
-
-
-
-
- Danh mục
-
- -- No Parent --
- @foreach($parentMenuOptions as $parent)
- parent_id : null) == $parent['id'] ? 'selected' : '' }}>
- {{ $parent['title'] }}
-
- @endforeach
-
-
-
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
-
diff --git a/resources/views/admin/menu/edit.blade.php b/resources/views/admin/menu/edit.blade.php
deleted file mode 100644
index e91843a..0000000
--- a/resources/views/admin/menu/edit.blade.php
+++ /dev/null
@@ -1,99 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('edit menu'))
-
-
- @csrf
- @method('PUT')
-
-
-
-
-
- Parent Menu
-
- -- No Parent --
- @foreach($parentMenuOptions as $parent)
- parent_id == $parent['id'] ? 'selected' : '' }}>
- {{ $parent['title'] }}
-
- @endforeach
-
-
-
-
-
-
-
-
-
-
- Cập nhật thông tin
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
-
diff --git a/resources/views/admin/menu/index.blade.php b/resources/views/admin/menu/index.blade.php
deleted file mode 100644
index dbdbdc1..0000000
--- a/resources/views/admin/menu/index.blade.php
+++ /dev/null
@@ -1,85 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('manager menu'))
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/dns/add.blade.php b/resources/views/admin/module/dns/add.blade.php
deleted file mode 100644
index 8f292c9..0000000
--- a/resources/views/admin/module/dns/add.blade.php
+++ /dev/null
@@ -1,61 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module dns"))
-
-
- @csrf
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module dns
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/dns/edit.blade.php b/resources/views/admin/module/dns/edit.blade.php
deleted file mode 100644
index 607d113..0000000
--- a/resources/views/admin/module/dns/edit.blade.php
+++ /dev/null
@@ -1,62 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit module dns"))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module dns
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/dns/index.blade.php b/resources/views/admin/module/dns/index.blade.php
deleted file mode 100644
index 0379b97..0000000
--- a/resources/views/admin/module/dns/index.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager module dns"))
-
- @else
-
-
Access Denied - You are not assigned to any Module dns
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/hosting/add.blade.php b/resources/views/admin/module/hosting/add.blade.php
deleted file mode 100644
index c62cecf..0000000
--- a/resources/views/admin/module/hosting/add.blade.php
+++ /dev/null
@@ -1,61 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module hosting"))
-
-
- @csrf
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module Hosting
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/hosting/edit.blade.php b/resources/views/admin/module/hosting/edit.blade.php
deleted file mode 100644
index 2c0998a..0000000
--- a/resources/views/admin/module/hosting/edit.blade.php
+++ /dev/null
@@ -1,63 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit module hosting"))
-
-
-
- @csrf
- @method('put')
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module Hosting
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/hosting/index.blade.php b/resources/views/admin/module/hosting/index.blade.php
deleted file mode 100644
index f5b2fec..0000000
--- a/resources/views/admin/module/hosting/index.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager module hosting'))
-
- @else
-
-
Access Denied - You are not assigned to any Module Hosting
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/ippool/add.blade.php b/resources/views/admin/module/ippool/add.blade.php
deleted file mode 100644
index 76387ea..0000000
--- a/resources/views/admin/module/ippool/add.blade.php
+++ /dev/null
@@ -1,45 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('add module ippool'))
-
-
- @csrf
-
-
-
- {{-- Server Host --}}
-
- {{-- Module Network --}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module IP Pool
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/ippool/index.blade.php b/resources/views/admin/module/ippool/index.blade.php
deleted file mode 100644
index fa8cf2a..0000000
--- a/resources/views/admin/module/ippool/index.blade.php
+++ /dev/null
@@ -1,77 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager module ippool'))
-
- @else
-
-
Access Denied - You are not assigned to any Module IP Pool
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/vcenter/add.blade.php b/resources/views/admin/module/vcenter/add.blade.php
deleted file mode 100644
index 3df0ef7..0000000
--- a/resources/views/admin/module/vcenter/add.blade.php
+++ /dev/null
@@ -1,61 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/vcenter/edit.blade.php b/resources/views/admin/module/vcenter/edit.blade.php
deleted file mode 100644
index 319ed58..0000000
--- a/resources/views/admin/module/vcenter/edit.blade.php
+++ /dev/null
@@ -1,62 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Server Host--}}
-
- {{--User--}}
-
- {{--Password--}}
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/module/vcenter/index.blade.php b/resources/views/admin/module/vcenter/index.blade.php
deleted file mode 100644
index d245345..0000000
--- a/resources/views/admin/module/vcenter/index.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager module vcenter"))
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/nav.blade.php b/resources/views/admin/nav.blade.php
deleted file mode 100644
index 66c4328..0000000
--- a/resources/views/admin/nav.blade.php
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
diff --git a/resources/views/admin/order/add.blade.php b/resources/views/admin/order/add.blade.php
deleted file mode 100644
index 028a5db..0000000
--- a/resources/views/admin/order/add.blade.php
+++ /dev/null
@@ -1,230 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add order"))
-
-
- @csrf
-
-
-
-
-
- {{--Client User--}}
-
-
- {{--Payment Method--}}
-
-
- {{--Promotion Code--}}
-
-
- {{--Orders Status--}}
-
-
- {{--Orders Action--}}
-
-
-
-
-
-
-
-
- {{--Product Type--}}
-
- {{--Product--}}
-
- {{--Domain--}}
-
- {{--Billing Cycle--}}
-
- {{--Product Quantity--}}
-
- {{--Product Price--}}
-
-
-
-
-
-
-
-
Order Summary
-
-
-
-
-
-
-
-
- VAT @ 10.00%
-
- 0đ
-
-
- Total
-
- 0đ
-
-
-
-
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Order
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/order/edit.blade.php b/resources/views/admin/order/edit.blade.php
deleted file mode 100644
index cc44fad..0000000
--- a/resources/views/admin/order/edit.blade.php
+++ /dev/null
@@ -1,181 +0,0 @@
-@php use Carbon\Carbon; @endphp
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit order"))
-
-
-
-
- @if( $order->status !== 1)
-
- @endif
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Order
- management department
-
- @endif
-
-@endsection
-@push("scripts")
-
-@endpush
diff --git a/resources/views/admin/order/index.blade.php b/resources/views/admin/order/index.blade.php
deleted file mode 100644
index 979a622..0000000
--- a/resources/views/admin/order/index.blade.php
+++ /dev/null
@@ -1,200 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager order"))
-
- @else
-
-
Access Denied - You are not assigned to any Order
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/datacenter/add.blade.php b/resources/views/admin/package/datacenter/add.blade.php
deleted file mode 100644
index 4bd178f..0000000
--- a/resources/views/admin/package/datacenter/add.blade.php
+++ /dev/null
@@ -1,53 +0,0 @@
-@extends("administrator.layout.master")
-@push('plugin-styles')
-
-@endpush
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
- {{--
-
--}}
-
- {{--Name--}}
-
- {{--Datacenter ID--}}
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
-
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('custom-scripts')
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/datacenter/edit.blade.php b/resources/views/admin/package/datacenter/edit.blade.php
deleted file mode 100644
index a692dda..0000000
--- a/resources/views/admin/package/datacenter/edit.blade.php
+++ /dev/null
@@ -1,53 +0,0 @@
-@extends("administrator.layout.master")
-@push('plugin-styles')
-
-@endpush
-
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
- {{--Name--}}
-
- {{--Datacenter ID--}}
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
-
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('custom-scripts')
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/datacenter/index.blade.php b/resources/views/admin/package/datacenter/index.blade.php
deleted file mode 100644
index ed64bf3..0000000
--- a/resources/views/admin/package/datacenter/index.blade.php
+++ /dev/null
@@ -1,49 +0,0 @@
-@extends('administrator.layout.master')
-
-@push('plugin-styles')
-
-@endpush
-
-@section('breadcrumb')
- @php
- $breadcrumbItems = [
- ['label' => 'Modules'],
- ['label' => 'Package vCenter'],
- ['label' => 'Datacenter', 'active' => true],
- ];
- @endphp
-
-@endsection
-
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
-
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('custom-scripts')
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/datastore/add.blade.php b/resources/views/admin/package/datastore/add.blade.php
deleted file mode 100644
index b866fe7..0000000
--- a/resources/views/admin/package/datastore/add.blade.php
+++ /dev/null
@@ -1,67 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('add module vcenter'))
-
-
- @csrf
-
- {{--
--}}
-
-
-
- {{-- Name --}}
-
- {{-- Host ID --}}
-
- {{-- Template ID --}}
-
- {{-- Console ID --}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/datastore/edit.blade.php b/resources/views/admin/package/datastore/edit.blade.php
deleted file mode 100644
index d65a454..0000000
--- a/resources/views/admin/package/datastore/edit.blade.php
+++ /dev/null
@@ -1,63 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/datastore/index.blade.php b/resources/views/admin/package/datastore/index.blade.php
deleted file mode 100644
index c835d4f..0000000
--- a/resources/views/admin/package/datastore/index.blade.php
+++ /dev/null
@@ -1,86 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/folder/add.blade.php b/resources/views/admin/package/folder/add.blade.php
deleted file mode 100644
index 8c12586..0000000
--- a/resources/views/admin/package/folder/add.blade.php
+++ /dev/null
@@ -1,44 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/folder/edit.blade.php b/resources/views/admin/package/folder/edit.blade.php
deleted file mode 100644
index 6b6598f..0000000
--- a/resources/views/admin/package/folder/edit.blade.php
+++ /dev/null
@@ -1,45 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/folder/index.blade.php b/resources/views/admin/package/folder/index.blade.php
deleted file mode 100644
index 4c874ad..0000000
--- a/resources/views/admin/package/folder/index.blade.php
+++ /dev/null
@@ -1,87 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/group/add.blade.php b/resources/views/admin/package/group/add.blade.php
deleted file mode 100644
index a120443..0000000
--- a/resources/views/admin/package/group/add.blade.php
+++ /dev/null
@@ -1,81 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add package module"))
-
-
- @csrf
-
-
-
- {{--Name--}}
-
- {{--Thumbnail--}}
-
-
-
-
-
- {{--Status--}}
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
-@endif
-@endsection
-@push('scripts')
-
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/group/edit.blade.php b/resources/views/admin/package/group/edit.blade.php
deleted file mode 100644
index 55647b4..0000000
--- a/resources/views/admin/package/group/edit.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add package module"))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Name--}}
-
- {{--Thumbnail--}}
-
-
-
-
-
- {{--Status--}}
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
-@endif
-@endsection
-@push('scripts')
-
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/group/index.blade.php b/resources/views/admin/package/group/index.blade.php
deleted file mode 100644
index e63a7c9..0000000
--- a/resources/views/admin/package/group/index.blade.php
+++ /dev/null
@@ -1,85 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/host/add.blade.php b/resources/views/admin/package/host/add.blade.php
deleted file mode 100644
index e51c68f..0000000
--- a/resources/views/admin/package/host/add.blade.php
+++ /dev/null
@@ -1,76 +0,0 @@
-@extends('administrator.layout.master')
-
-@section('breadcrumb')
- @php
- $breadcrumbItems = [
- ['label' => 'Modules'],
- ['label' => 'Package Host'],
- ['label' => 'Host', 'active' => true],
- ];
- @endphp
-
-@endsection
-@push('plugin-styles')
-
-@endpush
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('plugin-styles')
-
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/host/edit.blade.php b/resources/views/admin/package/host/edit.blade.php
deleted file mode 100644
index 7b808b0..0000000
--- a/resources/views/admin/package/host/edit.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@extends('administrator.layout.master')
-
-@section('breadcrumb')
- @php
- $breadcrumbItems = [
- ['label' => 'Modules'],
- ['label' => 'Package Host'],
- ['label' => 'Host', 'active' => true],
- ];
- @endphp
-
-@endsection
-@push('plugin-styles')
-
-@endpush
-@section("content")
- @if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
- @endif
-@endsection
-
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('plugin-styles')
-
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/host/index.blade.php b/resources/views/admin/package/host/index.blade.php
deleted file mode 100644
index b30f4b1..0000000
--- a/resources/views/admin/package/host/index.blade.php
+++ /dev/null
@@ -1,47 +0,0 @@
-@extends('administrator.layout.master')
-
-@section('breadcrumb')
- @php
- $breadcrumbItems = [
- ['label' => 'Modules'],
- ['label' => 'Package Host'],
- ['label' => 'Host', 'active' => true],
- ];
- @endphp
-
-@endsection
-
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
-
-@push('plugin-scripts')
-
-
-
-
-@endpush
-
-@push('plugin-styles')
-
-@endpush
\ No newline at end of file
diff --git a/resources/views/admin/package/ipaddress/add.blade.php b/resources/views/admin/package/ipaddress/add.blade.php
deleted file mode 100644
index a0f4e8b..0000000
--- a/resources/views/admin/package/ipaddress/add.blade.php
+++ /dev/null
@@ -1,94 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("manager package module"))
-
-
- @csrf
-
-
-
-
-
-
-
-
-
-
-
-
- {{--Netmask--}}
-
- {{--Netmask--}}
-
- {{--DNS--}}
-
- {{--Tuy chon--}}
-
-
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/ipaddress/edit.blade.php b/resources/views/admin/package/ipaddress/edit.blade.php
deleted file mode 100644
index bfe7ae2..0000000
--- a/resources/views/admin/package/ipaddress/edit.blade.php
+++ /dev/null
@@ -1,85 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("manager package module"))
-
-
- @csrf
- @method('put')
-
-
-
-
-
-
-
-
-
-
-
-
- {{--Netmask--}}
-
- {{--Netmask--}}
-
- {{--DNS--}}
-
- {{--Tuy chon--}}
-
- {{-- IP --}}
-
- {{--Status--}}
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/ipaddress/index.blade.php b/resources/views/admin/package/ipaddress/index.blade.php
deleted file mode 100644
index 1520f8f..0000000
--- a/resources/views/admin/package/ipaddress/index.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/network/add.blade.php b/resources/views/admin/package/network/add.blade.php
deleted file mode 100644
index 52b2463..0000000
--- a/resources/views/admin/package/network/add.blade.php
+++ /dev/null
@@ -1,47 +0,0 @@
-
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
-
-
- {{--Name--}}
-
- {{--Network--}}
-
- {{--Type--}}
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/network/edit.blade.php b/resources/views/admin/package/network/edit.blade.php
deleted file mode 100644
index 89d86f2..0000000
--- a/resources/views/admin/package/network/edit.blade.php
+++ /dev/null
@@ -1,48 +0,0 @@
-
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Name--}}
-
- {{--Network--}}
-
- {{--Type--}}
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/network/index.blade.php b/resources/views/admin/package/network/index.blade.php
deleted file mode 100644
index 179ab46..0000000
--- a/resources/views/admin/package/network/index.blade.php
+++ /dev/null
@@ -1,81 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/version/add.blade.php b/resources/views/admin/package/version/add.blade.php
deleted file mode 100644
index b6184d7..0000000
--- a/resources/views/admin/package/version/add.blade.php
+++ /dev/null
@@ -1,56 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('add package module'))
-
-
- @csrf
-
-
-
- {{-- Group Name --}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/version/edit.blade.php b/resources/views/admin/package/version/edit.blade.php
deleted file mode 100644
index 8a836b2..0000000
--- a/resources/views/admin/package/version/edit.blade.php
+++ /dev/null
@@ -1,56 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('add package module'))
-
-
- @csrf
- @method('put')
-
-
-
- {{-- Group Name --}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/version/index.blade.php b/resources/views/admin/package/version/index.blade.php
deleted file mode 100644
index c4ccbc7..0000000
--- a/resources/views/admin/package/version/index.blade.php
+++ /dev/null
@@ -1,86 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/package/vm/add.blade.php b/resources/views/admin/package/vm/add.blade.php
deleted file mode 100644
index be510bc..0000000
--- a/resources/views/admin/package/vm/add.blade.php
+++ /dev/null
@@ -1,51 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/vm/edit.blade.php b/resources/views/admin/package/vm/edit.blade.php
deleted file mode 100644
index 113c9f9..0000000
--- a/resources/views/admin/package/vm/edit.blade.php
+++ /dev/null
@@ -1,53 +0,0 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
-@endsection
diff --git a/resources/views/admin/package/vm/index.blade.php b/resources/views/admin/package/vm/index.blade.php
deleted file mode 100644
index 3e6cf50..0000000
--- a/resources/views/admin/package/vm/index.blade.php
+++ /dev/null
@@ -1,85 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager package module"))
-
- @else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/payment/add.blade.php b/resources/views/admin/payment/add.blade.php
deleted file mode 100644
index c659272..0000000
--- a/resources/views/admin/payment/add.blade.php
+++ /dev/null
@@ -1,115 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('add payment'))
-
-
-
- @csrf
-
-
-
- {{--Group Name--}}
-
-
-
-
- {{--Thumbnail--}}
-
-
- {{--Status--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/payment/edit.blade.php b/resources/views/admin/payment/edit.blade.php
deleted file mode 100644
index 8ae0909..0000000
--- a/resources/views/admin/payment/edit.blade.php
+++ /dev/null
@@ -1,115 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('edit payment'))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Group Name--}}
-
-
-
-
- {{--Thumbnail--}}
-
-
- {{--Status--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-@endpush
diff --git a/resources/views/admin/payment/index.blade.php b/resources/views/admin/payment/index.blade.php
deleted file mode 100644
index de8c457..0000000
--- a/resources/views/admin/payment/index.blade.php
+++ /dev/null
@@ -1,92 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('manager payment'))
-
- @else
-
-
Access Denied - You are not assigned to any Payment
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/post/add.blade.php b/resources/views/admin/post/add.blade.php
deleted file mode 100644
index 0007368..0000000
--- a/resources/views/admin/post/add.blade.php
+++ /dev/null
@@ -1,141 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add post"))
-
- @csrf
-
-
-
-
-
-
-
-
-
-
- Content
- {{old('content')}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Published
- Draft
- Pending
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Post
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-
-
-@endpush
diff --git a/resources/views/admin/post/edit.blade.php b/resources/views/admin/post/edit.blade.php
deleted file mode 100644
index 7abc4f7..0000000
--- a/resources/views/admin/post/edit.blade.php
+++ /dev/null
@@ -1,149 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit post"))
-
- @csrf
- @method('put')
-
-
-
-
-
-
-
-
-
-
- Content
- {{old('content') ?? $post->content}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- status == 1)>Published
- status == 2)>Draft
- status == 0)>Pending
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Post
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-
-
-@endpush
diff --git a/resources/views/admin/post/index.blade.php b/resources/views/admin/post/index.blade.php
deleted file mode 100644
index 17b9d9c..0000000
--- a/resources/views/admin/post/index.blade.php
+++ /dev/null
@@ -1,86 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if(auth()->guard('admins')->user()->can("manager post"))
-
- @else
-
-
Access Denied - You are not assigned to any Post
- management department
-
- @endif
-@endsection
-
diff --git a/resources/views/admin/product/domain/add.blade.php b/resources/views/admin/product/domain/add.blade.php
deleted file mode 100644
index cdf1995..0000000
--- a/resources/views/admin/product/domain/add.blade.php
+++ /dev/null
@@ -1,197 +0,0 @@
-@extends("admin.main")
-@section("content")
-
- @if(! isset($product))
-
- @csrf
-
-
-
- {{--Product name--}}
-
-
- {{--Price--}}
-
-
- {{--Price Sales--}}
-
-
- {{--Renewal--}}
-
-
- {{--Transfer--}}
-
-
-
- {{--Product Type--}}
-
-
- {{--Auto Register--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
- @else
-
- @csrf
- @method('put')
-
-
-
- {{--Product name--}}
-
-
- {{--Price--}}
-
-
- {{--Price Sales--}}
-
-
- {{--Renewal--}}
-
-
- {{--Transfer--}}
-
-
-
- {{--Product Type--}}
-
-
- {{--Auto Register--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/product/domain/index.blade.php b/resources/views/admin/product/domain/index.blade.php
deleted file mode 100644
index 0df44fa..0000000
--- a/resources/views/admin/product/domain/index.blade.php
+++ /dev/null
@@ -1,57 +0,0 @@
-@extends("admin.main")
-@section("content")
-
-
-
-
-
-
- .Ext
- Price
- Type
-
-
-
-
-
- @if($domain->count())
- @foreach($domain->all() as $item)
-
-
- {{ $item->name }}
-
-
- {{ number_format($item->price,0,',','.') }} vnđ
-
-
- {{ $item->Type->name }}
-
-
-
-
-
-
-
-
- @csrf
- @method('delete')
-
-
-
-
-
-
- @endforeach
- @endif
-
-
-
-
-
-@endsection
diff --git a/resources/views/admin/product/first.blade.php b/resources/views/admin/product/first.blade.php
deleted file mode 100644
index f2af6fa..0000000
--- a/resources/views/admin/product/first.blade.php
+++ /dev/null
@@ -1,63 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add product"))
-
-
- @csrf
-
-
-
-
- {{--First name--}}
-
- {{--Product Type--}}
-
- {{--Product Group--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Product
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/product/group.blade.php b/resources/views/admin/product/group.blade.php
deleted file mode 100644
index aea3b9b..0000000
--- a/resources/views/admin/product/group.blade.php
+++ /dev/null
@@ -1,107 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add product"))
-
- @if(isset($group))
-
- @csrf
- @method('put')
-
-
-
- {{--First name--}}
-
-
- {{--Last name--}}
-
- {{--Status--}}
-
-
-
-
-
-
- @else
-
- @csrf
-
-
-
- {{--First name--}}
-
-
-
- {{--Status--}}
-
-
-
-
-
-
- @endif
-
- @else
-
-
Access Denied - You are not assigned to any Product
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/product/hosting.blade.php b/resources/views/admin/product/hosting.blade.php
deleted file mode 100644
index 9c7b720..0000000
--- a/resources/views/admin/product/hosting.blade.php
+++ /dev/null
@@ -1,353 +0,0 @@
-@extends('admin.main')
-@section('content')
-
- @if (!isset($product))
-
- @csrf
-
-
-
- {{-- Product name --}}
-
-
- {{-- Price --}}
-
-
- {{-- Price Sales --}}
-
-
- {{-- Description --}}
-
-
- {{-- Template ID --}}
-
-
- {{-- Product Type --}}
-
-
- {{-- Product Group --}}
-
-
- {{-- Status --}}
-
-
-
-
-
-
- @else
- @if (auth()->guard('admins')->user()->can('edit product'))
-
-
-
-
- @csrf
- @method('put')
-
-
-
- {{-- Product name --}}
-
-
- {{-- Price --}}
-
-
- {{-- Price Sales --}}
-
-
- {{-- Description --}}
-
-
- {{-- Template ID --}}
-
-
- {{-- Product Type --}}
-
-
- {{-- Product Group --}}
-
-
- {{-- Status --}}
-
-
-
-
- {{-- IP --}}
-
- {{-- CPU --}}
-
- {{-- GPU --}}
-
- {{-- Ram --}}
-
- {{-- bandwidth --}}
-
-
-
- {{-- Disk --}}
-
-
-
-
-
-
-
-
-
-
-
- {{-- vCenter --}}
-
-
-
-
-
-
-
-
- {{-- vCore (CPU) --}}
-
-
- {{-- Ram --}}
-
-
-
-
- {{-- Gpu --}}
-
-
- {{-- Bandwidth --}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Product
- management department
-
- @endif
- @endif
-
-@endsection
diff --git a/resources/views/admin/product/index.blade.php b/resources/views/admin/product/index.blade.php
deleted file mode 100644
index 8942772..0000000
--- a/resources/views/admin/product/index.blade.php
+++ /dev/null
@@ -1,90 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager product'))
-
-
-
-
-
-
- Product Name
- Type
-
-
-
-
-
- @if (count($groups) > 0)
- @foreach ($groups->all() as $item)
-
-
- Group Name: {{ $item->name }}
-
-
-
-
-
-
-
-
- @method('delete')
- @csrf
-
-
-
-
-
-
-
- @if (!empty($item->products) && $item->products->count())
- @foreach ($item->products->all() as $_item)
-
-
- {{ $_item->name }}
-
-
- {{ $_item->Type->name }}
-
-
-
-
-
-
-
- @if (auth()->guard('admins')->user()->can('delete product'))
-
- @csrf
- @method('delete')
-
-
-
-
- @endif
-
-
- @endforeach
- @endif
- @endforeach
- @endif
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Product
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/product/vps.blade.php b/resources/views/admin/product/vps.blade.php
deleted file mode 100644
index a562469..0000000
--- a/resources/views/admin/product/vps.blade.php
+++ /dev/null
@@ -1,9 +0,0 @@
-@extends("admin.main")
-@section("content")
-
- @include("admin.form.vps",[
- 'route' => isset($product) ? route('product.update',['product_id' => $product->id,'type' => $type_id]) : route('product.store'),
- 'model' => $product ?? null
- ])
-
-@endsection
\ No newline at end of file
diff --git a/resources/views/admin/role/add.blade.php b/resources/views/admin/role/add.blade.php
deleted file mode 100644
index 7c0e56c..0000000
--- a/resources/views/admin/role/add.blade.php
+++ /dev/null
@@ -1,57 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add role"))
-
-
- @else
-
-
Access Denied - You are not assigned to any Role management department
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/role/edit.blade.php b/resources/views/admin/role/edit.blade.php
deleted file mode 100644
index 821d1d4..0000000
--- a/resources/views/admin/role/edit.blade.php
+++ /dev/null
@@ -1,60 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit role"))
-
-
- @csrf
- @method('put')
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Role management department
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/role/index.blade.php b/resources/views/admin/role/index.blade.php
deleted file mode 100644
index 20a8a07..0000000
--- a/resources/views/admin/role/index.blade.php
+++ /dev/null
@@ -1,63 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager role"))
-
- @else
-
-
Access Denied - You are not assigned to any Role
- management department
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/setting.blade.php b/resources/views/admin/setting.blade.php
deleted file mode 100644
index 8eac209..0000000
--- a/resources/views/admin/setting.blade.php
+++ /dev/null
@@ -1,284 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager setting'))
-
-
-
- @csrf
- @method('put')
-
-
-
- {{-- Title --}}
-
- {{-- Company name --}}
-
-
- {{-- Tax --}}
-
-
- {{-- Email --}}
-
- {{-- Address --}}
-
- {{-- Status --}}
-
- {{-- Script --}}
-
-
- {{-- Discord Webhook ID --}}
-
- {{-- Discord Webhook Token --}}
-
-
-
- {{-- Logo Url --}}
-
- {{-- Icon falling login/register --}}
-
- {{-- Ảnh ở login/register customer --}}
-
- {{-- Ma Mau --}}
-
- {{-- Tel --}}
-
- {{-- Support Email --}}
-
- {{-- Telegram Bot ID --}}
-
- {{-- Telegram Bot Token --}}
-
-
- {{-- VNPAY_TMN_CODE --}}
-
-
- {{-- VNPAY_HASH_SECRET --}}
-
-
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to setting management
- department
-
- @endif
-@endsection
-@push('scripts')
-
-
-
-@endpush
diff --git a/resources/views/admin/sidebar.blade.php b/resources/views/admin/sidebar.blade.php
deleted file mode 100644
index 0810b36..0000000
--- a/resources/views/admin/sidebar.blade.php
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
diff --git a/resources/views/admin/smtp.blade.php b/resources/views/admin/smtp.blade.php
deleted file mode 100644
index ac022f9..0000000
--- a/resources/views/admin/smtp.blade.php
+++ /dev/null
@@ -1,92 +0,0 @@
-@extends('admin.main')
-@section('content')
- @if (auth()->guard('admins')->user()->can('manager smtp'))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{-- Title --}}
-
- {{-- Company name --}}
-
-
- {{-- Tax --}}
-
-
- {{-- Email --}}
-
- {{-- Address --}}
-
- {{-- Address --}}
-
- {{-- Status --}}
-
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to SMTP management
- department
-
- @endif
-@endsection
diff --git a/resources/views/admin/support/index.blade.php b/resources/views/admin/support/index.blade.php
deleted file mode 100644
index 256ffc6..0000000
--- a/resources/views/admin/support/index.blade.php
+++ /dev/null
@@ -1,65 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager support"))
-
- @else
-
-
Access Denied - You are not assigned to any Support
- management department
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/support/view.blade.php b/resources/views/admin/support/view.blade.php
deleted file mode 100644
index d37ce0b..0000000
--- a/resources/views/admin/support/view.blade.php
+++ /dev/null
@@ -1,104 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit support"))
- @if($ticket->count())
-
-
- @csrf
-
-
-
-
- {{ old('message') }}
-
-
-
-
-
-
-
- @foreach($ticket->all() as $item)
- @if($item->reply->isNotEmpty() && optional($item->reply->first())->user)
- @foreach($item->reply()->latest('id')->get() as $_item)
-
-
-
-
-
- {{ $_item->user->firstname .' '.$_item->user->lastname }}
-
-
-
-
Quản trị viên
-
{{ $_item->created_at }}
-
-
-
- {!! $_item->message !!}
-
-
- @endforeach
- @endif
-
-
-
-
-
-
- {{ $item->customer->firstname .' '.$item->customer->lastname }}
-
-
-
-
Khách hàng
-
{{ $item->created_at }}
-
-
-
- {!! $item->description !!}
-
-
- @php($data = json_decode($item->data))
- @if($data->file)
-
-
- @php($file_info = pathinfo(url('template/' . $data->file)))
-
-
-
-
- @endif
-
-
- @endforeach
- @endif
- @else
-
-
Access Denied - You are not assigned to any Support
- management department
-
- @endif
-
-@endsection
-@push('scripts')
-
-
-@endpush
diff --git a/resources/views/admin/template/add.blade.php b/resources/views/admin/template/add.blade.php
deleted file mode 100644
index d8c91e5..0000000
--- a/resources/views/admin/template/add.blade.php
+++ /dev/null
@@ -1,89 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add email template"))
-
-
- @csrf
-
-
-
-
- {{--Template name--}}
-
-
- {{--Subject Email--}}
-
- {{--Subject Email--}}
-
- {{--Product Type--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
-
-
- @include("admin.template.note")
-
- @else
-
-
Access Denied - You are not assigned to any email template
- management department
-
- @endif
-@endsection
-@push('scripts')
-
-
-@endpush
diff --git a/resources/views/admin/template/edit.blade.php b/resources/views/admin/template/edit.blade.php
deleted file mode 100644
index 02e5d8c..0000000
--- a/resources/views/admin/template/edit.blade.php
+++ /dev/null
@@ -1,91 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit email template"))
-
-
- @csrf
- @method('put')
-
-
-
-
-
- {{--Template name--}}
-
-
- {{--Subject Email--}}
-
- {{--Subject Email--}}
-
- {{--Product Type--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
-
-
- @include("admin.template.note")
-
- @else
-
-
Access Denied - You are not assigned to any email template management department
-
- @endif
- @push('scripts')
-
-
- @endpush
-@endsection
diff --git a/resources/views/admin/template/index.blade.php b/resources/views/admin/template/index.blade.php
deleted file mode 100644
index 8741ab8..0000000
--- a/resources/views/admin/template/index.blade.php
+++ /dev/null
@@ -1,82 +0,0 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can('manager email template'))
-
- @else
-
-
Access Denied - You are not assigned to any Email template
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/template/note.blade.php b/resources/views/admin/template/note.blade.php
deleted file mode 100644
index 774c078..0000000
--- a/resources/views/admin/template/note.blade.php
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
- Client Related
-
-
- Client ID
- {$client_id}
- First Name
- {$client_first_name}
- Last Name
- {$client_last_name}
- Company Name
- {$client_company_name}
- Email Address
- {$client_email}
- Address
- {$client_address}
- City
- {$client_city}
- State/Region
- {$client_state}
- Postcode
- {$client_postcode}
- Country
- {$client_country}
- Phone Number
- {$client_phone}
- Status
- {$client_status}
-
-
- Product/Service Related
-
-
- Order ID
- {$order_id}
- Service ID
- {$service_id}
- Product Name
- {$product_name}
- Os Name
- {$os_name}
- Username
- {$service_username}
- Password
- {$service_password}
-
-
diff --git a/resources/views/admin/user/add.blade.php b/resources/views/admin/user/add.blade.php
deleted file mode 100644
index 8effc3e..0000000
--- a/resources/views/admin/user/add.blade.php
+++ /dev/null
@@ -1,105 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("add administrator"))
-
-
- @csrf
-
-
-
-
- {{--Administrator Role--}}
-
-
- {{--First name--}}
-
-
- {{--Last name--}}
-
-
- {{--Username--}}
-
-
- {{--Email--}}
-
-
- {{--Password--}}
-
-
- {{--Confirm Password--}}
-
-
- {{--Status--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Administrator
- management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/user/edit.blade.php b/resources/views/admin/user/edit.blade.php
deleted file mode 100644
index bade1d3..0000000
--- a/resources/views/admin/user/edit.blade.php
+++ /dev/null
@@ -1,113 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("edit administrator"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Administrator Role--}}
-
-
- {{--First name--}}
-
-
- {{--Last name--}}
-
-
- {{--Username--}}
-
-
- {{--Email--}}
-
-
- {{--Status--}}
-
-
-
- {{--Password--}}
-
-
- {{--Confirm Password--}}
-
-
-
-
-
-
-
- @else
-
-
Access Denied - You are not assigned to any Administrator management department
-
- @endif
-@endsection
diff --git a/resources/views/admin/user/index.blade.php b/resources/views/admin/user/index.blade.php
deleted file mode 100644
index 407c517..0000000
--- a/resources/views/admin/user/index.blade.php
+++ /dev/null
@@ -1,66 +0,0 @@
-@extends("admin.main")
-@section("content")
- @if(auth()->guard('admins')->user()->can("manager administrator"))
-
- @else
-
-
Access Denied - You are not assigned to any administrator management department
-
- @endif
-
-@endsection
diff --git a/resources/views/admin/user/login.blade.php b/resources/views/admin/user/login.blade.php
deleted file mode 100644
index 91f2fe6..0000000
--- a/resources/views/admin/user/login.blade.php
+++ /dev/null
@@ -1,138 +0,0 @@
-
-
-
-
-
-
- Đăng nhập quản trị hệ thống
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Đăng nhập để quản lý dịch vụ
-
-
- @csrf
-
-
-
-
-
-
-
- Remember Me
-
-
-
-
-
- Login
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources/views/administrator/dashboard-2.blade.php b/resources/views/administrator/dashboard-2.blade.php
deleted file mode 100644
index 867e2a0..0000000
--- a/resources/views/administrator/dashboard-2.blade.php
+++ /dev/null
@@ -1,484 +0,0 @@
-@extends('administrator.layout.master')
-
-@push('plugin-styles')
-
-@endpush
-
-@section('content')
-
-
-
Welcome to Dashboard
-
-
-
-
-
-
-
-
- Print
-
-
-
- Download Report
-
-
-
-
-
-
-
-
-
-
-
-
New Customers
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Revenue is the income that a business has from its normal
- business activities, usually from the sale of goods and services to customers.
-
-
-
- Today
- Week
- Month
- Year
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Monthly sales
-
-
-
-
-
-
Sales are activities related to selling or the number of goods or services sold in a
- given time period.
-
-
-
-
-
-
-
-
-
Cloud storage
-
-
-
-
-
-
-
-
-
- Total
- storage
-
8TB
-
-
-
-
- Used storage
-
~5TB
-
-
-
-
- Upgrade storage
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- #
- Project Name
- Start Date
- Due Date
- Status
- Assign
-
-
-
-
- 1
- NobleUI jQuery
- 01/01/2025
- 26/04/2025
- Released
- Leonardo Payne
-
-
- 2
- NobleUI Angular
- 01/01/2025
- 26/04/2025
- Review
- Carl Henson
-
-
- 3
- NobleUI ReactJs
- 01/05/2025
- 10/09/2025
- Pending
- Jensen Combs
-
-
- 4
- NobleUI VueJs
- 01/01/2025
- 31/11/2025
- Work in Progress
-
- Amiah Burton
-
-
- 5
- NobleUI Laravel
- 01/01/2025
- 31/12/2025
- Coming soon
- Yaretzi Mayo
-
-
- 6
- NobleUI NodeJs
- 01/01/2025
- 31/12/2025
- Coming soon
- Carl Henson
-
-
- 3
- NobleUI EmberJs
- 01/05/2025
- 10/11/2025
- Pending
- Jensen Combs
-
-
-
-
-
-
-
-
-@endsection
-
-@push('plugin-scripts')
-
-
-@endpush
-
-@push('custom-scripts')
- @vite(['resources/js/pages/dashboard.js'])
-@endpush
\ No newline at end of file
diff --git a/resources/views/administrator/pages/block/Sync/Datastore.blade.php b/resources/views/administrator/pages/block/Sync/Datastore.blade.php
index 9f253d4..fd51358 100644
--- a/resources/views/administrator/pages/block/Sync/Datastore.blade.php
+++ b/resources/views/administrator/pages/block/Sync/Datastore.blade.php
@@ -1,3 +1,3 @@
Add Datastore
-@include("admin.block.Sync.All")
+@include("administrator.pages.block.Sync.All")
Sync Datastore
diff --git a/resources/views/administrator/pages/block/Sync/Folder.blade.php b/resources/views/administrator/pages/block/Sync/Folder.blade.php
index 0a163de..67ed0e9 100644
--- a/resources/views/administrator/pages/block/Sync/Folder.blade.php
+++ b/resources/views/administrator/pages/block/Sync/Folder.blade.php
@@ -1,3 +1,3 @@
Add Folder
-@include("admin.block.Sync.All")
+@include("administrator.pages.block.Sync.All")
Sync Folder
diff --git a/resources/views/administrator/pages/package/datastore/add.blade.php b/resources/views/administrator/pages/package/datastore/add.blade.php
index b866fe7..90b6560 100644
--- a/resources/views/administrator/pages/package/datastore/add.blade.php
+++ b/resources/views/administrator/pages/package/datastore/add.blade.php
@@ -1,44 +1,54 @@
-@extends('admin.main')
+@extends('administrator.layout.master')
+@push('plugin-styles')
+
+@endpush
+
+@section('breadcrumb')
+ @php
+ $breadcrumbItems = [
+ ['label' => 'Modules'],
+ ['label' => 'Package vCenter'],
+ ['label' => 'Datastore', 'active' => true],
+ ];
+ @endphp
+
+@endsection
@section('content')
@if (auth()->guard('admins')->user()->can('add module vcenter'))
@csrf
- {{--
--}}
-
-
-
+ {{--
--}}
+
+
+
{{-- Name --}}
{{-- Host ID --}}
{{-- Template ID --}}
{{-- Console ID --}}
@@ -65,3 +75,10 @@
@endif
@endsection
+
+@push('plugin-scripts')
+
+
+
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/administrator/pages/package/datastore/edit.blade.php b/resources/views/administrator/pages/package/datastore/edit.blade.php
index d65a454..8efc25a 100644
--- a/resources/views/administrator/pages/package/datastore/edit.blade.php
+++ b/resources/views/administrator/pages/package/datastore/edit.blade.php
@@ -1,63 +1,87 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
- {{--Console ID--}}
-
-
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
+@extends("administrator.layout.master")
+@push('plugin-styles')
+
+@endpush
+
+@section('breadcrumb')
+ @php
+ $breadcrumbItems = [
+ ['label' => 'Modules'],
+ ['label' => 'Package vCenter'],
+ ['label' => 'Datastore', 'active' => true],
+ ];
+ @endphp
+
@endsection
+@section("content")
+ @if(auth()->guard('admins')->user()->can("add module vcenter"))
+
+
+ @csrf
+ @method('put')
+
+
+
+
+ {{--Name--}}
+
+ {{--Host ID--}}
+
+ {{--Template ID--}}
+
+ {{--Console ID--}}
+
+
+
+
+
+
+
+ @else
+
+
Access Denied - You are not assigned to any Module vCenter
+ management department
+
+ @endif
+@endsection
+@push('plugin-scripts')
+
+
+
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/administrator/pages/package/datastore/index.blade.php b/resources/views/administrator/pages/package/datastore/index.blade.php
index c835d4f..6649d83 100644
--- a/resources/views/administrator/pages/package/datastore/index.blade.php
+++ b/resources/views/administrator/pages/package/datastore/index.blade.php
@@ -1,86 +1,46 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
+@extends('administrator.layout.master')
+
+@push('plugin-styles')
+
+@endpush
+
+@section('breadcrumb')
+ @php
+ $breadcrumbItems = [
+ ['label' => 'Modules'],
+ ['label' => 'Package vCenter'],
+ ['label' => 'Datastore', 'active' => true],
+ ];
+ @endphp
+
+@endsection
@section('content')
@if(auth()->guard('admins')->user()->can("manager package module"))
+ @include("administrator.pages.block.Sync.Datastore")
+
+
+
+
+
@else
-
-
Access Denied - You are not assigned to any Module Package
- management department
-
- @endif
+
+
Access Denied - You are not assigned to any Module Package
+ management department
+
+ @endif
@endsection
+
+@push('plugin-scripts')
+
+
+
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/administrator/pages/package/folder/edit.blade.php b/resources/views/administrator/pages/package/folder/edit.blade.php
index 6b6598f..624a34b 100644
--- a/resources/views/administrator/pages/package/folder/edit.blade.php
+++ b/resources/views/administrator/pages/package/folder/edit.blade.php
@@ -1,45 +1,68 @@
-@extends("admin.main")
-@section("content")
-@if(auth()->guard('admins')->user()->can("add module vcenter"))
-
-
- @csrf
- @method('put')
-
-
-
- {{--Name--}}
-
- {{--Host ID--}}
-
- {{--Template ID--}}
-
-
-
-
-
-@else
-
-
Access Denied - You are not assigned to any Module vCenter
- management department
-
-@endif
+@extends("administrator.layout.master")
+@push('plugin-styles')
+
+@endpush
+
+@section('breadcrumb')
+ @php
+ $breadcrumbItems = [
+ ['label' => 'Modules'],
+ ['label' => 'Package vCenter'],
+ ['label' => 'Folder', 'active' => true],
+ ];
+ @endphp
+
@endsection
+@section("content")
+ @if(auth()->guard('admins')->user()->can("add module vcenter"))
+
+
+
+ @method('put')
+
+
+
+ {{--Name--}}
+
+ {{--Host ID--}}
+
+ {{--Template ID--}}
+
+
+
+
+
+ @else
+
+
Access Denied - You are not assigned to any Module vCenter
+ management department
+
+ @endif
+@endsection
+ @push('plugin-scripts')
+
+
+
+
+ @endpush
\ No newline at end of file
diff --git a/resources/views/administrator/pages/package/folder/index.blade.php b/resources/views/administrator/pages/package/folder/index.blade.php
index 4c874ad..355524d 100644
--- a/resources/views/administrator/pages/package/folder/index.blade.php
+++ b/resources/views/administrator/pages/package/folder/index.blade.php
@@ -1,81 +1,32 @@
-@php use App\Http\Helpers\Helper; @endphp
-@extends('admin.main')
+@extends('administrator.layout.master')
+@push('plugin-styles')
+
+@endpush
+
+@section('breadcrumb')
+ @php
+ $breadcrumbItems = [
+ ['label' => 'Modules'],
+ ['label' => 'Package vCenter'],
+ ['label' => 'Folder', 'active' => true],
+ ];
+ @endphp
+
+@endsection
@section('content')
@if(auth()->guard('admins')->user()->can("manager package module"))
@else
@@ -85,3 +36,9 @@
@endif
@endsection
+@push('plugin-scripts')
+
+
+
+
+@endpush
\ No newline at end of file
diff --git a/resources/views/components/module/datacenter.blade.php b/resources/views/components/module/datacenter.blade.php
index c87dea5..5345625 100644
--- a/resources/views/components/module/datacenter.blade.php
+++ b/resources/views/components/module/datacenter.blade.php
@@ -1,118 +1,130 @@
@php
- $selectedDatacenterId =
- old('module_datacenter_id') ??
- ($model?->ipaddress?->host?->module_datacenter_id ?? ($model?->module_datacenter_id ?? null));
+ $selectedDatacenterId = old('module_datacenter_id');
+
+ if (!$selectedDatacenterId && $model) {
+ if ($model instanceof \App\Models\ModuleDatacenter) {
+ $selectedDatacenterId = $model->id;
+ } elseif ($model instanceof \App\Models\ModuleHost || $model instanceof \App\Models\ModuleFolder) {
+ $selectedDatacenterId = $model->module_datacenter_id;
+ } elseif ($model instanceof \App\Models\ModuleDatastore || $model instanceof \App\Models\ModuleNetwork) {
+ $selectedDatacenterId = $model->host?->module_datacenter_id;
+ } elseif ($model instanceof \App\Models\ModuleIpAddress) {
+ $selectedDatacenterId = $model->host?->module_datacenter_id;
+ } elseif (isset($model->module_datacenter_id)) {
+ $selectedDatacenterId = $model->module_datacenter_id;
+ } elseif (method_exists($model, 'host') && $model->host) {
+ $selectedDatacenterId = $model->host->module_datacenter_id;
+ }
+ }
@endphp
-
-