This commit is contained in:
pbao9
2026-02-05 20:52:43 +07:00
parent 2000f7d99a
commit 3a01d07a74
8 changed files with 160 additions and 34 deletions
@@ -14,6 +14,33 @@
@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 dns"))
<div class="card card-primary card-outline">
@@ -9,12 +9,38 @@
@php
$breadcrumbItems = [
['label' => 'Modules'],
['label' => 'Package vCenter'],
['label' => 'Datacenter', 'active' => true],
['label' => 'Hosting', '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 hosting'))
<div class="card card-primary card-outline">
@@ -1,5 +1,46 @@
@php use App\Http\Helpers\Helper; @endphp
@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' => 'IP Pools', '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 ippool'))
<div class="card card-primary card-outline">
@@ -27,8 +68,7 @@
@foreach ($modules as $item)
<tr>
<td class="text-center">
<label for=""></label><input type="checkbox" name="id[]"
value="{{ $item->id }}" id="">
<label for=""></label><input type="checkbox" name="id[]" value="{{ $item->id }}" id="">
</td>
<td class="text-center">
{{ $item->ip_address }}
@@ -40,8 +80,7 @@
{{ $item->network->host->datacenter->vCenter->host }}
</td>
<td>
<a class="btn btn-warning btn-sm"
href="{{ route('module.ippool.edit', ['id' => $item->id]) }}">
<a class="btn btn-warning btn-sm" href="{{ route('module.ippool.edit', ['id' => $item->id]) }}">
<i class="fas fa-user-edit"></i>
</a>
</td>
@@ -51,8 +90,8 @@
action="{{ route('module.ippool.destroy', ['id' => $item->id]) }}">
@method('delete')
@csrf
<button type="submit" data-toggle="tooltip" data-placement="top"
title="" class="btn btn-sm btn-danger" data-original-title="Xoá">
<button type="submit" data-toggle="tooltip" data-placement="top" title=""
class="btn btn-sm btn-danger" data-original-title="Xoá">
<i class="fas fa-trash"></i>
</button>
</form>
@@ -75,3 +114,8 @@
</div>
@endif
@endsection
@push('plugin-scripts')
@foreach (config('assets.datatable.js') as $datatable)
<script src="{{ asset($datatable) }}"></script>
@endforeach
@endpush
@@ -14,6 +14,33 @@
@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 card-primary card-outline">