53 lines
2.0 KiB
PHP
53 lines
2.0 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' => 'Version', '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 d-flex justify-content-end gap-2">
|
|
<x-button-crm type="button" variant="primary" size="md" route="package.version.create" icon="plus-circle">Add
|
|
Version OS</x-button-crm>
|
|
</div>
|
|
<div class="card-body">
|
|
<x-datatable id="osVerisionTable" ajax="{{ route('package.version.datatable') }}" :columns="[
|
|
['key' => 'version', 'label' => 'Version'],
|
|
['key' => 'os_group', 'label' => 'OS Group'],
|
|
['key' => 'template_id', 'label' => 'Template'],
|
|
['key' => 'status', 'label' => 'Status'],
|
|
['key' => 'action', 'label' => 'Action'],
|
|
]" />
|
|
</div>
|
|
|
|
</div>
|
|
@else
|
|
<div class="alert alert-danger alert-dismissible">
|
|
<h5 class="mb-0"><i data-lucide="ban" class="icon mr-2"></i> Access Denied - You are not assigned to any Module
|
|
Package
|
|
management department</h5>
|
|
</div>
|
|
@endif
|
|
|
|
<!-- Include Delete Modal -->
|
|
@include('administrator.pages.package.version.datatable.modal')
|
|
@endsection
|
|
|
|
|
|
@push('plugin-scripts')
|
|
@foreach (config('assets.datatable.js') as $datatable)
|
|
<script src="{{ asset($datatable) }}"></script>
|
|
@endforeach
|
|
@endpush |