Bug-fix-patch-15

# Showing agents name in team create/edit page in alphbetical order
#  While edit team, showing only those agents who belongs to the team
This commit is contained in:
Manish Verma
2016-12-28 18:50:09 +05:30
parent 3ba7b8d30d
commit 3b0db46f2a
3 changed files with 8 additions and 5 deletions

View File

@@ -61,7 +61,6 @@ class="active"
<!-- team lead -->
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
</div>
</div>

View File

@@ -60,7 +60,6 @@ class="active"
<!-- team lead -->
<div class="col-xs-6 form-group {{ $errors->has('team_lead') ? 'has-error' : '' }}">
{!! Form::label('team_lead',Lang::get('lang.team_lead')) !!}
<?php $user = App\User::where('role', 'admin')->orWhere('role', 'agent')->get(); ?>
{!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->lists('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
</div>
</div>