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') -
-
- @csrf - @method('put') -
- {{--Username--}} -
- -
- -
-
- {{--Administrator Role --}} -
- -
- -
-
- {{--First name--}} -
- -
- -
-
- {{--Last name--}} -
- -
- -
-
- {{--Email--}} -
- -
- -
-
-
- {{--Password--}} -
-
- Enter only if you want to change the password -
-
-
- -
- -
-
-
- -
- -
-
-
- {{--Confirm Password--}} -
-
- Please confirm your admin password to add or make changes to administrator account details -
-
-
- -
- -
-
-
- -
-
-@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") -
-
- @csrf -
-
-
- {{--Product name--}} -
- -
- -
-
- - {{--Price--}} -
- -
- -
-
- - {{--Price Sales--}} -
- -
- -
-
- - {{--Renewal--}} -
- -
- -
-
- - {{--Transfer--}} -
- -
- -
-
- - - {{--Transfer--}} -
- -
- -
-
- {{--Product Type--}} -
- -
- -
-
-
-
-
- -
-
-@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") -
-
- @csrf - @method('put') -
-
-
- {{--Product name--}} -
- -
- -
-
- - {{--Price--}} -
- -
- -
-
- - {{--Price Sales--}} -
- -
- -
-
- - {{--Renewal--}} -
- -
- -
-
- - {{--Transfer--}} -
- -
- -
-
- - - {{--Transfer--}} -
- -
- -
-
- {{--Product Type--}} -
- -
- -
-
-
-
-
- -
-
-@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") -
-
- - Add New Addon - -
-
- - - - - - - - - - - - @if(count($addOns) > 0) - @foreach($addOns->all() as $item) - - - - - - - - @endforeach - @endif - -
NamePriceType
- {{ $item->name }} - - {{ number_format($item->price,0,',','.') }} vnđ - - {{ $item->Type->name }} - - - - - -
- @csrf - @method('delete') - -
-
-
- -
-@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 -
- @csrf - - -
- 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 -
- @csrf - - -
- 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 -
- @csrf - - -
- 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 -
- @csrf - - -
- 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 -
- @csrf - - -
- 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 -
- @csrf - - -
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 @@ - 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")) -
-
- @csrf -
-
-
- - {{--CODE name--}} -
- -
-
- -
-
- -
-
-
- - {{--Start Day--}} -
- -
- -
-
- - {{--End Day--}} -
- -
- -
-
- - {{--Limit Coupon--}} -
- -
- -
-
- - {{--Type Counpon--}} -
- -
- -
-
- {{--Value Counpon--}} -
- -
- -
-
- - {{--Status--}} -
- -
- -
-
-
-
-
- -
-
- - @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")) -
-
- @csrf - @method('put') -
-
-
- - {{--CODE name--}} -
- -
-
- -
-
- -
-
-
- - {{--Start Day--}} -
- -
- -
-
- - {{--End Day--}} -
- -
- -
-
- - {{--Limit Coupon--}} -
- -
- -
-
- - {{--Type Counpon--}} -
- -
- -
-
- {{--Value Counpon--}} -
- -
- -
-
- - {{--Status--}} -
- -
- -
-
-
-
-
- -
-
- - @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')) -
-
- - Add New Coupon - -
-
- - - - - - - - - - - - - - - - - @if(count($coupons) > 0) - @foreach($coupons->all() as $item) - - - - - - - - - - - - @endforeach - @endif - -
- - CODETypeValueUsesStart DateExpiry Date
- - - {{ $item->code }} - - {{ (int) $item->type === 1 ? "Percentage" : "Fix Amount" }} - - {{ $item->discount }} - - {{ $item->use }}/{{ $item->count }} - - {{ \Illuminate\Support\Carbon::parse($item->start)->format('d/m/Y') }} - - {{ \Illuminate\Support\Carbon::parse($item->end)->format('d/m/Y') }} - - - - - - @if(auth()->guard('admins')->user()->can("delete coupon")) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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 @@ -
-
- -
- - @if($product) - @switch($type) - @case(3) - Server->name.":8880" : "" }}" - target="_blank" - class="btn bg-gradient-success">Login with Panel - @break - @case(4) - - @break - @endswitch - @endif -
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")) -
-
- @csrf -
-
-
- {{--First name--}} -
- -
- -
-
- {{--Last name--}} -
- -
- -
-
- {{--Company--}} -
- -
- -
-
- {{--Email--}} -
- -
- -
-
- {{--Phone--}} -
- -
- -
-
- {{--Password--}} -
- -
- -
-
-
-
- {{--Address--}} -
- -
- -
-
- {{--City--}} -
- -
- -
-
- {{--State--}} -
- -
- -
-
- {{--Postcode--}} -
- -
- -
-
- {{--Country--}} -
- -
- -
-
- {{--Password--}} -
- -
- - Send Client Marketing Emails -
-
-
-
-
- -
- -
- @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")) -
-
- @include("admin.block.nav") -
-
-
-
-
- @csrf - @method('put') -
-
-
-

Add Amount

-
- -
- -
- -
-
-
-
-
- -
-
-
-
- @csrf - @method('put') -
-
-
-

Remove Amount

-
- -
- -
- -
-
-
-
-
- -
-
-
-
-
- @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') -
-
-
- -
-
-

VMware Console

- -
-
-

VM: {{ $product->name ?? 'VM Console' }}

-
-
- - -
-
-
Điều khiển Console
-
-
-
-
- - -
-
- -
- - - -
-
-
-
-
- - -
-
- -
-
- -
-
-
- - -

{{ __('Đ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")) -
-
- @include("admin.block.nav") -
-
- -
-
- @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 -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Order # - {{ $product->Order->id }} - - View Order - Registration Date - {!! Carbon::parse($product->Order->date)->format('d-m-Y') !!} -
Product/Service - @isset($productName->name) - {{ $productName->name }} - @endisset - Quantity1
Server - - @if ($product->server) - {{ $product->server->name }} - @else - Not Found - @endif - First Payment Amount - -
Domain - - Recurring Amount - -
Billing Cycle - {!! $invoice_item ? $invoice_item->getBilling() : 'N/A' !!} - Next Due Date - -
Payment Method - {{ $product->Order->Payment->name }} - Status - {!! $product->getStatus() !!} -
Username - - Password - -
-
-
-
-
- @csrf - - - - - - -
- -
-
- -
-
- -
-
- -
-
- -
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 @@ -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Order # - {{ $product->order->id }} - - View Order - Registration Date - @isset($product->order->date) - @time($product->order->date) - @endisset -
Product/Service - @isset($productName->name) - {{ $productName->name }} - @endisset - Quantity1
Server - @isset($product->ipaddress->host->datacenter->vCenter->host) - {{ $product->ipaddress->host->datacenter->vCenter->host }} - @endisset - First Payment Amount - -
IP Address - @isset($product->ipaddress->ip) - {{ $product->ipaddress->ip }} - @endisset - Recurring Amount - -
Billing Cycle - {{-- {{ Helpers::BillingCycle($product->getInvoiceItem()->billing) }} --}} - {!! $invoice_item ? $invoice_item->getBilling() : 'N/A' !!} - Next Due Date - -
Payment Method - @isset($product->order->payment->name) - {{ $product->order->payment->name }} - @endisset - Status - -
Username - - Password - -
-
- - -
-
-
Thông tin máy ảo
-
-
-
-
- - - - - - - - - - - - - -
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 - -
-
- * Đổi mật khẩu sau khi đăng nhập lần đầu để bảo mật tốt hơn. -
- @endif -
-
- - -
-
-
Điều khiển VM
-
-
-
- -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - - - - -
- -
-
- - -
-
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 -
-
-
-
- -
-
- @csrf - @method('put') - - - - - - - - {{-- Vmware Name --}} -
- -
- -
-
- {{-- Vmware Hostname --}} -
- -
- -
-
- {{-- Vmware Port --}} -
- -
- -
-
- {{-- Username --}} -
- -
- -
-
- {{-- Password --}} -
- -
- -
-
- - {{-- vmware_id --}} -
- -
- -
-
- - {{-- vCenter --}} - - - {{-- Datacenter --}} - - - {{-- Host --}} - - - {{-- Network --}} - - - {{-- IP Address --}} - - - {{-- OS Group --}} - - - {{-- OS Version --}} - -
- -
- - @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")) -
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
- - -
-
-
- {{ $customers->count() }} Records Found -
- -
- - - - - - - - - - - - - - - @if($customers->count()) - @foreach($customers->all() as $item) - - - - - - - - - - - @endforeach - @endif - -
- - First NameLast NameCompanyEmail AddressServicesCreatedStatus
- - - $item->id]) }}" - title="View Profile"> {{ $item->firstname }} - - {{ $item->lastname }} - - {{ $item->company }} - - {{ $item->email }} - - {!! Helpers::get_count_service($item) !!} - - @time($item->created_at) - - {!! $item->getStatus() !!} -
-
- -
- @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")) -
-
- @include("admin.block.nav") -
-
-
- -
-
-

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()) - - - @foreach($customer->mail->take(4)->all() as $item) - - - - @endforeach - -
- {{ $item->created_at }} - - {{ $item->subject }} -
- @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) - - - - - @endforeach - -
- {{ $item->filename }} - - -
- @else -

No files uploaded

- @endif -
-
- - Add File Add File - -
-
-
-
- - -
-
- - -
-
-
-
-
-
- -
- -
-@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')) -
-
- @include('admin.block.nav') -
-
- - - - - - - - - - - - - - - @if (count($invoices) > 0) - @foreach ($invoices as $item) - - - - - - - - - - - @endforeach - @else - - - - @endif - - - {!! $invoices->withQueryString()->links() !!} - -
- - Invoice #Invoice DateDue DateDate PaidTotalPayment MethodStatus
- - - {{ $item->id }} - - @time($item->date) - - @time($item->due_date) - - @if ($item->status === 1) - @time($item->date_paid) - @endif - - - @money($item->total) đ - - {{ $item->payment->name ?? 'VN Pay' }} - - {!! $item->getStatus() !!} -
- No Records Found -
- -
-
- @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')) -
-
- @include('admin.block.nav') -
-
- - - - - - - - - - - @if (count($logs) > 0) - @foreach ($logs as $item) - - - - - - - @endforeach - @else - - - - @endif - - - {!! $logs->withQueryString()->links() !!} - -
DateDescriptionUsernameClient IP
- {{ $item->created_at }} - - {{ $item->description }} - - {{ $item->username }} - - {{ $item->client_ip }} -
- No Records Found -
-
-
- @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')) -
-
- @include('admin.block.nav') -
-
- - - - - - - - - - - - @if (count($emails) > 0) - @foreach ($emails as $item) - - - - - - - - @endforeach - @else - - - - @endif - - - {!! $emails->withQueryString()->links() !!} - -
- - DateSubject
- - - {{ $item->created_at }} - - {{ $item->subject }} - - - - - -
- @csrf - @method('put') - - -
-
- No Records Found -
- -
-
- @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")) - -
-
- @include("admin.block.nav") -
-
- @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 - - @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")) - -
-
- @include("admin.block.nav") -
-
- @csrf -
-
-
- {{--First name--}} -
- -
- -
-
- {{--Last name--}} -
- -
- -
-
- {{--Company--}} -
- -
- -
-
- {{--Email--}} -
- -
- -
-
- {{--Phone--}} -
- -
- -
-
- {{--Password--}} -
- -
- -
-
-
- -
- email_marketing === 1)> - Send Client Marketing Emails -
-
-
-
- {{--Address--}} -
- -
- -
-
- {{--City--}} -
- -
- -
-
- {{--State--}} -
- -
- -
-
- {{--Postcode--}} -
- -
- -
-
- {{--Country--}} -
- -
- -
-
- {{--Limit Snapshot--}} -
- -
- -
-
- {{--Status--}} -
- -
- -
-
-
-
-
- -
- -
- @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')) -
-
- @include('admin.block.nav') -
-
- - - - - - - - - - @if (count($transactions)) - @foreach ($transactions as $item) - - - - - - @endforeach - @else - - - - @endif - - - {!! $transactions->withQueryString()->links() !!} - -
Transaction IDAmountDate
- {{ $item->trans }} - - {{ number_format($item->amount, 0, ',', '.') }} đ - - {{ $item->created_at }} -
- No Records Found -
- -
-
- @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 @@ -
- @csrf - @if ($model) - @method('put') - @endisset -
- -
-
-
-
-
-
-
- {{-- Product name --}} -
- -
- -
-
- - {{-- Price --}} -
- -
- -
-
- - {{-- Price Sales --}} -
- -
- -
-
- - {{-- Description --}} -
- -
- -
-
- - {{-- Product Type --}} -
- -
- -
-
- - {{-- Product Group --}} -
- -
- -
-
- - {{-- Status --}} -
- -
- -
-
-
-
-
-
-
-
-
-
- {{-- vCenter --}} - - - - - - - - {{-- vCore (CPU) --}} -
- -
- -
-
- - {{-- Ram --}} -
- -
- -
-
- -
- -
- -
-
- - {{-- Gpu --}} -
- -
- -
-
- - {{-- Bandwidth --}} -
- -
- -
-
- - -
-
-
-
-
-
- -
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 }} -
- -
- -
- -
- -
-
- -
-
-

- - Billing -

-
-
-
-
-
-
@money($total_amount_day)
-
Today
-
-
-
-
-
@money($total_amount_month)
-
This Month
-
-
-
-
-
@money($total_amount_year)
-
This Year
-
-
-
-
-
@money($total_amount)
-
All Time
-
-
-
-
-
- - -
-
-

- - New Order -

-
- -
-
- @if (count($orders) > 0) - @foreach ($orders as $item) -
-
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - {{ $item->customer->firstname . ' ' . $item->customer->lastname }} - -
-
- @endforeach - @endif -
-
- -
- - -
-
-

- - Last Post -

-
- -
-
    - @if ($posts->count()) - @foreach ($posts as $item) -
  • - {{ $item->name }} - - - - {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - - - - - - -
  • - @endforeach - @endif - -
-
- -
- -
-
- -
-
-

- - Staff Online -

-
- -
-
- @if (count($staffs) > 0) - @foreach ($staffs as $item) -
- Staff Avatar -
{{ $item->user->firstname . ' ' . $item->user->lastname }}
-
- {{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }}
-
- @endforeach - @endif -
-
- -
- - -
-
-

- - Activity -

-
- -
-
- @if (count($logs) > 0) - @foreach ($logs as $item) -
-
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - {{ $item->username }} -
{{ $item->description }}
- {{ $item->client_ip }} -
-
- @endforeach - @endif -
-
- -
- -
-
- -
-
-

- - New Virtual Machine -

-
- -
-
- @if (count($vmwares) > 0) - @foreach ($vmwares as $item) -
-
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - {{ $item->customer->firstname . ' ' . $item->customer->lastname }} -
{{ $item->ipaddress->ip ?? '' }}
- - View - -
-
- @endforeach - @else -
No data
- @endif -
-
- -
- - - -
-
-

- - New Hosting -

-
- -
-
- @if (count($hostings) > 0) - @foreach ($hostings as $item) -
-
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - {{ $item->customer->firstname . ' ' . $item->customer->lastname }} -
- @isset($item->ipaddress->ip) - {{ $item->ipaddress->ip }} - @endisset -
- - View - -
-
- @endforeach - @else -
No data
- @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')) -
-
-
-
- - - - - - - - - - - - - - - - - - - - - - @if ($invoice->vm_id) - - - - - @endif - - -
Client Name - - {{ $invoice->customer->firstname . ' ' . $invoice->customer->lastname }} - -
Invoice Date - {{ \Carbon\Carbon::parse($invoice->date)->format('d/m/Y H:i:s') }} -
Due Date - {{ \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y H:i:s') }} -
Total Due - {{ number_format($invoice->total, 0, ',', ',') }}đ -
VM ID - {{ $invoice->vm_id }} -
-
-
-

- {!! $invoice->getStatus() !!} -

-

- Payment Method: {{ $invoice->payment->name ?? 'Free' }} -

-
-
-
- @method('put') - @csrf - - -
-
- @method('put') - @csrf - - -
-
- @method('put') - @csrf - - -
- -
-
-
-
-
-
-

Invoice Items

- - - - - - - - - - - - - @if ($invoice->invoiceItem->count()) - @foreach ($invoice->invoiceItem->all() as $item) - - - - - - - - - @endforeach - @endif - -
ItemProductDescriptionAddonsAmountTax
- @if ($item->type) - - {{ $item->type->name }} - - @endif - - @php - $product = null; - if ($item->product_type == 3 && $item->hosting) { - $product = $item->hosting; - } elseif ($item->product_type == 4 && $item->vps) { - $product = $item->vps; - } - @endphp - - @if ($product) -
- {{ $product->name }} - @if ($item->product_type == 4) -
- - CPU: {{ $product->cpu }} vCore | - RAM: {{ $product->ram }} GB | - Disk: {{ $product->disk }} GB - @if ($product->gpu) - | GPU: {{ $product->gpu }} - @endif - -
- @elseif ($item->product_type == 3) -
- - Disk: {{ $product->disk }} GB | - RAM: {{ $product->ram }} GB | - Bandwidth: {{ $product->bandwidth }} GB - @if ($product->cpu) - | CPU: {{ $product->cpu }} - @endif - -
- @endif - @if ($item->os) -
- {{ $item->os->name }} -
- @endif -
- @else - No product info - @endif -
- {{ $item->description }} - - @if ($item->addons->count() > 0) -
- @foreach ($item->addons as $addon) -
- - {{ $addon->addonItems->name ?? 'Unknown Addon' }} - @if ($addon->qty > 1) - (x{{ $addon->qty }}) - @endif - - - {{ number_format($addon->price, 0, ',', '.') }} đ - -
- @endforeach -
- @else - No addons - @endif -
- {{ number_format($item->amount, 0, ',', '.') }} đ - - -
- - @php - $totalAddonCost = 0; - foreach ($invoice->invoiceItem as $item) { - foreach ($item->addons as $addon) { - $totalAddonCost += $addon->price; - } - } - @endphp - - @if ($totalAddonCost > 0) -
-
-
- Addon Summary: Total addon cost: {{ number_format($totalAddonCost, 0, ',', '.') }} đ -
-
-
- @endif - - @php - $productTypes = []; - foreach ($invoice->invoiceItem as $item) { - $product = null; - if ($item->product_type == 3 && $item->hosting) { - $product = $item->hosting; - } elseif ($item->product_type == 4 && $item->vps) { - $product = $item->vps; - } - - if ($product) { - $typeName = $item->product_type == 3 ? 'Hosting' : ($item->product_type == 4 ? 'VPS' : 'Other'); - if (!isset($productTypes[$typeName])) { - $productTypes[$typeName] = 0; - } - $productTypes[$typeName]++; - } - } - @endphp - - @if (!empty($productTypes)) -
-
-
- Product Summary: - @foreach ($productTypes as $type => $count) - {{ $type }}: {{ $count }} - @endforeach -
-
-
- @endif -
- -
-
- -
- @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")) -
-
-
-
-
- {{-- Customer --}} - -
-
-
- - -
-
-
- {{-- Payment --}} - -
-
-
- - -
-
-
-
- -
-
- - - -
- -
-
-
-
-
- -
-
- - - -
- -
-
-
-
-
- -
-
- - - -
- -
-
-
- - -
- - -
-
-
- {{ $invoices->count() }} Records Found -
-
- - - - - - - - - - - - - - - - @if($invoices->count()) - @foreach($invoices->all() as $item) - - - - - - - - - - - - @endforeach - @endif - -
- - Invoice #Client NameDatePayment MethodTotalStatus
- - - $item->id]) }}" - title="View Order"> {{ $item->id }} - - @isset($item->customer->firstname) - {{ $item->customer->firstname . ' ' . $item->customer->lastname }} - @endisset - - @time($item->date) - - {{ $item->payment->name ?? 'VN Pay' }} - - {{ number_format($item->total,0,',','.') }}đ - - {!! $item->getStatus() !!} - - - - - - @if(auth()->guard('admins')->user()->can("delete invoice")) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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')) -
-
- - - - - - - - - - - - - - - - - - - @if (count($logs) > 0) - @foreach ($logs->all() as $item) - - - - - - - - @endforeach - @else - - - - @endif - -
DateDescriptionCustomerUsernameClient IP
- {{ $item->created_at }} - - {{ $item->description }} - - @if ($item->Customer) - Customer - Code {{ $item->customer_id }} -
- {{ $item->customer->email }} - @else -

None

- @endif -
- {{ $item->username }} - - {{ $item->client_ip }} -
- No Records Found -
-
- -
- @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') - -
- -
-
-
-
-

{{ $title }}

-
-
-
-
-
- - - -
-
- @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 -
-
-
-
- - -
-
-
-
- - - -
-
-
- -
-
-
- - -
-
-
-
- - -
-
- -
-
-
-
- -
-
- - -
-
- - -
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
-
- -
-
-
-
-
- @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') -
-
-
-
- - -
-
-
-
- - -
- -
-
- -
-
-
- - -
-
-
-
- - -
-
- -
-
-
-
- -
-
- - -
-
- - -
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
-
- -
-
-
-
-
- @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')) -
-
- - Add New Menu - -
-
- - - - - - - - - - - - - - - - @if(count($menuOptions)) - @foreach($menuOptions as $item) - - - - - - - - - - - @endforeach - @endif - - - -
- - Tên Danh MụcSlugRouteTrạng TháiNgày TạoSửaXóa
- - - {{ $item['title'] }} - - {{ $item['slug'] ?? '' }} - - {{ $item['route_name'] ?? '' }} - - {{ $item['is_active'] ?? '' }} - - {{ $item['created_at'] ?? '' }} - - - - - - @if(auth()->guard('admins')->user()->can('delete menu')) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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")) -
-
- @include("admin.block.ModuleDNS") -
-
- - - - - - - - - - - - - - @if(count($modules) > 0) - @foreach($modules as $item) - - - - - - - - - - @endforeach - @endif - -
- - IP HostDomain CreatedStatusLast Updated
- - - {{ $item->name }} - - {{ $item->counter }} - - {!! $item->getStatus() !!} - - @time($item->updated_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete module dns")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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')) -
-
- @include('admin.block.ModuleHosting') -
-
- - - - - - - - - - - - - - @if (count($modules) > 0) - @foreach ($modules as $item) - - - - - - - - - - @endforeach - @endif - - -
- - IP HostDomain CreatedStatusLast Updated
- - - {{ $item->name }} - - {{ $item->counter }} - - {!! $item->getStatus() !!} - - @time($item->updated_at) - - - - - - @if (auth()->guard('admins')->user()->can('delete module hosting')) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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')) -
-
- @include('admin.block.ModuleIPPool') -
-
- - - - - - - - - - - - - @if (count($modules) > 0) - @foreach ($modules as $item) - - - - - - - - - @endforeach - @endif - -
- - IP AddressModule NetworkvCenter
- - - {{ $item->ip_address }} - - {{ $item->network->name . ' - ' . $item->network->network }} - - {{ $item->network->host->datacenter->vCenter->host }} - - - - - - @if (auth()->guard('admins')->user()->can('delete module ippool')) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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")) -
-
- @include("admin.block.ModuleVCenter") -
-
- - - - - - - - - - - - - - @if(count($modules) > 0) - @foreach($modules as $item) - - - - - - - - - - @endforeach - @endif - -
- - IP HostUsernameStatusLast Updated
- - - {{ $item->host }} - - {{ $item->user }} - - {!! $item->getStatus() !!} - - @time($item->updated_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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đ
Total0đ
-
-
-
-
-
-
-
- -
-
- @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")) -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Date{{ Carbon::parse($order->date)->format("d/m/Y H:i:s") }}Payment Method{{ $order->payment->name ?? 'VN Pay' }}
Order #{{ $order->order_num }} (ID: {{$order->id}})Amount@money($order->amount) đ
Client - {{ $order->customer->firstname . ' ' . $order->customer->lastname }} -
- {{ $order->customer->address }} -
Invoice #{{ $order->invoice_id !== 0 ? $order->invoice_id : "No Invoice" }}
Status{!! App\Http\Helpers\Helper::OrderStatus($order->status) !!}IP Address - {{ $order->client_ip }} -
Order Placed By - @if($order->user) - {{ $order->user->username }} (#ID: {{ $order->user->id }}) - {{ $order->user->email }} - @endif - Promotion Code - @if($order->discount) - {{ $order->discount->code }} - @endif -
-
-
-
-

Order Item

- - - - - - - - - - - - - @if($order->orderItem->isNotEmpty()) - @foreach($order->orderItem->all() as $item) - - - - - - - - - - @endforeach - @endif - -
ItemDescriptionBilling CycleAmountStatusPayment Status
- @if($item->type && in_array($item->Type->id,[3,4])) - - {{ $item->type->name }} - - @else - {{ $item->type->name }} - @endif - - {{ $item->description }} - - {{ Helper::billing_cycle($item->billing) }} - - @money($item->amount) đ - - @if($item->status) - {!! $item->status->getStatus() !!} - @endif - - @if($order->invoice_id !== 0) - {!! $order->invoice->getStatus() !!} - @else - No Invoice Due - @endif -
-
-
- @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")) -
-
-
-
-
-
- - -
-
-
-
- - -
-
-
-
- - -
-
-
-
- -
-
- - - -
- -
-
-
-
-
- - -
-
-
- -
-
-
- - -
-
-
- - -
-
-
- {{ $orders->count() }} Records Found -
-
- - - - - - - - - - - - - - - - - @if($orders->count()) - @foreach($orders->all() as $item) - - - - - - - - - - - - - @endforeach - @endif - -
- - Order #DateClient NamePayment MethodTotalPayment StatusStatus
- - - $item->id]) }}" - title="View Order"> {{ $item->order_num }} - - @time($item->date) - - {{ $item->customer->firstname . ' ' . $item->customer->lastname }} - - {{ $item->Payment->name ?? 'VN Pay' }} - - {{ number_format($item->amount,0,',','.') }}đ - - @if ($item->invoice_id !== 0) - {!! $item->invoice->getStatus() !!} - @endif - - {!! Helper::OrderStatus($item->status) !!} - - - - - - @if(auth()->guard('admins')->user()->can("delete order")) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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")) -
-
- @include("admin.block.Sync.Datacenter") -
-
- -
-
- @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")) -
-
- @include("admin.block.Sync.Datastore") -
-
- - - - - - - - - - - - - - - @if($datastore->count()) - @foreach($datastore->all() as $item) - - - - - - - - - - - - @endforeach - @endif - -
- - Datastore NameHost NamevCenter HostFree SpaceLast Updated
- - - {{ $item->name }} - - {{ $item->host->name ?? 'N/A' }} - - {{ $item->host->datacenter->vCenter->host ?? 'N/A' }} - - {{ $item->space }} GB - - @time($item->updated_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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")) - -
-
- @include("admin.block.Sync.Folder") -
-
- - - - - - - - - - - - - - @if(count($folders) > 0) - @foreach($folders->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - Folder NameFolder TypeDatacenter NamevCenter Host
- - - {{ $item->name }} - - {{ $item->type }} - - @isset($item->datacenter->name) - {{ $item->datacenter->name }} - @endisset - - @isset($item->datacenter->vCenter->host) - - {{ $item->datacenter->vCenter->host }} - @endisset - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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")) -
-
- @include("admin.block.Group") -
-
- - - - - - - - - - - - - - @if($group->count()) - @foreach($group->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - Group NameThumbnailHost NameStatus
- - - {{ $item->name }} - - {{ $item->name }} - - @isset( $item->host->name) - {{$item->host->name}} - @endisset - - {!! $item->getStatus() !!} - - - - - -
- @method('delete') - @csrf - -
-
-
- -
- @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")) -
-
- @include("admin.block.Sync.Host") -
-
- -
-
- @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--}} -
- -
- -
-
-
- -
- {{--From IP--}} -
- -
- -
-
- {{--From IP--}} -
- -
- -
-
-
-
-
- -
- -
-
-
-
-
- -
-
-@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")) -
- -
- - - - - - - - - - - - - - @if($listIP->count()) - @foreach($listIP->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - VMWare NameIP AddressHost NameStatus
- - - {{ $item->vm_name }} - - {{ $item->ip }} - - {{ $item->Host->name }} - - {!! $item->getStatus() !!} - - - - - -
- @method('delete') - @csrf - -
-
-
- -
- @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")) -
-
- @include("admin.block.Sync.Network") -
-
- - - - - - - - - - - - - @if(count($networks)) - @foreach($networks->all() as $item) - - - - - - - - - @endforeach - @endif - -
- - Network NameHost NamevCenter Host
- - - {{ $item->name }} - - @isset($item->host->name) - {{$item->host->name}} - @endisset - - @isset($item->host->datacenter->vCenter->host) - {{$item->host->datacenter->vCenter->host}} - @endisset - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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")) -
- -
- - - - - - - - - - - - - - @if(count($versions)) - @foreach($versions->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - VersionGroup NameHost LocationStatus
- - - {{ $item->version }} - - @isset($item->osGroup->name) - {{$item->osGroup->name}} - @endisset - - @isset($item->osGroup->host->name) - {{$item->osGroup->host->name}} - @endisset - - {!! $item->getStatus() !!} - - - - - -
- @method('delete') - @csrf - -
-
-
- -
- @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")) -
-
- @include("admin.block.Sync.Host") -
-
- - - - - - - - - - - - - - @if(count($hosts) > 0) - @foreach($hosts->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - Host NameDatacenter NamevCenter HostLast Updated
- - - {{ $item->name }} - - @isset($item->datacenter->name) - {{$item->datacenter->name}} - @endisset - - @isset($item->datacenter->vCenter->host) - {{$item->datacenter->vCenter->host}} - @endisset - - @time($item->updated_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
- @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')) -
- -
- - - - - - - - - - - - - - - - - @if($payments->count()) - @foreach($payments->all() as $item) - - - - - - - - - - - - - @endforeach - @endif - -
- - NameAccountNoBank NameLogoTypeStatus
- - - {{ $item->name }} - - {{ $item->accountNo }} - - {{ $item->bankName }} - - @if($item->logo) - Logo {{ $item->name }} - @endif - - {{ $item->type == 1 ? "Auto Banking" : "Manual" }} - - {!! $item->getStatus() !!} - - - - - - @if(auth()->guard('admins')->user()->can('delete payment')) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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 -
-
-
-
- Detail -
-
-
-
-
- - -
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
- Publish -
-
- - - - Back - -
-
-
-
- Status * -
-
-
-
- -
-
-
-
-
-
- Image -
-
-
-
- -
-
- - Preview image - - - -
-
-
-
-
-
-
-
-
- @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') -
-
-
-
- Detail -
-
-
-
-
- - -
-
-
-
-
-
- -
- - {{ trim(route('home')) .'/' }} - - - - - -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
-
-
- Publish -
-
- - - Back - -
-
-
-
- Status * -
-
-
-
- -
-
-
-
-
-
- Image -
-
-
-
- -
-
- - Preview image - - - -
-
-
-
-
-
-
-
-
- @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")) -
- -
- - - - - - - - - - - - - - @if(count($posts) > 0) - @foreach($posts->all() as $item) - - - - - - - - - - - @endforeach - @endif - -
- - ImageNameStatusCreated At
- - - Image - - {{ $item->name }} - - {!! $item->getStatus() !!} - - @time($item->created_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete post")) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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") -
-
- @include("admin.block.import") -
-
- - - - - - - - - - - - @if($domain->count()) - @foreach($domain->all() as $item) - - - - - - - - @endforeach - @endif - -
.ExtPriceType
- {{ $item->name }} - - {{ number_format($item->price,0,',','.') }} vnđ - - {{ $item->Type->name }} - - - - - -
- @csrf - @method('delete') - -
-
-
- -
-@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')) -
- {{--
Chỉnh sửa sản phẩm {{ $product->name }}
--}} - -
-
-
-
- @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')) -
-
- @include('admin.block.btn') -
-
- - - - - - - - - - - @if (count($groups) > 0) - @foreach ($groups->all() as $item) - - - - - - @if (!empty($item->products) && $item->products->count()) - @foreach ($item->products->all() as $_item) - - - - - - - @endforeach - @endif - @endforeach - @endif - -
Product NameType
- Group Name: {{ $item->name }} - - - - - -
- @method('delete') - @csrf - - -
-
- {{ $_item->name }} - - {{ $_item->Type->name }} - - - - - - @if (auth()->guard('admins')->user()->can('delete product')) -
- @csrf - @method('delete') - -
- @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")) -
-
- @csrf -
-
-
- -
- -
- -
-
- -
- -
-
- Select All - | - Uncheck All -
-
-
    - @if($permission->count()) - @foreach($permission->all() as $item) -
  • - -
  • - @endforeach - @endif -
-
-
-
-
-
- -
-
- - @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') -
-
-
- -
- -
- -
-
- -
- -
-
- Select All - | - Uncheck All -
-
-
    - @if($permission->count()) - @foreach($permission->all() as $item) -
  • - -
  • - @endforeach - @endif -
-
-
-
-
-
- -
-
- - @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")) -
- -
- - - - - - - - - - - @if($roles->count()) - @foreach($roles->all() as $item) - - - - - - - @endforeach - @endif - -
- - Role name
{{ $item->name }} - @if($item->id != 1) - - - - @endif - - @if($item->id != 1 && auth()->guard('admins')->user()->can("delete role")) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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')) -
-
-
Chỉnh sửa cài đặt
-
-
- @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")) -
-
- -
-
- - - - - - - - - - - - - @if(count($tickets) > 0) - @foreach($tickets->unique('ticket_num')->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - Ticket NumSubjectRoomStatus
- - {{ $item->ticket_num }} - - - {{ $item->subject }} - - {{ $item->room }} - - {!! Helpers::get_ticket_status($item->status) !!} - - - - -
-
- -
- @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 - - -
-
- - -
-
- - -
-
- @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))) - Attachment -
    - - {{ $file_info['basename'] }} - - {{ filesize(public_path('template/' . $data->file))*0.001 }} KB - -
    -
  • -
- @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')) -
- -
- - - - - - - - - - - - - - @if($template->count()) - @foreach($template->all() as $item) - - - - - - - - - @endforeach - @endif - -
- - StatusTemplate NameType Name
- - - {!! Helper::Status($item->status) !!} - - {{ $item->name }} - - @if($item->Type) - {{ $item->Type->name }} - @else - General Message - @endif - - - - - - @if(auth()->guard('admins')->user()->can('delete email template')) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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--}} -
- -
- -
-
-
-
-
- Enter only if you want to change the password -
-
- {{--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")) -
- -
- - - - - - - - - - - - - - @if($users->count()) - @foreach($users->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - NameEmail AddressUsernameAdmin Role
{{ $item->firstname . ' ' . $item->lastname }}{{ $item->email }}{{ $item->username }}{{ $item->roles->first()->name ?? 'Chưa phân loại' }} - - - - - @if(auth()->guard('admins')->user()->can("delete administrator") && $item->id != 1) -
- @csrf - @method('delete') - -
- @endif -
-
- -
- @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 - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - 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

-
-
-
- - -
- - -
-
- -
-
-
-
-
-
-
-
New Customers
- -
-
-
-

3,897

-
-

- +3.3% - -

-
-
-
-
-
-
-
-
-
-
-
-
-
-
New Orders
- -
-
-
-

35,084

-
-

- -2.8% - -

-
-
-
-
-
-
-
-
-
-
-
-
-
-
Growth
- -
-
-
-

89.87%

-
-

- +2.8% - -

-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
Revenue
- -
-
-
-

Revenue is the income that a business has from its normal - business activities, usually from the sale of goods and services to customers.

-
-
-
- - - - -
-
-
-
-
-
-
-
- -
-
-
-
-
-
Monthly sales
- -
-

Sales are activities related to selling or the number of goods or services sold in a - given time period.

-
-
-
-
-
-
-
-
-
Cloud storage
- -
-
-
-
-
- -
8TB
-
-
-
-
- -
~5TB
-
-
-
-
- -
-
-
-
-
- -
- -
-
-
-
-
Projects
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Project NameStart DateDue DateStatusAssign
1NobleUI jQuery01/01/202526/04/2025ReleasedLeonardo Payne
2NobleUI Angular01/01/202526/04/2025ReviewCarl Henson
3NobleUI ReactJs01/05/202510/09/2025PendingJensen Combs
4NobleUI VueJs01/01/202531/11/2025Work in Progress - Amiah Burton
5NobleUI Laravel01/01/202531/12/2025Coming soonYaretzi Mayo
6NobleUI NodeJs01/01/202531/12/2025Coming soonCarl Henson
3NobleUI EmberJs01/05/202510/11/2025PendingJensen 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("admin.block.Sync.Datastore") -
-
- - - - - - - - - - - - - - - @if($datastore->count()) - @foreach($datastore->all() as $item) - - - - - - - - - - - - @endforeach - @endif - -
- - Datastore NameHost NamevCenter HostFree SpaceLast Updated
- - - {{ $item->name }} - - {{ $item->host->name ?? 'N/A' }} - - {{ $item->host->datacenter->vCenter->host ?? 'N/A' }} - - {{ $item->space }} GB - - @time($item->updated_at) - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
- -
+ @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"))
- @include("admin.block.Sync.Folder") + @include("administrator.pages.block.Sync.Folder")
- - - - - - - - - - - - - - @if(count($folders) > 0) - @foreach($folders->all() as $item) - - - - - - - - - - @endforeach - @endif - -
- - Folder NameFolder TypeDatacenter NamevCenter Host
- - - {{ $item->name }} - - {{ $item->type }} - - @isset($item->datacenter->name) - {{ $item->datacenter->name }} - @endisset - - @isset($item->datacenter->vCenter->host) - - {{ $item->datacenter->vCenter->host }} - @endisset - - - - - - @if(auth()->guard('admins')->user()->can("delete module vcenter")) -
- @method('delete') - @csrf - -
- @endif -
-
-
@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 - -
- -
- +
+ +
+ +
-
- -@push('scripts') - -@endpush + + @endpush \ No newline at end of file diff --git a/routes/admin.php b/routes/admin.php index c1fd5da..60bef95 100644 --- a/routes/admin.php +++ b/routes/admin.php @@ -1,4 +1,4 @@ -group(function () { Route::delete('remove-vcenter/{id}', 'destroy')->name('module.vcenter.destroy'); }); - + //Package Route Route::prefix('package')->group(function () { @@ -234,6 +234,7 @@ Route::prefix('administrator')->group(function () { Route::get('edit/{id}', 'edit')->name('edit'); Route::put('edit/{id}', 'update')->name('update'); Route::delete('remove/{id}', 'destroy')->name('destroy'); + Route::get('datatable', 'datatable')->name('datatable'); }); //Host Route::group([ @@ -276,6 +277,7 @@ Route::prefix('administrator')->group(function () { Route::get('edit/{id}', 'edit')->name('edit'); Route::put('edit/{id}', 'update')->name('update'); Route::delete('remove/{id}', 'destroy')->name('destroy'); + Route::get('datatable', 'datatable')->name('datatable'); }); Route::group([ 'prefix' => 'group',