General
{!! Form::label('type', 'Type..') !!}
{!! Form::select('type', Lang::get('doctypes'), null, ['id' => 'type', 'placeholder' => '-- select type --']) !!}
{!! Form::label('server_state', 'Status..') !!}
{!! Form::select('server_state', Config::get('enums.server_states'), null, ['id' => 'server_state']) !!}
{!! Form::label('thesis_year_accepted', 'Jahr der Erstveröffentlichung') !!}
{!! Form::select('thesis_year_accepted', $years, null, ['id' => 'thesis_year_accepted', 'placeholder' => '-- None --']) !!}
thesis_year_accepted is optional
{!! Form::label('project_id', 'Project..') !!}
{!! Form::select('project_id', $projects, null, ['id' => 'project_id', 'placeholder' => '--no project--']) !!}
project is optional
{{--
{!! Form::label('shelf_id', 'Shelf..') !!} {!! Form::select('shelf_id', $shelves, null, ['id' => 'shelf_id']) !!}
--}}
{!! Form::label('embargo_date', 'Embargo Date') !!} {!! Form::date('embargo_date', null, ['placeholder' => date('y-m-d'), 'class' => 'pure-u-23-24']) !!} embargo_date is optional
Title
@foreach($document->titles as $key => $title)
{{ Form::label('title', 'Title ' .($key+1).':') }} {{ Form::text('titles['.$title->id.'][value]', $title->value, ['class' => 'pure-u-23-24']) }}
{{ Form::label('language', 'Language..') }}
{{ Form::select('titles['.$title->id.'][language]', $languages, $title->language, ['placeholder' => '--no language--']) }}
@endforeach
Abstract
@foreach($document->abstracts as $key => $abstract)
{{ Form::label('abstract', 'Abstract ' .($key+1).':') }} {{ Form::textarea('abstracts['.$abstract->id.'][value]', $abstract->value, ['class' => 'pure-u-23-24', 'size' => '70x6']) }}
{{ Form::label('language', 'Language..') }}
{{ Form::select('abstracts['.$abstract->id.'][language]', $languages, $abstract->language, ['placeholder' => '--no language--']) }}
@endforeach
Licenses {{--
{!! Form::label('licenses[]', 'Licenses..') !!} {!! Form::select('licenses[]', $options, array_pluck($document->licenses, 'id'), ['multiple' ]) !!}
--}}
@foreach ($options as $license) @endforeach