resources/views/entry/tabs/entrydata.blade.php
@include('includes.dialogs.typecreate', [
	'typedialog' => $typedialog
])

	<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label @if ($errors->has('entry_type_id')) is-invalid is-dirty @endif"">
        {!!Form::select('entry_type_id', $entry_type_id, $entry->entry_type_id, ['class' => 'mdl-textfield__input dialog-add-item-combobox'])!!}
		<i id="type-add" class="material-icons dialog-add-item-button">add_circle_outline</i>
		{!!Form::label('entry_type_id', Lang::get('general.entry_type'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
    	<span class="mdl-textfield__error">{{ $errors->first('entry_type_id') }}</span>
    </div>

	<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label @if ($errors->has('vendor_id')) is-invalid is-dirty @endif"">
        {!!Form::select('vendor_id', $vendor_id, $entry->vendor_id, ['class' => 'mdl-textfield__input'])!!}
		{!!Form::label('vendor_id', Lang::get('general.vendor'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
    	<span class="mdl-textfield__error">{{ $errors->first('vendor_id') }}</span>
    </div>
    
	<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label @if ($errors->has('vehicle_id')) is-invalid is-dirty @endif"">
        {!!Form::select('vehicle_id', $vehicle_id, $entry->vehicle_id, ['id' => 'vehicle_id', 'class' => 'mdl-textfield__input'])!!}
		{!!Form::label('vehicle_id', Lang::get('general.vehicle'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
    	<span class="mdl-textfield__error">{{ $errors->first('vehicle_id') }}</span>
    </div>                        

	<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('datetime_ini')) is-invalid is-dirty @endif"" data-upgraded="eP">
 		{!!Form::text('datetime_ini', $entry->datetime_ini, ['id' => 'datetime_ini', 'class' => 'mdl-textfield__input'])!!}
		{!!Form::label('datetime_ini', Lang::get('general.datetime_ini'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
		<span class="mdl-textfield__error">{{ $errors->first('datetime_ini') }}</span>
	</div>

	<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('datetime_end')) is-invalid is-dirty @endif"" data-upgraded="eP">
 		{!!Form::text('datetime_end', $entry->datetime_end, ['id' => 'datetime_end', 'class' => 'mdl-textfield__input'])!!}
		{!!Form::label('datetime_end', Lang::get('general.datetime_end'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
		<span class="mdl-textfield__error">{{ $errors->first('datetime_end') }}</span>
	</div>

	<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('entry_number')) is-invalid is-dirty @endif"" data-upgraded="eP">
 		{!!Form::number('entry_number', $entry->entry_number, ['class' => 'mdl-textfield__input'])!!}
		{!!Form::label('entry_number', Lang::get('general.entry_number'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
		<span class="mdl-textfield__error">{{ $errors->first('entry_number') }}</span>
	</div>

	<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('cost')) is-invalid is-dirty @endif"" data-upgraded="eP">
 		{!!Form::tel('cost', $entry->cost, ['id' => 'cost', 'class' => 'mdl-textfield__input mdl-textfield__maskmoney', 'maxlength' => '12'])!!}
		{!!Form::label('cost', Lang::get('general.cost'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
		<span class="mdl-textfield__error">{{ $errors->first('cost') }}</span>
	</div>

	<div class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('description')) is-invalid is-dirty @endif"" data-upgraded="eP">
 		{!!Form::text('description', $entry->description, ['class' => 'mdl-textfield__input'])!!}
		{!!Form::label('description', Lang::get('general.description'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
		<span class="mdl-textfield__error">{{ $errors->first('description') }}</span>
	</div>	

	<div class="div_entry_parts">
		<div @if (empty($parts)) style="display:none" @endif class="mdl-textfield mdl-js-textfield is-upgraded is-focused mdl-textfield--floating-label @if ($errors->has('description')) is-invalid is-dirty @endif"" data-upgraded="eP">
     		@foreach($parts as $part)
         		<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="part{{$part->id}}">
                  <input name="parts[]" type="checkbox" id="part{{$part->id}}" class="mdl-checkbox__input" value={{$part->id}} @if(in_array($part->id, $entry_parts)) checked @endif />
                  <span class="mdl-checkbox__label">{{$part->name}}</span>
                </label>
            @endforeach
			{!!Form::label('parts', Lang::get('general.Parts'), ['class' => 'mdl-color-text--primary-contrast mdl-textfield__label is-dirty'])!!}
			<span class="mdl-textfield__error">{{ $errors->first('description') }}</span>
		</div>
    </div>

	<div class="mdl-card__actions">
		<button type="submit" class="mdl-button mdl-color--primary mdl-color-text--accent-contrast mdl-js-button mdl-button--raised mdl-button--colored">
          {{ Lang::get('general.Send') }} 
        </button>
	</div>