diff --git a/resources/views/system/addedit.blade.php b/resources/views/system/addedit.blade.php index 1ff1f8d..f8beed0 100644 --- a/resources/views/system/addedit.blade.php +++ b/resources/views/system/addedit.blade.php @@ -258,8 +258,12 @@ use App\Models\Address;
-

This system can subscribe to the following echoareas:

- @include('system.widget.form-echoarea') + @if ($o->sessions->count()) +

This system can subscribe to the following echoareas:

+ @include('system.widget.form-echoarea') + @else +

No session details exist for this system, so Echoareas are unavailable.

+ @endif
@@ -272,8 +276,12 @@ use App\Models\Address;
-

This system can subscribe to the following fileareas:

- @include('system.widget.form-filearea') + @if ($o->sessions->count()) +

This system can subscribe to the following fileareas:

+ @include('system.widget.form-filearea') + @else +

No session details exist for this system, so Fileareas are unavailable.

+ @endif
diff --git a/resources/views/system/widget/echoarea.blade.php b/resources/views/system/widget/echoarea.blade.php index 264ba28..00b0ee9 100644 --- a/resources/views/system/widget/echoarea.blade.php +++ b/resources/views/system/widget/echoarea.blade.php @@ -1,24 +1,28 @@
- - - - - - - - - - - @foreach ($echoareas as $oo) + @if($echoareas->count()) +
SubscribedEchoareaDescription
+ - - - + + + - @endforeach - -
echoareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif>{{ $oo->name }}{{ $oo->description }}SubscribedEchoareaDescription
+ + + + @foreach ($echoareas as $oo) + + echoareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif> + {{ $oo->name }} + {{ $oo->description }} + + @endforeach + + + @else +

No echoareas available for this system. AKA address security doesnt permit any echoareas.

+ @endif
diff --git a/resources/views/system/widget/filearea.blade.php b/resources/views/system/widget/filearea.blade.php index c7c2002..a195eb4 100644 --- a/resources/views/system/widget/filearea.blade.php +++ b/resources/views/system/widget/filearea.blade.php @@ -1,24 +1,28 @@
- - - - - - - - - - - @foreach ($fileareas as $oo) + @if($fileareas->count()) +
SubscribedFileareaDescription
+ - - - + + + - @endforeach - -
fileareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif>{{ $oo->name }}{{ $oo->description }}SubscribedFileareaDescription
+ + + + @foreach ($fileareas as $oo) + + fileareas->search(function($item) use ($oo) { return $item->id === $oo->id; }) !== FALSE)checked @endif> + {{ $oo->name }} + {{ $oo->description }} + + @endforeach + + + @else +

No fileareas available for this system. AKA address security doesnt permit any fileareas.

+ @endif