diff --git a/resources/views/administrator/layout/master.blade.php b/resources/views/administrator/layout/master.blade.php index a01de98..e578edb 100644 --- a/resources/views/administrator/layout/master.blade.php +++ b/resources/views/administrator/layout/master.blade.php @@ -79,6 +79,17 @@ @vite(['resources/js/pages/template.js']) + + + @include('administrator.layout.partials.toast') @stack('custom-scripts') diff --git a/resources/views/administrator/pages/package/group/add.blade.php b/resources/views/administrator/pages/package/group/add.blade.php index a120443..2b8de8c 100644 --- a/resources/views/administrator/pages/package/group/add.blade.php +++ b/resources/views/administrator/pages/package/group/add.blade.php @@ -1,73 +1,96 @@ -@extends("admin.main") -@section("content") -@if(auth()->guard('admins')->user()->can("add package module")) -
-
- @csrf -
-
-
- {{--Name--}} -
- -
- +@extends('administrator.layout.master') +@push('plugin-styles') + +@endpush + +@php + use App\Enums\Status; +@endphp + +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'Package vCenter'], + ['label' => 'OS Group'], + ['label' => 'Add New', 'active' => true], + ]; + @endphp + +@endsection +@section('content') + @if (auth()->guard('admins')->user()->can('add package module')) +
+ + @csrf +
+
+
+ {{-- Name --}} +
+ +
+ +
-
- {{--Thumbnail--}} -
- -
-
-
- -
-
- + {{-- Thumbnail --}} +
+ +
+
+
+ +
+
+ +
-
- - - - {{--Status--}} -
- -
- + + + + {{-- Status --}} +
+ +
+ +
-
- - -
-@else -
-
Access Denied - You are not assigned to any Module Package - management department
-
-@endif + + +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif @endsection @push('scripts') -@endpush \ No newline at end of file +@endpush + +@push('plugin-scripts') + + + + +@endpush diff --git a/resources/views/administrator/pages/package/group/edit.blade.php b/resources/views/administrator/pages/package/group/edit.blade.php index 55647b4..b54a3d8 100644 --- a/resources/views/administrator/pages/package/group/edit.blade.php +++ b/resources/views/administrator/pages/package/group/edit.blade.php @@ -1,74 +1,97 @@ -@extends("admin.main") -@section("content") -@if(auth()->guard('admins')->user()->can("add package module")) -
-
- @csrf - @method('put') -
-
-
- {{--Name--}} -
- -
- +@extends('administrator.layout.master') +@push('plugin-styles') + +@endpush + +@php + use App\Enums\Status; +@endphp + +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'Package vCenter'], + ['label' => 'OS Group', 'active' => true], + ]; + @endphp + +@endsection +@section('content') + @if (auth()->guard('admins')->user()->can('add package module')) +
+ + @csrf + @method('put') +
+
+
+ {{-- Name --}} +
+ +
+ +
-
- {{--Thumbnail--}} -
- -
-
-
- -
-
- + {{-- Thumbnail --}} +
+ +
+
+
+ +
+
+ +
-
- - - - {{--Status--}} -
- -
- + + + + {{-- Status --}} +
+ +
+ +
-
- - -
-@else -
-
Access Denied - You are not assigned to any Module Package - management department
-
-@endif + + +
+ @else +
+
Access Denied - You are not assigned to any Module Package + management department
+
+ @endif @endsection @push('scripts') +@endpush +@push('plugin-scripts') + + + + @endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/package/group/index.blade.php b/resources/views/administrator/pages/package/group/index.blade.php index 294fa96..3a49cbb 100644 --- a/resources/views/administrator/pages/package/group/index.blade.php +++ b/resources/views/administrator/pages/package/group/index.blade.php @@ -8,7 +8,7 @@ $breadcrumbItems = [ ['label' => 'Modules'], ['label' => 'Package vCenter'], - ['label' => 'Datacenter', 'active' => true], + ['label' => 'OS Group', 'active' => true], ]; @endphp diff --git a/resources/views/components/module/host.blade.php b/resources/views/components/module/host.blade.php index b6e1942..e7f8108 100644 --- a/resources/views/components/module/host.blade.php +++ b/resources/views/components/module/host.blade.php @@ -22,8 +22,10 @@ $selectedHostId = old('module_host_id') ?? ($model?->module_host_id ?? ($model?- } window.hostComponentInitialized = true; - // Initialize Select2 - initSelect2(); + // Initialize Select2 using global function + if (typeof window.initSelect2 === 'function') { + window.initSelect2(); + } const $datacenter = $('.datacenter_id'); const $host = $('.host_id'); diff --git a/resources/views/components/module/os.blade.php b/resources/views/components/module/os.blade.php index 4c923ae..d33a7c3 100644 --- a/resources/views/components/module/os.blade.php +++ b/resources/views/components/module/os.blade.php @@ -30,8 +30,10 @@ $selectedOsGroupId = old('os_group_id') ?? ($model?->os?->os_group_id ?? null); } window.osComponentInitialized = true; - // Initialize Select2 - initSelect2(); + // Initialize Select2 using global function + if (typeof window.initSelect2 === 'function') { + window.initSelect2(); + } const $host = $('.host_id'); const $osGroup = $('.os_group_id'); diff --git a/resources/views/livewire/module/vcenter.blade.php b/resources/views/livewire/module/vcenter.blade.php index 47374c7..b2177a1 100644 --- a/resources/views/livewire/module/vcenter.blade.php +++ b/resources/views/livewire/module/vcenter.blade.php @@ -21,7 +21,10 @@ @push('scripts')