소스 검색

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 )