Replaced lists with pluck
This commit is contained in:
@@ -74,7 +74,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('template_set_to_clone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!}
|
||||
{!! $errors->first('template_set_to_clone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],1,['class' => 'form-control']) !!}
|
||||
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->pluck('name','name')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('language') ? 'has-error' : '' }}">
|
||||
{!! Form::label('language',Lang::get('lang.language')) !!}
|
||||
{!! $errors->first('language', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->lists('name','name')],null,['class' => 'form-control']) !!}
|
||||
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->pluck('name','name')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -76,7 +76,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('template_set_to_clone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!}
|
||||
{!! $errors->first('template_set_to_clone', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->lists('name','name')],1,['class' => 'form-control']) !!}
|
||||
{!!Form::select('template_set_to_clone', [''=>'Select a Template','Templates'=>$templates->pluck('name','name')],1,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -85,7 +85,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('language') ? 'has-error' : '' }}">
|
||||
{!! Form::label('language',Lang::get('lang.language')) !!}
|
||||
{!! $errors->first('language', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->lists('name','name')],null,['class' => 'form-control']) !!}
|
||||
{!!Form::select('language', [''=>'Select a Language','Languages'=>$languages->pluck('name','name')],null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@@ -60,7 +60,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('type') ? 'has-error' : '' }}">
|
||||
{!! Form::label('type',Lang::get('lang.type')) !!}
|
||||
{!! $errors->first('type', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->lists('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
{!!Form::select('type', [''=>'Select a Type','types'=>$type->pluck('type','id')] ,null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head Vissibility -->
|
||||
@@ -68,7 +68,7 @@ class="active"
|
||||
<div class="form-group {{ $errors->has('visibility') ? 'has-error' : '' }}">
|
||||
{!! Form::label('visibility',Lang::get('lang.visibility')) !!}
|
||||
{!! $errors->first('visibility', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->lists('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
{!!Form::select('visibility', [''=>'Select a Visibility','visibilities' =>$visibility->pluck('visibility','id')],null,['class' => 'form-control'] ) !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- declare table head variable -->
|
||||
|
@@ -53,7 +53,7 @@
|
||||
|
||||
{!! Form::label('parent',Lang::get('lang.parent')) !!}
|
||||
{!! $errors->first('parent', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('parent',[''=>'Select a Group','Categorys'=>$category->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('parent',[''=>'Select a Group','Categorys'=>$category->pluck('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -59,7 +59,7 @@
|
||||
|
||||
{!! Form::label('parent',Lang::get('lang.parent')) !!}
|
||||
{!! $errors->first('parent', '<spam class="help-block">:message</spam>') !!}
|
||||
{!!Form::select('parent',[''=>'Select a Group','Categorys'=>$category->lists('name','name')],null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('parent',[''=>'Select a Group','Categorys'=>$category->pluck('name','name')],null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -68,7 +68,7 @@
|
||||
<div class="col-md-6 form-group">
|
||||
|
||||
{!! Form::label('timezone',Lang::get('lang.timezone')) !!}
|
||||
{!!Form::select('timezone',$time->lists('location','name') ,null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('timezone',$time->pluck('location','name') ,null,['class' => 'form-control select']) !!}
|
||||
|
||||
</div>
|
||||
|
||||
|
@@ -83,7 +83,7 @@
|
||||
</div>
|
||||
<div class="col-md-3 form-group">
|
||||
{!! Form::label('timezone',Lang::get('lang.timezone')) !!}
|
||||
{!!Form::select('timezone',$time->lists('location','location') ,null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('timezone',$time->pluck('location','location') ,null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.tab-pane -->
|
||||
@@ -116,7 +116,7 @@
|
||||
</div>
|
||||
<div class="col-md-4 form-group">
|
||||
{!! Form::label('dateformat',Lang::get('lang.dateformat')) !!}
|
||||
{!!Form::select('dateformat',$date->lists('format','format') ,null,['class' => 'form-control select']) !!}
|
||||
{!!Form::select('dateformat',$date->pluck('format','format') ,null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.tab-pane -->
|
||||
|
Reference in New Issue
Block a user