diff --git a/app/Http/Controllers/admin/SupportController.php b/app/Http/Controllers/admin/SupportController.php index 8e9dd28..d2da05b 100644 --- a/app/Http/Controllers/admin/SupportController.php +++ b/app/Http/Controllers/admin/SupportController.php @@ -23,7 +23,7 @@ class SupportController extends Controller $tickets = $this->ticketRepository->filter($request->merge(['page' => $request->get('1') ?? 1])->all()); $title = "All Support Ticket"; - return view('administrator.pagesupport.index', compact('title', 'tickets')); + return view('administrator.pages.support.index', compact('title', 'tickets')); } public function edit(int $ticket_num = 0) @@ -40,7 +40,7 @@ class SupportController extends Controller $title = "Ticket #" . $ticket_num; - return view("administrator.pagesupport.view", compact('title', 'ticket')); + return view("administrator.pages.support.view", compact('title', 'ticket')); } public function reply(int $id = 0, TicketReplyRequest $request) diff --git a/resources/sass/_variables.scss b/resources/sass/_variables.scss index f61661f..19c82cf 100644 --- a/resources/sass/_variables.scss +++ b/resources/sass/_variables.scss @@ -36,7 +36,7 @@ $cyan: #0dcaf0 !default; $primary: #F16723 !default; $secondary: $gray-600 !default; $success: #10B981 !default; -$info: #66d1d1 !default; +$info: #0F172A !default; $warning: #F59E0B !default; $danger: #dc3545 !default; $light: $gray-200 !default; diff --git a/resources/views/administrator/pages/block/ModuleIPPool.blade.php b/resources/views/administrator/pages/block/ModuleIPPool.blade.php index f3e80ad..6453a92 100644 --- a/resources/views/administrator/pages/block/ModuleIPPool.blade.php +++ b/resources/views/administrator/pages/block/ModuleIPPool.blade.php @@ -1,9 +1,10 @@ - Add New IP Pool +Add + IP Pool
@csrf - - + + Import From Excel
- File Import Demo +Download + Template \ No newline at end of file diff --git a/resources/views/administrator/pages/module/dns/index.blade.php b/resources/views/administrator/pages/module/dns/index.blade.php index 431fcc1..f3c4f03 100644 --- a/resources/views/administrator/pages/module/dns/index.blade.php +++ b/resources/views/administrator/pages/module/dns/index.blade.php @@ -14,6 +14,33 @@ @endphp @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 + +@endsection @section('content') @if(auth()->guard('admins')->user()->can("manager module dns"))
diff --git a/resources/views/administrator/pages/module/hosting/index.blade.php b/resources/views/administrator/pages/module/hosting/index.blade.php index 4e2fe9e..512567a 100644 --- a/resources/views/administrator/pages/module/hosting/index.blade.php +++ b/resources/views/administrator/pages/module/hosting/index.blade.php @@ -9,12 +9,38 @@ @php $breadcrumbItems = [ ['label' => 'Modules'], - ['label' => 'Package vCenter'], - ['label' => 'Datacenter', 'active' => true], + ['label' => 'Hosting', 'active' => true], ]; @endphp @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 + +@endsection @section('content') @if (auth()->guard('admins')->user()->can('manager module hosting'))
diff --git a/resources/views/administrator/pages/module/ippool/index.blade.php b/resources/views/administrator/pages/module/ippool/index.blade.php index f419375..f01fdb6 100644 --- a/resources/views/administrator/pages/module/ippool/index.blade.php +++ b/resources/views/administrator/pages/module/ippool/index.blade.php @@ -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) + + @endforeach +@endpush + +@section('breadcrumb') + @php + $breadcrumbItems = [ + ['label' => 'Modules'], + ['label' => 'IP Pools', 'active' => true], + ]; + @endphp + +@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 + +@endsection @section('content') @if (auth()->guard('admins')->user()->can('manager module ippool'))
@@ -27,8 +68,7 @@ @foreach ($modules as $item) - + {{ $item->ip_address }} @@ -40,8 +80,7 @@ {{ $item->network->host->datacenter->vCenter->host }} - + @@ -51,8 +90,8 @@ action="{{ route('module.ippool.destroy', ['id' => $item->id]) }}"> @method('delete') @csrf - @@ -75,3 +114,8 @@
@endif @endsection +@push('plugin-scripts') + @foreach (config('assets.datatable.js') as $datatable) + + @endforeach +@endpush \ No newline at end of file diff --git a/resources/views/administrator/pages/module/vcenter/index.blade.php b/resources/views/administrator/pages/module/vcenter/index.blade.php index 7aac200..39428ff 100644 --- a/resources/views/administrator/pages/module/vcenter/index.blade.php +++ b/resources/views/administrator/pages/module/vcenter/index.blade.php @@ -14,6 +14,33 @@ @endphp @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 + +@endsection @section('content') @if(auth()->guard('admins')->user()->can("manager module vcenter"))
diff --git a/resources/views/components/button-c-r-m.blade.php b/resources/views/components/button-c-r-m.blade.php index 64f7861..d26197f 100644 --- a/resources/views/components/button-c-r-m.blade.php +++ b/resources/views/components/button-c-r-m.blade.php @@ -32,6 +32,7 @@ 'destructive' => 'bg-destructive', 'success' => 'bg-success', 'warning' => 'bg-warning', + 'info' => 'bg-info' ]; $sizes = [ @@ -46,19 +47,19 @@ $classes = "{$baseClasses} {$variantClass} {$sizeClass}"; @endphp - - @if($tag === 'a') - merge(['class' => $classes]) }}> - @if($icon) - - @endif - {{ $slot }} - - @else - - @endif \ No newline at end of file + +@if($tag === 'a') + merge(['class' => $classes]) }}> + @if($icon) + + @endif + {{ $slot }} + +@else + +@endif \ No newline at end of file