49 lines
1.9 KiB
PHP
49 lines
1.9 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' => 'Package vCenter'],
|
|
['label' => 'Virtual Machine', 'active' => true],
|
|
];
|
|
@endphp
|
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
|
@endsection
|
|
@section('content')
|
|
@if(auth()->guard('admins')->user()->can("manager package module"))
|
|
<div class="card card-primary card-outline">
|
|
<div class="card-header">
|
|
@include("administrator.pages.block.Sync.VM")
|
|
</div>
|
|
<div class="card-body">
|
|
<x-datatable id="vmTable" ajax="{{ route('package.vm.datatable') }}" :columns="[
|
|
['key' => 'vm_id', 'label' => 'VM ID'],
|
|
['key' => 'name', 'label' => 'Name'],
|
|
['key' => 'power_state', 'label' => 'State'],
|
|
['key' => 'cpu', 'label' => 'CPU'],
|
|
['key' => 'ram_mb', 'label' => 'RAM (MB)'],
|
|
['key' => 'datacenter.name', 'label' => 'Datacenter'],
|
|
['key' => 'action', 'label' => 'Action', 'orderable' => false, 'searchable' => false],
|
|
]" />
|
|
</div>
|
|
<div class="card-footer">
|
|
</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 Package
|
|
management department</h5>
|
|
</div>
|
|
@endif
|
|
@endsection
|
|
@push('plugin-scripts')
|
|
@foreach (config('assets.datatable.js') as $datatable)
|
|
<script src="{{ asset($datatable) }}"></script>
|
|
@endforeach
|
|
@endpush |