clrghouz/resources/views/system/widget/echoarea.blade.php

48 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2021-08-25 12:13:49 +00:00
<div class="row">
<div class="col-12">
@if($echoareas->count())
<table class="table monotable" id="echoareas">
<thead>
2021-08-25 12:13:49 +00:00
<tr>
<th>Subscribed</th>
<th>Echoarea</th>
<th>Description</th>
2021-08-25 12:13:49 +00:00
</tr>
</thead>
<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>{{ $oo->name }}</td>
<td>{{ $oo->description }}</td>
</tr>
@endforeach
</tbody>
</table>
@else
<p>No echoareas available for this system. AKA address security doesnt permit any echoareas.</p>
@endif
2021-08-25 12:13:49 +00:00
</div>
</div>
<div class="row">
<div class="col-2">
<a href="{{ url('system') }}" class="btn btn-danger">Cancel</a>
2021-08-25 12:13:49 +00:00
</div>
<span class="col-6 mt-auto mx-auto text-center align-bottom">
@if($errors->count())
2021-08-25 12:13:49 +00:00
<span class="btn btn-sm btn-danger" role="alert">
There were errors with the submission.
@dump($errors)
</span>
2021-08-25 12:13:49 +00:00
@endif
</span>
2021-08-25 12:13:49 +00:00
@can('update_nn',$o)
2021-08-25 12:13:49 +00:00
<div class="col-2">
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
</div>
@endcan
</div>