2019-02-19 11:19:00 -08:00
|
|
|
<!-- License -->
|
|
|
|
<div id="assigned_license" 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 select2" data-endpoint="licenses" data-placeholder="{{ trans('general.select_license') }}" name="{{ $fieldname }}" style="width: 100%" id="{{ (isset($select_id)) ? $select_id : 'assigned_license_select' }}"{{ (isset($multiple)) ? ' multiple' : '' }}{{ ((isset($required) && ($required =='true'))) ? ' required' : '' }}>
|
2019-02-19 11:19:00 -08:00
|
|
|
|
2024-06-27 07:05:47 -07:00
|
|
|
@if ((!isset($unselect)) && ($license_id = old($fieldname, (isset($license) ? $license->id : (isset($item) ? $item->{$fieldname} : '')))))
|
2019-02-19 11:19:00 -08:00
|
|
|
<option value="{{ $license_id }}" selected="selected">
|
|
|
|
{{ (\App\Models\License::find($license_id)) ? \App\Models\License::find($license_id)->present()->fullName : '' }}
|
|
|
|
</option>
|
|
|
|
@else
|
|
|
|
@if(!isset($multiple))
|
|
|
|
<option value="">{{ trans('general.select_license') }}</option>
|
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
</select>
|
|
|
|
</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>') !!}
|
2019-02-19 11:19:00 -08:00
|
|
|
|
|
|
|
</div>
|