fixes selection order

This commit is contained in:
Godfrey M 2024-09-17 16:56:02 -07:00
parent 04708ae2b2
commit c9854d43a5

View file

@ -204,12 +204,14 @@
@php
$select2DValues = [
'QRCODE' => 'QRCODE',
'DATAMATRIX' => 'DATAMATRIX',
'none' => trans('admin/settings/general.none'),
];
if ($setting->label2_enable == 1) {
$select2DValues['PDF417'] = 'PDF417';
}
$select2DValues = array_merge($select2DValues, [
'DATAMATRIX' => 'DATAMATRIX',
'none' => trans('admin/settings/general.none'),
]);
@endphp
{{ Form::select('label2_2d_type', $select2DValues, old('label2_2d_type', $setting->label2_2d_type), [ 'class'=>'select2 col-md-4', 'aria-label'=>'label2_2d_type' ]) }}
{!! $errors->first('label2_2d_type', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}