File: /var/www/vhost/disk-apps/alq-cali.bikenow.co/resources/views/product_attributes/form.blade.php
@csrf
<div class="card-body">
<div class="form-row">
<div class="form-group col-md-12">
<label for="attribute_id">@lang('messages.attributes.title_8')</label>
<select class="form-control" id="attribute_id" name="attribute_id"
value="{{ $product_attribute->attribute_id ?? old('attribute_id') }}">
<option value="0" disabled {{isset($product_attribute) ? '' : 'selected'}}>
@lang('messages.select')
</option>
@foreach ($attributes as $attribute)
<option value="{{ $attribute->id }}"
{{ isset($product_attribute) && $product_attribute->attribute_id == $attribute->id ? 'selected' : '' }}>
{{ $attribute->name }} - {{ $attribute->display_name }}
</option>
@endforeach
</select>
</div>
<div class="form-group col-md-12">
<label for="value" class="ul-form__label">@lang('messages.productAttributes.title_5'):</label>
<input type="text" class="form-control" id="value" name="value" placeholder=""
value="{{ $product_attribute->value ?? old('value') }}" required>
</div>
<div class="form-group col-md-12">
<label for="price_additional" class="ul-form__label">@lang('messages.productAttributes.title_6'):</label>
<input type="text" class="form-control" id="price_additional" name="price_additional" placeholder=""
value="{{ $product_attribute->price_additional ?? old('price_additional') }}" required>
</div>
<div class="form-group col-md-12">
<label for="sku" class="ul-form__label">@lang('messages.productAttributes.title_17'):</label>
<input type="text" class="form-control" id="sku" name="sku" placeholder=""
value="{{ $product_attribute->sku ?? old('sku') }}">
</div>
<div class="form-group col-md-12">
<label for="available_units" class="ul-form__label">@lang('messages.productAttributes.title_18'):</label>
<input type="text" class="form-control" id="available_units" name="available_units" placeholder=""
value="{{ $product_attribute->available_units ?? old('available_units') }}" disabled>
</div>
<div class="form-group col-md-12">
<label for="pmi" class="ul-form__label">@lang('messages.productAttributes.title_7'):</label>
<input type="text" class="form-control" id="pmi" name="pmi" placeholder=""
value="{{ $product_attribute->pmi ?? old('pmi') }}">
</div>
<div class="form-group col-md-12">
<label for="packaging" class="ul-form__label">@lang('messages.productAttributes.title_8'):</label>
<input type="text" class="form-control" id="packaging" name="packaging" placeholder=""
value="{{ $product_attribute->packaging ?? old('packaging') }}">
</div>
<div class="form-group col-md-12">
<label for="weight" class="ul-form__label">@lang('messages.productAttributes.title_9'):</label>
<input type="text" class="form-control" id="weight" name="weight" placeholder=""
value="{{ $product_attribute->weight ?? old('weight') }}">
</div>
<div class="form-group col-md-12">
<label for="pum" class="ul-form__label">@lang('messages.productAttributes.title_19'):</label>
<input type="text" class="form-control" id="pum" name="pum" placeholder=""
value="{{ $product_attribute->pum ?? old('pum') }}" disabled>
</div>
<div class="form-group col-md-12">
<label for="ean" class="ul-form__label">@lang('messages.productAttributes.title_10'):</label>
<input type="text" class="form-control" id="ean" name="ean" placeholder=""
value="{{ $product_attribute->ean ?? old('ean') }}">
</div>
<div class="form-group col-md-12">
<label for="width" class="ul-form__label">@lang('messages.productAttributes.title_11'):</label>
<input type="text" class="form-control" id="width" name="width" placeholder=""
value="{{ $product_attribute->width ?? old('width') }}">
</div>
<div class="form-group col-md-12">
<label for="length" class="ul-form__label">@lang('messages.productAttributes.title_12'):</label>
<input type="text" class="form-control" id="length" name="length" placeholder=""
value="{{ $product_attribute->length ?? old('length') }}">
</div>
<div class="form-group col-md-12">
<label for="high" class="ul-form__label">@lang('messages.productAttributes.title_13'):</label>
<input type="text" class="form-control" id="high" name="high" placeholder=""
value="{{ $product_attribute->high ?? old('high') }}">
</div>
<div class="form-group col-md-12">
<label for="observation" class="ul-form__label">@lang('messages.productAttributes.title_14'):</label>
<input type="text" class="form-control" id="observation" name="observation" placeholder=""
value="{{ $product_attribute->observation ?? old('observation') }}">
</div>
<div class="form-group col-md-12">
<label for="main_position" class="ul-form__label">@lang('messages.productAttributes.title_15'):</label>
<input type="text" class="form-control" id="main_position" name="main_position" placeholder=""
value="{{ $product_attribute->main_position ?? old('main_position') }}">
</div>
<div class="form-group col-md-12">
<label for="stowage_pattern" class="ul-form__label">@lang('messages.productAttributes.title_16'):</label>
<input type="text" class="form-control" id="stowage_pattern" name="stowage_pattern" placeholder=""
value="{{ $product_attribute->stowage_pattern ?? old('stowage_pattern') }}">
</div>
</div>
</div>