Преглед на файлове

server create, made help text for admins

AVMG20 преди 3 години
родител
ревизия
ea2074f621
променени са 1 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 4 2
      resources/views/servers/create.blade.php

+ 4 - 2
resources/views/servers/create.blade.php

@@ -39,8 +39,10 @@
                             <div class="alert alert-danger p-2 m-2">
                                 <h5><i class="icon fas fa-exclamation-circle"></i>{{__('Error!')}}</h5>
                                 <p class="pl-4">
-                                    {{__('Make sure to link your products to nodes and eggs.')}} <br>
-                                    {{__('There has to be at least 1 valid product for server creation')}}
+                                    @if(Auth::user()->role == 'admin')
+                                        {{__('Make sure to link your products to nodes and eggs.')}} <br>
+                                        {{__('There has to be at least 1 valid product for server creation')}}
+                                    @endif
                                 </p>
                                 <ul>
                                     @if($productCount === 0 )