diff --git a/app/Http/Controllers/rest/ModuleController.php b/app/Http/Controllers/rest/ModuleController.php index 367ff37..0aa00a6 100644 --- a/app/Http/Controllers/rest/ModuleController.php +++ b/app/Http/Controllers/rest/ModuleController.php @@ -57,7 +57,7 @@ class ModuleController extends Controller ], [], [], - ['id', 'name'] + ['id', 'name', 'datacenter_id'] ); if (count($datacenter) > 0) { diff --git a/resources/views/administrator/pages/package/network/add.blade.php b/resources/views/administrator/pages/package/network/add.blade.php index 52b2463..6c51636 100644 --- a/resources/views/administrator/pages/package/network/add.blade.php +++ b/resources/views/administrator/pages/package/network/add.blade.php @@ -1,47 +1,68 @@ +@extends('administrator.layout.master') +@push('plugin-styles') + +@endpush -@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 +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'Package vCenter'], + ['label' => 'Datacenter', 'active' => true], + ]; + @endphp + @endsection +@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 + +@push('plugin-scripts') + + + + +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/package/network/edit.blade.php b/resources/views/administrator/pages/package/network/edit.blade.php index 89d86f2..cdf0ae1 100644 --- a/resources/views/administrator/pages/package/network/edit.blade.php +++ b/resources/views/administrator/pages/package/network/edit.blade.php @@ -1,48 +1,71 @@ +@extends('administrator.layout.master') +@push('plugin-styles') + +@endpush -@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 +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'Package vCenter'], + ['label' => 'Datacenter', 'active' => true], + ]; + @endphp + @endsection +@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 +@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 5345625..e829762 100644 --- a/resources/views/components/module/datacenter.blade.php +++ b/resources/views/components/module/datacenter.blade.php @@ -26,7 +26,7 @@ - @push('scripts') + @push('custom-scripts') + @endpush \ No newline at end of file diff --git a/resources/views/components/module/host.blade.php b/resources/views/components/module/host.blade.php index 0b74226..b6e1942 100644 --- a/resources/views/components/module/host.blade.php +++ b/resources/views/components/module/host.blade.php @@ -1,5 +1,5 @@ @php - $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?->ipaddress?->module_host_id ?? null)); +$selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?->ipaddress?->module_host_id ?? null)); @endphp @@ -13,7 +13,7 @@ -@push('scripts') +@push('custom-scripts')