diff --git a/resources/views/themes/default1/admin/helpdesk/emails/template/create.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/template/create.blade.php index 20c02f0ed..cd065c95d 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/template/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/template/create.blade.php @@ -74,7 +74,7 @@ class="active"
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!} {!! $errors->first('template_set_to_clone', ':message') !!} - {!!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']) !!}
@@ -83,7 +83,7 @@ class="active"
{!! Form::label('language',Lang::get('lang.language')) !!} {!! $errors->first('language', ':message') !!} - {!!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']) !!}
diff --git a/resources/views/themes/default1/admin/helpdesk/emails/template/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/emails/template/edit.blade.php index 93463c450..6ed1d92a5 100644 --- a/resources/views/themes/default1/admin/helpdesk/emails/template/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/emails/template/edit.blade.php @@ -76,7 +76,7 @@ class="active"
{!! Form::label('template_set_to_clone',Lang::get('lang.template_set_to_clone')) !!} {!! $errors->first('template_set_to_clone', ':message') !!} - {!!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']) !!}
@@ -85,7 +85,7 @@ class="active"
{!! Form::label('language',Lang::get('lang.language')) !!} {!! $errors->first('language', ':message') !!} - {!!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']) !!}
diff --git a/resources/views/themes/default1/admin/helpdesk/manage/form/create.blade.php b/resources/views/themes/default1/admin/helpdesk/manage/form/create.blade.php index c9b9a92c8..f8a1a1485 100644 --- a/resources/views/themes/default1/admin/helpdesk/manage/form/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/manage/form/create.blade.php @@ -60,7 +60,7 @@ class="active"
{!! Form::label('type',Lang::get('lang.type')) !!} {!! $errors->first('type', ':message') !!} - {!!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'] ) !!}
@@ -68,7 +68,7 @@ class="active"
{!! Form::label('visibility',Lang::get('lang.visibility')) !!} {!! $errors->first('visibility', ':message') !!} - {!!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'] ) !!}
diff --git a/resources/views/themes/default1/admin/kb/category/create.blade.php b/resources/views/themes/default1/admin/kb/category/create.blade.php index e5dd46b97..d6a483e85 100644 --- a/resources/views/themes/default1/admin/kb/category/create.blade.php +++ b/resources/views/themes/default1/admin/kb/category/create.blade.php @@ -53,7 +53,7 @@ {!! Form::label('parent',Lang::get('lang.parent')) !!} {!! $errors->first('parent', ':message') !!} - {!!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']) !!} diff --git a/resources/views/themes/default1/admin/kb/category/edit.blade.php b/resources/views/themes/default1/admin/kb/category/edit.blade.php index ba4835b89..0de9226a8 100644 --- a/resources/views/themes/default1/admin/kb/category/edit.blade.php +++ b/resources/views/themes/default1/admin/kb/category/edit.blade.php @@ -59,7 +59,7 @@ {!! Form::label('parent',Lang::get('lang.parent')) !!} {!! $errors->first('parent', ':message') !!} - {!!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']) !!} diff --git a/resources/views/themes/default1/admin/kb/settings/profile.blade.php b/resources/views/themes/default1/admin/kb/settings/profile.blade.php index 6ad62786e..f5240f5c1 100644 --- a/resources/views/themes/default1/admin/kb/settings/profile.blade.php +++ b/resources/views/themes/default1/admin/kb/settings/profile.blade.php @@ -68,7 +68,7 @@
{!! 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']) !!}
diff --git a/resources/views/themes/default1/admin/kb/settings/settings.blade.php b/resources/views/themes/default1/admin/kb/settings/settings.blade.php index 774b7abc2..d17710b5e 100644 --- a/resources/views/themes/default1/admin/kb/settings/settings.blade.php +++ b/resources/views/themes/default1/admin/kb/settings/settings.blade.php @@ -83,7 +83,7 @@
{!! 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']) !!}
@@ -116,7 +116,7 @@
{!! 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']) !!}
diff --git a/resources/views/themes/default1/agent/kb/settings/profile.blade.php b/resources/views/themes/default1/agent/kb/settings/profile.blade.php index a26834c6e..bf9f8188e 100644 --- a/resources/views/themes/default1/agent/kb/settings/profile.blade.php +++ b/resources/views/themes/default1/agent/kb/settings/profile.blade.php @@ -70,7 +70,7 @@
{!! 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']) !!}
diff --git a/resources/views/themes/default1/client/helpdesk/form.blade.php b/resources/views/themes/default1/client/helpdesk/form.blade.php index b7a46e111..05764fce4 100644 --- a/resources/views/themes/default1/client/helpdesk/form.blade.php +++ b/resources/views/themes/default1/client/helpdesk/form.blade.php @@ -181,7 +181,7 @@ class = "active"
get(); ?> - {!! Form::select('priority', ['Priority'=>$Priority->lists('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!} + {!! Form::select('priority', ['Priority'=>$Priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
diff --git a/resources/views/themes/default1/client/kb/article-list/articles.blade.php b/resources/views/themes/default1/client/kb/article-list/articles.blade.php index d7daf922f..3940f01b6 100644 --- a/resources/views/themes/default1/client/kb/article-list/articles.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/articles.blade.php @@ -44,7 +44,7 @@ @foreach($categorys as $category) id)->get(); -$article_id = $num->lists('article_id'); +$article_id = $num->pluck('article_id'); $numcount = count($article_id); ?>
  • {{$numcount}}{{$category->name}}
  • diff --git a/resources/views/themes/default1/client/kb/article-list/category.blade.php b/resources/views/themes/default1/client/kb/article-list/category.blade.php index 8ad239852..9cdb75a03 100644 --- a/resources/views/themes/default1/client/kb/article-list/category.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/category.blade.php @@ -79,7 +79,7 @@ class = "active" @foreach($categorys as $category) id)->get(); - $article_id = $num->lists('article_id'); + $article_id = $num->pluck('article_id'); $numcount = count($article_id); ?>
  • {{$numcount}}{{$category->name}}
  • diff --git a/resources/views/themes/default1/client/kb/article-list/categoryList.blade.php b/resources/views/themes/default1/client/kb/article-list/categoryList.blade.php index 24407079e..c65ed77fc 100644 --- a/resources/views/themes/default1/client/kb/article-list/categoryList.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/categoryList.blade.php @@ -23,7 +23,7 @@ class = "active" id)->get(); /* from whole attribute pick the article_id */ - $article_id = $all->lists('article_id'); + $article_id = $all->pluck('article_id'); ?>

    {{$category->name}} ({{count($all)}})

    diff --git a/resources/views/themes/default1/client/kb/article-list/home.blade.php b/resources/views/themes/default1/client/kb/article-list/home.blade.php index 26dc3f288..b6c3bc219 100644 --- a/resources/views/themes/default1/client/kb/article-list/home.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/home.blade.php @@ -37,7 +37,7 @@ class = "active" /* from whole attribute pick the article_id */ $page = App\Model\kb\Relationship::where('category_id', '=', $category->id)->paginate('3'); /* from whole attribute pick the article_id */ - $article_id = $page->lists('article_id'); + $article_id = $page->pluck('article_id'); $count = count($article_id); ?>
    @@ -109,7 +109,7 @@ class = "active" @foreach($categorys as $category) id)->get(); - $article_id = $num->lists('article_id'); + $article_id = $num->pluck('article_id'); $numcount = count($article_id); ?>
  • {{$numcount}}{{$category->name}}
  • diff --git a/resources/views/themes/default1/client/kb/article-list/search.blade.php b/resources/views/themes/default1/client/kb/article-list/search.blade.php index 1d901c170..fc4f1d739 100644 --- a/resources/views/themes/default1/client/kb/article-list/search.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/search.blade.php @@ -53,7 +53,7 @@ @foreach($categorys as $category) id)->get(); -$article_id = $num->lists('article_id'); +$article_id = $num->pluck('article_id'); $numcount = count($article_id); ?>
  • {{$numcount}}{{$category->name}}
  • diff --git a/resources/views/themes/default1/client/kb/article-list/show.blade.php b/resources/views/themes/default1/client/kb/article-list/show.blade.php index cd0ff7de4..38d01fbee 100644 --- a/resources/views/themes/default1/client/kb/article-list/show.blade.php +++ b/resources/views/themes/default1/client/kb/article-list/show.blade.php @@ -6,7 +6,7 @@ $all = App\Model\kb\Relationship::where('article_id','=', $arti->id)->get(); //dd($all); /* from whole attribute pick the article_id */ -$category_id = $all->lists('category_id')->toArray(); +$category_id = $all->pluck('category_id')->toArray(); ?>
    @@ -145,7 +145,7 @@ $category_id = $all->lists('category_id')->toArray(); @foreach($categorys as $category) id)->get(); -$article_id = $num->lists('article_id'); +$article_id = $num->pluck('article_id'); $numcount = count($article_id); ?>
  • {{$numcount}}{{$category->name}}
  • diff --git a/resources/views/themes/default1/common/settings.blade.php b/resources/views/themes/default1/common/settings.blade.php index b8d60d029..574cfd989 100644 --- a/resources/views/themes/default1/common/settings.blade.php +++ b/resources/views/themes/default1/common/settings.blade.php @@ -254,7 +254,7 @@
    - {!! Form::select('welcome_mail',['Templates'=>$template->where('type',1)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('welcome_mail',['Templates'=>$template->where('type',1)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-welcome-mail-template')}}

    @@ -270,7 +270,7 @@
    - {!! Form::select('order_mail',['Templates'=>$template->where('type',7)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('order_mail',['Templates'=>$template->where('type',7)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-order-mail-template')}}

    @@ -285,7 +285,7 @@
    - {!! Form::select('forgot_password',['Templates'=>$template->where('type',2)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('forgot_password',['Templates'=>$template->where('type',2)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-forgot-password-mail-template')}}

    @@ -300,7 +300,7 @@
    - {!! Form::select('subscription_going_to_end',['Templates'=>$template->where('type',4)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('subscription_going_to_end',['Templates'=>$template->where('type',4)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-subscription-going-to-end-notification-email-template')}}

    @@ -315,7 +315,7 @@
    - {!! Form::select('subscription_over',['Templates'=>$template->where('type',5)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('subscription_over',['Templates'=>$template->where('type',5)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-mail-template-to-notify-subscription-has-over')}}

    @@ -330,7 +330,7 @@
    - {!! Form::select('cart',['Templates'=>$template->where('type',3)->lists('name','id')->toArray()],null,['class'=>'form-control']) !!} + {!! Form::select('cart',['Templates'=>$template->where('type',3)->pluck('name','id')->toArray()],null,['class'=>'form-control']) !!}

    {{Lang::get('message.choose-shoping-cart-template')}}