2018-11-13 09:33:32 -08:00
|
|
|
<div id="kit_id" class="form-group{{ $errors->has($fieldname) ? ' has-error' : '' }}"{!! (isset($style)) ? ' style="'.e($style).'"' : '' !!}>
|
|
|
|
|
|
|
|
{{ Form::label($fieldname, $translated_name, array('class' => 'col-md-3 control-label')) }}
|
|
|
|
|
2024-09-28 07:28:06 -07:00
|
|
|
<div class="col-md-7">
|
|
|
|
<select class="js-data-ajax" data-endpoint="kits" data-placeholder="{{ trans('partials/forms/general.placeholder_kit') }}" name="{{ $fieldname }}" style="width: 100%" id="kit_id_select"{{ ((isset($required)) && ($required=='true')) ? ' required' : '' }}>
|
2024-06-27 07:05:47 -07:00
|
|
|
@if ($kit_id = old($fieldname, (isset($item)) ? $item->{$fieldname} : ''))
|
2018-11-13 09:33:32 -08:00
|
|
|
<option value="{{ $kit_id }}" selected="selected">
|
|
|
|
{{ (\App\Models\User::find($kit_id)) ? \App\Models\User::find($kit_id)->present()->fullName : '' }}
|
|
|
|
</option>
|
|
|
|
@else
|
2021-11-19 03:12:11 -08:00
|
|
|
<option value="">{{ trans('partials/forms/general.placeholder_kit') }}</option>
|
2018-11-13 09:33:32 -08:00
|
|
|
@endif
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-md-1 col-sm-1 text-left">
|
|
|
|
@can('create', \App\Models\PredefinedKit::class)
|
|
|
|
@if ((!isset($hide_new)) || ($hide_new!='true'))
|
2021-11-19 03:12:11 -08:00
|
|
|
{{-- <a href='{{ route('modal.show, 'kit') }}' data-toggle="modal" data-target="#createModal" data-select='kit_id_select' class="btn btn-sm btn-default">{{ trans('buttons.new') }}</a> --}}
|
2018-11-13 09:33:32 -08:00
|
|
|
@endif
|
|
|
|
@endcan
|
|
|
|
</div>
|
|
|
|
|
2021-09-26 01:11:08 -07:00
|
|
|
{!! $errors->first($fieldname, '<div class="col-md-8 col-md-offset-3"><span class="alert-msg"><i class="fas fa-times"></i> :message</span></div>') !!}
|
2018-11-13 09:33:32 -08:00
|
|
|
|
|
|
|
</div>
|