{{-- Pushed in header. --}} @push('styles') @endpush @push('scripts') @vite('resources/js/submissions.js') @endpush {{-- Server side errors summary --}} @if($errors->any()) @foreach( $errors->all() as $error ) @endforeach @endif
@include('submissions.fs-upload') @if( section_must_not_be( ['translations', 'homebrew'], $section ) )
@error('entry_title') @enderror
@elseif( section_must_be( 'translations', $section ) )
@error('entry_title') @enderror
@endif @if( section_must_be( ['romhacks', 'lua-scripts'], $section ) )
@foreach( $modifications as $modif ) @endforeach
@elseif( section_must_be( [ 'utilities', 'documents' ], $section ) )
@endif @if( section_must_be( 'utilities', $section ) )
@foreach( $systems as $system ) @endforeach
@endif @if( section_must_be( ['romhacks', 'translations', 'homebrew', 'utilities', 'documents', 'lua-scripts'], $section ) )
{{-- TODO: Add max to the date --}}
@if( section_must_be( ['utilities', 'documents'], $section ) )
@foreach( $levels as $level ) @endforeach
@else
@foreach( $statuses as $status ) @endforeach
@endif
@endif @if( section_must_be( [ 'translations', 'utilities', 'documents'] , $section ) )
@error('languages') @enderror @error('languages.*') @enderror @endif
@error('description') @enderror
@error('game_id') @enderror @error('new-game-title') @enderror @error('new-game-platform') @enderror @error('new-game-genre') @enderror @if( section_must_be( [ 'romhacks', 'translations' ], $section )) @endif @if( section_must_not_be( [ 'translations', 'utilities', 'documents' ], $section ) )
@error('languages') @enderror @error('languages.*') @enderror @endif
@error('gallery') @enderror @error('gallery.*') @enderror
@error('authors') @enderror @error('new-authors') @enderror @if( section_must_not_be( 'documents', $section ) )
@else
@endif @if($isEdit) @can('moderate',$entry)
@endcan @cannot('moderate', $entry) @endcannot @endif @csrf