Code cleanup, no functional changes
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
@can('admin',(new \App\Models\System))(you can <a href="{{ url('ftn/system/addedit') }}">add</a> more):@endcan
|
||||
</p>
|
||||
|
||||
@if (\App\Models\System::active()->count() == 0)
|
||||
@if (\App\Models\System::active()->count() === 0)
|
||||
@can('create',(new \App\Models\System))
|
||||
<p>There are no systems setup, to <a href="{{ url('ftn/system/addedit') }}">set up your first</a>.</p>
|
||||
@else
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<div class="col-12">
|
||||
<h2>Our Systems</h2>
|
||||
|
||||
@if (\App\Models\System::count() == 0)
|
||||
@if (\App\Models\System::count() === 0)
|
||||
<p class="pad">There are no systems configured here.</p>
|
||||
@else
|
||||
<p>These BBS systems are configured here.</p>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<tbody>
|
||||
@foreach ($echoareas as $oo)
|
||||
<tr>
|
||||
<td><input type="checkbox" name="id[]" value="{{ $oo->id }}" @if($ao->echoareas->search(function($item) use ($oo) { return $item->id == $oo->id; }) !== FALSE)checked @endif></td>
|
||||
<td><input type="checkbox" name="id[]" value="{{ $oo->id }}" @if($ao->echoareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif></td>
|
||||
<td>{{ $oo->name }}</td>
|
||||
<td>{{ $oo->description }}</td>
|
||||
</tr>
|
||||
|
@@ -12,7 +12,7 @@
|
||||
<tbody>
|
||||
@foreach ($fileareas as $oo)
|
||||
<tr>
|
||||
<td><input type="checkbox" name="id[]" value="{{ $oo->id }}" @if($ao->fileareas->search(function($item) use ($oo) { return $item->id == $oo->id; }) !== FALSE)checked @endif></td>
|
||||
<td><input type="checkbox" name="id[]" value="{{ $oo->id }}" @if($ao->fileareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif></td>
|
||||
<td>{{ $oo->name }}</td>
|
||||
<td>{{ $oo->description }}</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user