@php $translation = $inventory_translation->translation ?? null; @endphp {{ Form::hidden('lang', $selected_language) }}

{{ $inventory->hasTranslation($selected_language) ? trans('app.update_model_translation', ['model' => trans('app.model.inventory')]) : trans('app.add_model_translation', ['model' => trans('app.model.inventory')]) }} | {{ trans('app.title') . ':' }} {{ $inventory->title }}

{{-- box header --}}
{{ Form::text('title', $translation['title'] ?? null, ['id' => 'title', 'class' => 'form-control', 'placeholder' => trans('app.placeholder.title')]) }}
{{ Form::textarea('description', $translation['description'] ?? null, ['id' => 'description', 'class' => 'form-control summernote', 'rows' => 8, 'placeholder' => trans('app.placeholder.description')]) }}
{{ $errors->first('description', ':message') }}
@if (config('system_settings.show_item_conditions'))
{!! Form::label('condition_note', trans('app.form.condition_note'), ['class' => 'with-help']) !!} {!! Form::text('condition_note', $translation['condition_note'] ?? null, ['class' => 'form-control input-sm', 'placeholder' => trans('app.placeholder.condition_note')]) !!}
@endif
@if (isset($translation['key_features'])) @foreach ($translation['key_features'] as $key_feature)
{!! Form::text('key_features[]', $key_feature, ['class' => 'form-control input-sm', 'placeholder' => trans('app.placeholder.key_feature')]) !!}
@endforeach @else
{!! Form::text('key_features[]', null, ['id' => 'field_1', 'class' => 'form-control input-sm', 'placeholder' => trans('app.placeholder.key_feature')]) !!}
@endif
@section('page-script') @include('plugins.dynamic-inputs') @endsection