2022-11-01 11:24:36 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2024-06-07 03:42:05 +00:00
|
|
|
@if($fileareas->count())
|
|
|
|
<table class="table monotable" id="fileareas">
|
|
|
|
<thead>
|
2022-11-01 11:24:36 +00:00
|
|
|
<tr>
|
2024-06-07 03:42:05 +00:00
|
|
|
<th>Subscribed</th>
|
|
|
|
<th>Filearea</th>
|
|
|
|
<th>Description</th>
|
2022-11-01 11:24:36 +00:00
|
|
|
</tr>
|
2024-06-07 03:42:05 +00:00
|
|
|
</thead>
|
|
|
|
|
|
|
|
<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>{{ $oo->name }}</td>
|
|
|
|
<td>{{ $oo->description }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
@else
|
|
|
|
<p>No fileareas available for this sytem. Check node security and/or filearea security.</p>
|
|
|
|
@endif
|
2022-11-01 11:24:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-2">
|
2023-10-05 11:15:53 +00:00
|
|
|
<a href="{{ url('system') }}" class="btn btn-danger">Cancel</a>
|
2022-11-01 11:24:36 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<span class="col-6 mt-auto mx-auto text-center align-bottom">
|
|
|
|
@if($errors->count())
|
|
|
|
<span class="btn btn-sm btn-danger" role="alert">
|
|
|
|
There were errors with the submission.
|
|
|
|
@dump($errors)
|
|
|
|
</span>
|
|
|
|
@endif
|
|
|
|
</span>
|
|
|
|
|
2024-05-19 13:30:14 +00:00
|
|
|
@can('update_nn',$o)
|
2022-11-01 11:24:36 +00:00
|
|
|
<div class="col-2">
|
|
|
|
<button type="submit" name="submit" class="btn btn-success float-end">Add</button>
|
|
|
|
</div>
|
|
|
|
@endcan
|
|
|
|
</div>
|