update
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@extends('admin.main')
|
||||
@section('content')
|
||||
@if (auth()->guard('admins')->user()->can('add module ippool'))
|
||||
<div class="card card-outline card-primary">
|
||||
<form action="{{ route('module.ippool.store') }}" method="post">
|
||||
@csrf
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{-- Server Host --}}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3" for="ip_address">IP Address</label>
|
||||
<div class="col-md-9">
|
||||
<textarea type="text" id="ip_address" name="ip_address" placeholder="103.42.58.1, 103.42.58.2..." rows="4"
|
||||
value="{{ old('ip_address') }}" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
{{-- Module Network --}}
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3" for="module_network_id">Module Network</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" id="module_network_id" name="module_network_id" placeholder="1"
|
||||
value="{{ old('module_network_id') }}" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<a href="{{ route('module.ippool.index') }}" class="btn btn-outline-secondary">Back</a>
|
||||
<button type="submit" class="btn btn-outline-primary">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</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 IP Pool
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
@@ -0,0 +1,77 @@
|
||||
@php use App\Http\Helpers\Helper; @endphp
|
||||
@extends('admin.main')
|
||||
@section('content')
|
||||
@if (auth()->guard('admins')->user()->can('manager module ippool'))
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
@include('admin.block.ModuleIPPool')
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-invoice table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<label>
|
||||
<input type="checkbox" name="check" class="check-all">
|
||||
</label>
|
||||
</th>
|
||||
<th>IP Address</th>
|
||||
<th>Module Network</th>
|
||||
<th>vCenter</th>
|
||||
<th style="width:40px"></th>
|
||||
<th style="width: 40px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (count($modules) > 0)
|
||||
@foreach ($modules as $item)
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<label for=""></label><input type="checkbox" name="id[]"
|
||||
value="{{ $item->id }}" id="">
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{ $item->ip_address }}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{ $item->network->name . ' - ' . $item->network->network }}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
{{ $item->network->host->datacenter->vCenter->host }}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-warning btn-sm"
|
||||
href="{{ route('module.ippool.edit', ['id' => $item->id]) }}">
|
||||
<i class="fas fa-user-edit"></i>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
@if (auth()->guard('admins')->user()->can('delete module ippool'))
|
||||
<form method="post" class="d-inline"
|
||||
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á">
|
||||
<i class="fas fa-trash"></i>
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
{{ $modules->withQueryString()->links() }}
|
||||
</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 IP Pool
|
||||
management department</h5>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user