2017-10-26 22:09:08 -07:00
|
|
|
<!-- Asset Model -->
|
|
|
|
<div id="{{ $fieldname }}" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}">
|
|
|
|
|
|
|
|
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
|
|
|
|
2017-12-01 16:49:51 -08:00
|
|
|
<div class="col-md-7{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}">
|
2017-10-26 22:09:08 -07:00
|
|
|
<select class="js-data-ajax" data-endpoint="manufacturers" name="{{ $fieldname }}" style="width: 100%" id="category_select_id">
|
2017-12-01 16:49:51 -08:00
|
|
|
@if ($manufacturer_id = Input::old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
2017-10-26 22:09:08 -07:00
|
|
|
<option value="{{ $manufacturer_id }}" selected="selected">
|
2017-11-08 17:07:57 -08:00
|
|
|
{{ (\App\Models\Manufacturer::find($manufacturer_id)) ? \App\Models\Manufacturer::find($manufacturer_id)->name : '' }}
|
2017-10-26 22:09:08 -07:00
|
|
|
</option>
|
|
|
|
@else
|
|
|
|
<option value="">{{ trans('general.select_manufacturer') }}</option>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fa fa-times"></i> :message</span></div>') !!}
|
|
|
|
</div>
|