Fixes for saving a new system
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
Systems
|
||||
@endsection
|
||||
|
||||
@php
|
||||
use App\Models\System;
|
||||
@endphp
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@@ -14,12 +18,12 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<p>This system is aware of the following systems
|
||||
@can('create',(new \App\Models\System))(you can <a href="{{ url('user/system/register') }}">register</a> more):@endcan
|
||||
@can('admin',(new \App\Models\System))(you can <a href="{{ url('system/addedit') }}">add</a> more):@endcan
|
||||
@can('create',(new System))(you can <a href="{{ url('user/system/register') }}">register</a> more):@endcan
|
||||
@can('admin',(new System))(you can <a href="{{ url('system/addedit') }}">add</a> more):@endcan
|
||||
</p>
|
||||
|
||||
@if (\App\Models\System::active()->count() === 0)
|
||||
@can('create',(new \App\Models\System))
|
||||
@if (System::active()->count() === 0)
|
||||
@can('create',(new System))
|
||||
<p>There are no systems setup, to <a href="{{ url('system/addedit') }}">set up your first</a>.</p>
|
||||
@else
|
||||
<p class="pad">There are no systems - you need to ask an admin to create one for you.</p>
|
||||
@@ -40,7 +44,7 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach (\App\Models\System::active()->with(['addresses.zone.domain'])->get() as $oo)
|
||||
@foreach (System::active()->with(['addresses.zone.domain'])->get() as $oo)
|
||||
<tr>
|
||||
<td><a href="{{ url('system/addedit',[$oo->id]) }}" @cannot('update_nn',$oo)class="disabled" @endcannot>{{ $oo->id }}</a></td>
|
||||
<td>{{ $oo->name }} @if(! $oo->active)<span class="float-end"><small>[i]</small></span>@endif</td>
|
||||
|
Reference in New Issue
Block a user