{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
@if ($location_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
{{ (\App\Models\Location::find($location_id)) ? \App\Models\Location::find($location_id)->name : '' }}
@endif
@can('create', \App\Models\Location::class) @if ((!isset($hide_new)) || ($hide_new!='true'))
{{ trans('button.new') }}
@endif @endcan
{!! $errors->first($fieldname, '
:message
') !!} @if (isset($help_text))
{{ $help_text }}
@endif @if (isset($hide_location_radio))
{{ Form::radio('update_default_location', '1', old('update_default_location'), ['checked'=> 'checked', 'aria-label'=>'update_default_location']) }} {{ trans('admin/hardware/form.asset_location') }}
{{ Form::radio('update_default_location', '0', old('update_default_location'), ['aria-label'=>'update_default_location']) }} {{ trans('admin/hardware/form.asset_location_update_default_current') }}
@endif