diff --git a/resources/views/servers/create.blade.php b/resources/views/servers/create.blade.php index d36e297a..7c54dd95 100644 --- a/resources/views/servers/create.blade.php +++ b/resources/views/servers/create.blade.php @@ -13,7 +13,7 @@ @@ -27,38 +27,39 @@
-
+ @csrf
-
{{__('Server configuration')}}
+
{{ __('Server configuration') }} +
- @if($productCount === 0 || $nodeCount === 0 || count($nests) === 0 || count($eggs) === 0 ) + @if ($productCount === 0 || $nodeCount === 0 || count($nests) === 0 || count($eggs) === 0)
-
{{__('Error!')}}
+
{{ __('Error!') }}

- @if(Auth::user()->role == 'admin') - {{__('Make sure to link your products to nodes and eggs.')}}
- {{__('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.') }}
+ {{ __('There has to be at least 1 valid product for server creation') }} @endif

    - @if($productCount === 0 ) -
  • {{__('No products available!')}}
  • + @if ($productCount === 0) +
  • {{ __('No products available!') }}
  • @endif - @if($nodeCount === 0 ) -
  • {{__('No nodes have been linked!')}}
  • + @if ($nodeCount === 0) +
  • {{ __('No nodes have been linked!') }}
  • @endif - @if(count($nests) === 0 ) -
  • {{__('No nests available!')}}
  • + @if (count($nests) === 0) +
  • {{ __('No nests available!') }}
  • @endif - @if(count($eggs) === 0 ) -
  • {{__('No eggs have been linked!')}}
  • + @if (count($eggs) === 0) +
  • {{ __('No eggs have been linked!') }}
  • @endif
@@ -68,8 +69,8 @@
-
+
@if ($errors->any())
    @@ -81,29 +82,25 @@ @endif
    - + - + class="form-control @error('name') is-invalid @enderror"> @error('name') -
    - {{ $message }} -
    +
    + {{ $message }} +
    @enderror
    - - + @foreach ($nests as $nest) @endforeach @@ -111,21 +108,15 @@
    -
    - +
    - + @@ -136,25 +127,17 @@
    - - +