70 lines
2.3 KiB
PHP
70 lines
2.3 KiB
PHP
@extends('administrator.layout.master')
|
|
@push('plugin-styles')
|
|
@foreach (config('assets.datatable.css') as $datatable)
|
|
<link href="{{ asset($datatable) }}" rel="stylesheet" />
|
|
@endforeach
|
|
@endpush
|
|
|
|
@section('breadcrumb')
|
|
@php
|
|
$breadcrumbItems = [
|
|
['label' => 'Modules'],
|
|
['label' => 'Vcenter', 'active' => true],
|
|
];
|
|
@endphp
|
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
|
@endsection
|
|
@section('tab')
|
|
@php
|
|
$tabs = [
|
|
[
|
|
'label' => 'DNS',
|
|
'route' => 'module.dns.index',
|
|
'icon' => 'server',
|
|
],
|
|
[
|
|
'label' => 'Hosting',
|
|
'route' => 'module.hosting.index',
|
|
'icon' => 'server',
|
|
],
|
|
[
|
|
'label' => 'vCenter',
|
|
'route' => 'module.vcenter.index',
|
|
'icon' => 'server',
|
|
],
|
|
[
|
|
'label' => 'IpPool',
|
|
'route' => 'module.ippool.index',
|
|
'icon' => 'server',
|
|
],
|
|
];
|
|
@endphp
|
|
<x-admin-tab :items="$tabs" />
|
|
@endsection
|
|
@section('content')
|
|
@if(auth()->guard('admins')->user()->can("manager module vcenter"))
|
|
<div class="card rounded-4 shadow-none">
|
|
<div class="card-header d-flex justify-content-end gap-2">
|
|
@include("administrator.pages.block.ModuleVCenter")
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<x-datatable id="vcenterTable" ajax="{{ route('module.vcenter.datatable') }}" :columns="[
|
|
['key' => 'host', 'label' => 'Host'],
|
|
['key' => 'user', 'label' => 'User'],
|
|
['key' => 'status', 'label' => 'Status'],
|
|
['key' => 'action', 'label' => 'Action', 'searchable' => false],
|
|
]" />
|
|
</div>
|
|
</div>
|
|
@else
|
|
<div class="alert alert-danger alert-dismissible">
|
|
<h5 class="mb-0"><i class="icon fas fa-ban"></i> Access Denied - You are not assigned to any Module vCenter
|
|
management department</h5>
|
|
</div>
|
|
@endif
|
|
@endsection
|
|
@push('plugin-scripts')
|
|
@foreach (config('assets.datatable.js') as $datatable)
|
|
<script src="{{ asset($datatable) }}"></script>
|
|
@endforeach
|
|
@endpush |