update
This commit is contained in:
@@ -23,7 +23,7 @@ class SupportController extends Controller
|
|||||||
|
|
||||||
$tickets = $this->ticketRepository->filter($request->merge(['page' => $request->get('1') ?? 1])->all());
|
$tickets = $this->ticketRepository->filter($request->merge(['page' => $request->get('1') ?? 1])->all());
|
||||||
$title = "All Support Ticket";
|
$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)
|
public function edit(int $ticket_num = 0)
|
||||||
@@ -40,7 +40,7 @@ class SupportController extends Controller
|
|||||||
|
|
||||||
$title = "Ticket #" . $ticket_num;
|
$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)
|
public function reply(int $id = 0, TicketReplyRequest $request)
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ $cyan: #0dcaf0 !default;
|
|||||||
$primary: #F16723 !default;
|
$primary: #F16723 !default;
|
||||||
$secondary: $gray-600 !default;
|
$secondary: $gray-600 !default;
|
||||||
$success: #10B981 !default;
|
$success: #10B981 !default;
|
||||||
$info: #66d1d1 !default;
|
$info: #0F172A !default;
|
||||||
$warning: #F59E0B !default;
|
$warning: #F59E0B !default;
|
||||||
$danger: #dc3545 !default;
|
$danger: #dc3545 !default;
|
||||||
$light: $gray-200 !default;
|
$light: $gray-200 !default;
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<a href="{{ route('module.ippool.create') }}" class="btn btn-outline-secondary"><i class="fas fa-plus-circle"></i> Add New IP Pool</a>
|
<x-button-crm type="button" variant="primary" size="sm" route="module.ippool.create" icon="plus-circle">Add
|
||||||
|
IP Pool</x-button-crm>
|
||||||
<form action="{{ route('module.ippool.import') }}" class="d-lg-inline" enctype="multipart/form-data" method="post">
|
<form action="{{ route('module.ippool.import') }}" class="d-lg-inline" enctype="multipart/form-data" method="post">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="file" name="file" class="d-none file-selector" accept=".csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" onchange="form.submit()" />
|
<input type="file" name="file" class="d-none file-selector"
|
||||||
<button type="button" class="btn btn-outline-secondary btn-import__from">
|
accept=".csv,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" onchange="form.submit()" />
|
||||||
<i class="fas fa-plus-circle"></i> Import From Excel
|
<x-button-crm type="submit" variant="secondary" size="sm" icon="download">Import From Excel</x-button-crm>
|
||||||
</button>
|
|
||||||
</form>
|
</form>
|
||||||
<a href="{{ url('file/IPPool.xlsx') }}" class="btn btn-outline-secondary"><i class="fas fa-download"></i> File Import Demo</a>
|
<x-button-crm type="button" variant="info" size="sm" url="file/IPPool.xlsx" icon="download">Download
|
||||||
|
Template</x-button-crm>
|
||||||
@@ -14,6 +14,33 @@
|
|||||||
@endphp
|
@endphp
|
||||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||||
@endsection
|
@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')
|
@section('content')
|
||||||
@if(auth()->guard('admins')->user()->can("manager module dns"))
|
@if(auth()->guard('admins')->user()->can("manager module dns"))
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
|
|||||||
@@ -9,12 +9,38 @@
|
|||||||
@php
|
@php
|
||||||
$breadcrumbItems = [
|
$breadcrumbItems = [
|
||||||
['label' => 'Modules'],
|
['label' => 'Modules'],
|
||||||
['label' => 'Package vCenter'],
|
['label' => 'Hosting', 'active' => true],
|
||||||
['label' => 'Datacenter', 'active' => true],
|
|
||||||
];
|
];
|
||||||
@endphp
|
@endphp
|
||||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||||
@endsection
|
@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')
|
@section('content')
|
||||||
@if (auth()->guard('admins')->user()->can('manager module hosting'))
|
@if (auth()->guard('admins')->user()->can('manager module hosting'))
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
|
|||||||
@@ -1,5 +1,46 @@
|
|||||||
@php use App\Http\Helpers\Helper; @endphp
|
|
||||||
@extends('administrator.layout.master')
|
@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')
|
@section('content')
|
||||||
@if (auth()->guard('admins')->user()->can('manager module ippool'))
|
@if (auth()->guard('admins')->user()->can('manager module ippool'))
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
@@ -27,8 +68,7 @@
|
|||||||
@foreach ($modules as $item)
|
@foreach ($modules as $item)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
<label for=""></label><input type="checkbox" name="id[]"
|
<label for=""></label><input type="checkbox" name="id[]" value="{{ $item->id }}" id="">
|
||||||
value="{{ $item->id }}" id="">
|
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center">
|
<td class="text-center">
|
||||||
{{ $item->ip_address }}
|
{{ $item->ip_address }}
|
||||||
@@ -40,8 +80,7 @@
|
|||||||
{{ $item->network->host->datacenter->vCenter->host }}
|
{{ $item->network->host->datacenter->vCenter->host }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btn btn-warning btn-sm"
|
<a class="btn btn-warning btn-sm" href="{{ route('module.ippool.edit', ['id' => $item->id]) }}">
|
||||||
href="{{ route('module.ippool.edit', ['id' => $item->id]) }}">
|
|
||||||
<i class="fas fa-user-edit"></i>
|
<i class="fas fa-user-edit"></i>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
@@ -51,8 +90,8 @@
|
|||||||
action="{{ route('module.ippool.destroy', ['id' => $item->id]) }}">
|
action="{{ route('module.ippool.destroy', ['id' => $item->id]) }}">
|
||||||
@method('delete')
|
@method('delete')
|
||||||
@csrf
|
@csrf
|
||||||
<button type="submit" data-toggle="tooltip" data-placement="top"
|
<button type="submit" data-toggle="tooltip" data-placement="top" title=""
|
||||||
title="" class="btn btn-sm btn-danger" data-original-title="Xoá">
|
class="btn btn-sm btn-danger" data-original-title="Xoá">
|
||||||
<i class="fas fa-trash"></i>
|
<i class="fas fa-trash"></i>
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -75,3 +114,8 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@endsection
|
@endsection
|
||||||
|
@push('plugin-scripts')
|
||||||
|
@foreach (config('assets.datatable.js') as $datatable)
|
||||||
|
<script src="{{ asset($datatable) }}"></script>
|
||||||
|
@endforeach
|
||||||
|
@endpush
|
||||||
@@ -14,6 +14,33 @@
|
|||||||
@endphp
|
@endphp
|
||||||
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
<x-admin-breadcrumb :items="$breadcrumbItems" />
|
||||||
@endsection
|
@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')
|
@section('content')
|
||||||
@if(auth()->guard('admins')->user()->can("manager module vcenter"))
|
@if(auth()->guard('admins')->user()->can("manager module vcenter"))
|
||||||
<div class="card card-primary card-outline">
|
<div class="card card-primary card-outline">
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
'destructive' => 'bg-destructive',
|
'destructive' => 'bg-destructive',
|
||||||
'success' => 'bg-success',
|
'success' => 'bg-success',
|
||||||
'warning' => 'bg-warning',
|
'warning' => 'bg-warning',
|
||||||
|
'info' => 'bg-info'
|
||||||
];
|
];
|
||||||
|
|
||||||
$sizes = [
|
$sizes = [
|
||||||
@@ -47,18 +48,18 @@
|
|||||||
$classes = "{$baseClasses} {$variantClass} {$sizeClass}";
|
$classes = "{$baseClasses} {$variantClass} {$sizeClass}";
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if($tag === 'a')
|
@if($tag === 'a')
|
||||||
<a href="{{ $href }}" {{ $attributes->merge(['class' => $classes]) }}>
|
<a href="{{ $href }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||||
@if($icon)
|
@if($icon)
|
||||||
<i data-lucide="{{ $icon }}" class="mr-2" style="height: 15px; width: 15px"></i>
|
<i data-lucide="{{ $icon }}" class="mr-2" style="height: 15px; width: 15px"></i>
|
||||||
@endif
|
@endif
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<button type="{{ $buttonType }}" {{ $attributes->merge(['class' => $classes]) }}>
|
<button type="{{ $buttonType }}" {{ $attributes->merge(['class' => $classes]) }}>
|
||||||
@if($icon)
|
@if($icon)
|
||||||
<i data-lucide="{{ $icon }}" class="mr-2" style="height: 15px; width: 15px"></i>
|
<i data-lucide="{{ $icon }}" class="mr-2" style="height: 15px; width: 15px"></i>
|
||||||
@endif
|
@endif
|
||||||
{{ $slot }}
|
{{ $slot }}
|
||||||
</button>
|
</button>
|
||||||
@endif
|
@endif
|
||||||
Reference in New Issue
Block a user