Selectbox add new text change
This commit is contained in:
		@@ -18,7 +18,7 @@
 | 
			
		||||
    :multiple="true"
 | 
			
		||||
    :add-new="{{ json_encode([
 | 
			
		||||
        'status' => true,
 | 
			
		||||
        'text' => trans('general.form.add_new', ['field' => $text]),
 | 
			
		||||
        'text' => trans('general.add_new'),
 | 
			
		||||
        'path' => isset($attributes['path']) ? $attributes['path']: false,
 | 
			
		||||
        'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
 | 
			
		||||
        'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@
 | 
			
		||||
        :value="'{{ old($name, $selected) }}'"
 | 
			
		||||
        :add-new="{{ json_encode([
 | 
			
		||||
            'status' => true,
 | 
			
		||||
            'text' => trans('general.form.add_new', ['field' => $text]),
 | 
			
		||||
            'text' => trans('general.add_new'),
 | 
			
		||||
            'path' => isset($attributes['path']) ? $attributes['path']: false,
 | 
			
		||||
            'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
 | 
			
		||||
            'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,7 @@
 | 
			
		||||
    :value="'{{ old($name, $selected) }}'"
 | 
			
		||||
    :add-new="{{ json_encode([
 | 
			
		||||
        'status' => true,
 | 
			
		||||
        'text' => trans('general.form.add_new', ['field' => $text]),
 | 
			
		||||
        'text' => trans('general.add_new'),
 | 
			
		||||
        'path' => isset($attributes['path']) ? $attributes['path']: false,
 | 
			
		||||
        'type' => isset($attributes['type']) ? $attributes['type'] : 'modal',
 | 
			
		||||
        'field' => isset($attributes['field']) ? $attributes['field'] : 'name',
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
                :value="'{{ old('item_id', '') }}'"
 | 
			
		||||
                :add-new="{{ json_encode([
 | 
			
		||||
                    'status' => true,
 | 
			
		||||
                    'text' => trans('general.form.add_new', ['field' => '']),
 | 
			
		||||
                    'text' => trans('general.add_new'),
 | 
			
		||||
                    'path' => route('modals.items.store'),
 | 
			
		||||
                    'type' => 'inline',
 | 
			
		||||
                    'field' => 'name',
 | 
			
		||||
 
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
                :value="'{{ old('item_id', '') }}'"
 | 
			
		||||
                :add-new="{{ json_encode([
 | 
			
		||||
                    'status' => true,
 | 
			
		||||
                    'text' => trans('general.form.add_new', ['field' => '']),
 | 
			
		||||
                    'text' => trans('general.add_new'),
 | 
			
		||||
                    'path' => route('modals.items.store'),
 | 
			
		||||
                    'type' => 'inline',
 | 
			
		||||
                    'field' => 'name',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user