diff --git a/app/Http/Controllers/Admin/helpdesk/DepartmentController.php b/app/Http/Controllers/Admin/helpdesk/DepartmentController.php index c007966d9..5038136f0 100644 --- a/app/Http/Controllers/Admin/helpdesk/DepartmentController.php +++ b/app/Http/Controllers/Admin/helpdesk/DepartmentController.php @@ -157,7 +157,7 @@ class DepartmentController extends Controller ->first(); $slas = $sla->where('status', '=', 1) ->select('grace_period', 'id')->get(); - $user = $user->where('primary_dpt', $id) + $user = $user->where('role', '<>', 'user') ->where('active', '=', 1) ->get(); $emails = $email->select('email_name', 'id')->get(); diff --git a/resources/views/themes/default1/admin/helpdesk/agent/agents/create.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/agents/create.blade.php index 04d23ad16..e66f9e64e 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/agents/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/agents/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('agents') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -30,192 +34,194 @@ class="active" @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\AgentController@store' , 'method' => 'post') )!!} -
-
-

{!! Lang::get('lang.create_an_agent') !!}

+ +@if(Session::has('errors')) + +
+ + {!! Lang::get('lang.alert') !!}! + +
+ @if($errors->first('user_name')) +
  • {!! $errors->first('user_name', ':message') !!}
  • + @endif + @if($errors->first('first_name')) +
  • {!! $errors->first('first_name', ':message') !!}
  • + @endif + @if($errors->first('last_name')) +
  • {!! $errors->first('last_name', ':message') !!}
  • + @endif + @if($errors->first('email')) +
  • {!! $errors->first('email', ':message') !!}
  • + @endif + @if($errors->first('ext')) +
  • {!! $errors->first('ext', ':message') !!}
  • + @endif + @if($errors->first('phone_number')) +
  • {!! $errors->first('phone_number', ':message') !!}
  • + @endif + @if($errors->first('country_code')) +
  • {!! $errors->first('country_code', ':message') !!}
  • + @endif + @if($errors->first('mobile')) +
  • {!! $errors->first('mobile', ':message') !!}
  • + @endif + @if($errors->first('active')) +
  • {!! $errors->first('active', ':message') !!}
  • + @endif + @if($errors->first('role')) +
  • {!! $errors->first('role', ':message') !!}
  • + @endif + @if($errors->first('group')) +
  • {!! $errors->first('group', ':message') !!}
  • + @endif + @if($errors->first('primary_department')) +
  • {!! $errors->first('primary_department', ':message') !!}
  • + @endif + @if($errors->first('agent_time_zone')) +
  • {!! $errors->first('agent_time_zone', ':message') !!}
  • + @endif + @if($errors->first('team')) +
  • {!! $errors->first('team', ':message') !!}
  • + @endif +
    +@endif +@if(Session::has('fails2')) +
    + + Alert! + +
    +
  • {!! Session::get('fails2') !!}
  • -
    - @if(Session::has('errors')) - -
    - - {!! Lang::get('lang.alert') !!}! - -
    - @if($errors->first('user_name')) -
  • {!! $errors->first('user_name', ':message') !!}
  • - @endif - @if($errors->first('first_name')) -
  • {!! $errors->first('first_name', ':message') !!}
  • - @endif - @if($errors->first('last_name')) -
  • {!! $errors->first('last_name', ':message') !!}
  • - @endif - @if($errors->first('email')) -
  • {!! $errors->first('email', ':message') !!}
  • - @endif - @if($errors->first('ext')) -
  • {!! $errors->first('ext', ':message') !!}
  • - @endif - @if($errors->first('phone_number')) -
  • {!! $errors->first('phone_number', ':message') !!}
  • - @endif - @if($errors->first('country_code')) -
  • {!! $errors->first('country_code', ':message') !!}
  • - @endif - @if($errors->first('mobile')) -
  • {!! $errors->first('mobile', ':message') !!}
  • - @endif - @if($errors->first('active')) -
  • {!! $errors->first('active', ':message') !!}
  • - @endif - @if($errors->first('role')) -
  • {!! $errors->first('role', ':message') !!}
  • - @endif - @if($errors->first('group')) -
  • {!! $errors->first('group', ':message') !!}
  • - @endif - @if($errors->first('primary_department')) -
  • {!! $errors->first('primary_department', ':message') !!}
  • - @endif - @if($errors->first('agent_time_zone')) -
  • {!! $errors->first('agent_time_zone', ':message') !!}
  • - @endif - @if($errors->first('team')) -
  • {!! $errors->first('team', ':message') !!}
  • - @endif -
    - @endif - @if(Session::has('fails2')) -
    - - Alert! - -
    -
  • {!! Session::get('fails2') !!}
  • -
    - @endif +@endif +
    +
    +

    {!! Lang::get('lang.create_an_agent') !!}

    +
    +
    -
    +
    {!! Form::label('user_name',Lang::get('lang.user_name')) !!} * {!! Form::text('user_name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('first_name',Lang::get('lang.first_name')) !!} * {!! Form::text('first_name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('last_name',Lang::get('lang.last_name')) !!} * {!! Form::text('last_name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('email',Lang::get('lang.email_address')) !!} * {!! Form::email('email',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::text('ext',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('country_code',Lang::get('lang.country-code')) !!} @if($send_otp->status ==1) *@endif {!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
    -
    +
    {!! Form::label('phone_number',Lang::get('lang.phone')) !!} {!! Form::text('phone_number',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}@if($send_otp->status ==1) *@endif {!! Form::input('number', 'mobile',null,['class' => 'form-control']) !!}
    -
    -

    {!! Lang::get('lang.agent_signature') !!}

    -
    -
    - {!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!} -
    -
    -

    {{Lang::get('lang.account_status_setting')}}

    -
    -
    -
    - -
    - {!! Form::label('active',Lang::get('lang.status')) !!} -
    -
    - {!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}} -
    -
    - {!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}} -
    -
    -
    - -
    - {!! Form::label('role',Lang::get('lang.role')) !!} -
    -
    - {!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}} -
    -
    - {!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}} -
    -
    -
    -
    -
    -
    -
    +
    -
    +
    {!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} * {!!Form::select('group',[''=>Lang::get('lang.select_a_group'),Lang::get('lang.groups')=>$groups->pluck('name','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!} * {!!Form::select('primary_department', [''=>Lang::get('lang.select_a_department'), Lang::get('lang.departments')=>$departments->pluck('name','id')->toArray()],'',['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('agent_tzone',Lang::get('lang.agent_time_zone')) !!} * {!! Form::select('agent_time_zone', [''=>Lang::get('lang.select_a_time_zone'),Lang::get('lang.time_zones')=>$timezones->pluck('name','id')->toArray()],null,['class' => 'form-control select']) !!}
    - -
    - {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} * - @foreach($teams as $key => $val) -
    - {!! $key !!}
    + +
    +
    + +
    + {!! Form::label('active',Lang::get('lang.status')) !!} +
    +
    + {!! Form::radio('active','1',true) !!} {{Lang::get('lang.active')}} +
    +
    + {!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}} +
    +
    +
    +
    +
    + +
    + {!! Form::label('role',Lang::get('lang.role')) !!} +
    +
    + {!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}} +
    +
    + {!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}} +
    +
    +
    +
    + +
    + +
    + {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} * + @foreach($teams as $key => $val) +
    + {!! $key !!}
    +
    + @endforeach +
    - @endforeach
    + +
    + {!! Form::label('agent_signature',Lang::get('lang.agent_signature')) !!} + {!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!} +
    + -
    -
    +
     
    - {!!Form::close()!!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/agents/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/agents/edit.blade.php index 49ab1cbcf..e975f1dc5 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/agents/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/agents/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('agents') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -33,72 +37,73 @@ class="active" agent_tzone); ?> {!! Form::model($user, ['url' => 'agents/'.$user->id,'method' => 'PATCH'] )!!} - -
    -
    -

    {!! Lang::get('lang.edit_an_agent') !!}

    +@if(Session::has('errors')) + +
    + + Alert! + +
    + @if($errors->first('user_name')) +
  • {!! $errors->first('user_name', ':message') !!}
  • + @endif + @if($errors->first('first_name')) +
  • {!! $errors->first('first_name', ':message') !!}
  • + @endif + @if($errors->first('last_name')) +
  • {!! $errors->first('last_name', ':message') !!}
  • + @endif + @if($errors->first('email')) +
  • {!! $errors->first('email', ':message') !!}
  • + @endif + @if($errors->first('ext')) +
  • {!! $errors->first('ext', ':message') !!}
  • + @endif + @if($errors->first('phone_number')) +
  • {!! $errors->first('phone_number', ':message') !!}
  • + @endif + @if($errors->first('mobile')) +
  • {!! $errors->first('mobile', ':message') !!}
  • + @endif + @if($errors->first('active')) +
  • {!! $errors->first('active', ':message') !!}
  • + @endif + @if($errors->first('role')) +
  • {!! $errors->first('role', ':message') !!}
  • + @endif + @if($errors->first('group')) +
  • {!! $errors->first('group', ':message') !!}
  • + @endif + @if($errors->first('primary_department')) +
  • {!! $errors->first('primary_department', ':message') !!}
  • + @endif + @if($errors->first('agent_time_zone')) +
  • {!! $errors->first('agent_time_zone', ':message') !!}
  • + @endif + @if($errors->first('team')) +
  • {!! $errors->first('team', ':message') !!}
  • + @endif +
    +@endif +@if(Session::has('fails2')) +
    + + Alert! + +
    +
  • {!! Session::get('fails2') !!}
  • -
    - @if(Session::has('errors')) - -
    - - Alert! - -
    - @if($errors->first('user_name')) -
  • {!! $errors->first('user_name', ':message') !!}
  • - @endif - @if($errors->first('first_name')) -
  • {!! $errors->first('first_name', ':message') !!}
  • - @endif - @if($errors->first('last_name')) -
  • {!! $errors->first('last_name', ':message') !!}
  • - @endif - @if($errors->first('email')) -
  • {!! $errors->first('email', ':message') !!}
  • - @endif - @if($errors->first('ext')) -
  • {!! $errors->first('ext', ':message') !!}
  • - @endif - @if($errors->first('phone_number')) -
  • {!! $errors->first('phone_number', ':message') !!}
  • - @endif - @if($errors->first('mobile')) -
  • {!! $errors->first('mobile', ':message') !!}
  • - @endif - @if($errors->first('active')) -
  • {!! $errors->first('active', ':message') !!}
  • - @endif - @if($errors->first('role')) -
  • {!! $errors->first('role', ':message') !!}
  • - @endif - @if($errors->first('group')) -
  • {!! $errors->first('group', ':message') !!}
  • - @endif - @if($errors->first('primary_department')) -
  • {!! $errors->first('primary_department', ':message') !!}
  • - @endif - @if($errors->first('agent_time_zone')) -
  • {!! $errors->first('agent_time_zone', ':message') !!}
  • - @endif - @if($errors->first('team')) -
  • {!! $errors->first('team', ':message') !!}
  • - @endif -
    - @endif - @if(Session::has('fails2')) -
    - - Alert! - -
    -
  • {!! Session::get('fails2') !!}
  • -
    - @endif +@endif + +
    +
    +

    {!! Lang::get('lang.edit_an_agent') !!}

    +
    +
    +
    -
    +
    {!! Form::label('user_name',Lang::get('lang.user_name')) !!} * @@ -107,7 +112,7 @@ class="active"
    -
    +
    {!! Form::label('first_name',Lang::get('lang.first_name')) !!} * @@ -116,7 +121,7 @@ class="active"
    -
    +
    {!! Form::label('last_name',Lang::get('lang.last_name')) !!} * @@ -128,7 +133,7 @@ class="active"
    -
    +
    {!! Form::label('email',Lang::get('lang.email_address')) !!} * @@ -136,7 +141,7 @@ class="active"
    -
    +
    @@ -144,14 +149,14 @@ class="active"
    -
    +
    {!! Form::label('country_code',Lang::get('lang.country-code')) !!} {!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
    -
    +
    {!! Form::label('phone_number',Lang::get('lang.phone')) !!} @@ -160,7 +165,7 @@ class="active"
    -
    +
    {!! Form::label('mobile',Lang::get('lang.mobile_number')) !!} @@ -169,138 +174,90 @@ class="active"
    - -
    -

    {{Lang::get('lang.agent_signature')}}

    - -
    - -
    - - {!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!} - -
    - - -
    -

    {{Lang::get('lang.account_status_setting')}}

    -
    -
    -
    - -
    - - {!! Form::label('active',Lang::get('lang.status')) !!} - -
    -
    - {!! Form::radio('active','1',true) !!} {{ Lang::get('lang.active') }} -
    -
    - {!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}} -
    -
    - -
    - -
    - - {!! Form::label('role',Lang::get('lang.role')) !!} - -
    -
    - {!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}} -
    -
    - {!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}} -
    -
    -
    - -
    - - {{--
    --}} - - {{--
    --}} - {{--
    --}} - {{-- {!! Form::label('',Lang::get('lang.day_light_saving')) !!} --}} - {{--
    --}} - {{-- {!! Form::checkbox('daylight_save',1,null,['class' => 'checkbox']) !!} --}} - {{--
    --}} - {{--
    --}} - {{--
    --}} - - - {{--
    --}} - {{--
    --}} - {{-- {!! Form::label('limit_access',Lang::get('lang.limit_access')) !!} --}} - {{--
    --}} - {{-- {!! Form::checkbox('limit_access',1,null,['class' => 'checkbox']) !!} --}} - {{--
    --}} - {{--
    --}} - {{--
    --}} - - - {{--
    --}} - {{--
    --}} - {{-- {!! Form::label('directory_listing',Lang::get('lang.directory_listing')) !!} --}} - {{--
    --}} - {{-- {!! Form::checkbox('directory_listing',1,null,['class' => 'checkbox']) !!} --}} - {{--
    --}} - {{--
    --}} - {{--
    --}} - - - {{--
    --}} - {{--
    --}} - {{-- {!! Form::label('vocation_mode',Lang::get('lang.vocation_mode')) !!} --}} - {{--
    --}} - {{-- {!! Form::checkbox('vocation_mode',1,null,null,['class' => 'checkbox']) !!} --}} - {{--
    --}} - {{--
    --}} - {{--
    --}} - {{--
    --}} -
    -
    +
    {!! Form::label('assign_group', Lang::get('lang.assigned_group')) !!} * {!!Form::select('group',[''=>Lang::get('lang.select_a_group'), Lang::get('lang.groups')=>$groups->pluck('name','id')->toArray()],$user->assign_group,['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('primary_dpt', Lang::get('lang.primary_department')) !!} * {!!Form::select('primary_department', [''=>Lang::get('lang.select_a_department'), Lang::get('lang.departments')=>$departments->pluck('name','id')->toArray()],$user->primary_dpt,['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('agent_tzone', Lang::get('lang.agent_time_zone')) !!} * {!!Form::select('agent_time_zone', [''=>Lang::get('lang.select_a_time_zone'), Lang::get('lang.time_zones')=>$timezones->pluck('name','id')->toArray()],$user->agent_tzone,['class' => 'form-control select']) !!}
    - -
    - {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} * +
    +
    + +
    + + {!! Form::label('active',Lang::get('lang.status')) !!} + +
    +
    + {!! Form::radio('active','1',true) !!} {{ Lang::get('lang.active') }} +
    +
    + {!! Form::radio('active','0',null) !!} {{Lang::get('lang.inactive')}} +
    +
    + +
    +
    + +
    + +
    + + {!! Form::label('role',Lang::get('lang.role')) !!} + +
    +
    + {!! Form::radio('role','admin',true) !!} {{Lang::get('lang.admin')}} +
    +
    + {!! Form::radio('role','agent',null) !!} {{Lang::get('lang.agent')}} +
    +
    +
    +
    + +
    + +
    + {!! Form::label('agent_tzone',Lang::get('lang.assigned_team')) !!} * +
    + @foreach($teams as $key => $val) +
    + >  
    +
    + @endforeach +
    - @foreach($teams as $key => $val) -
    - >  
    + +
    + {!! Form::label('agent_signature',Lang::get('lang.agent_signature')) !!} + {!! Form::textarea('agent_sign',null,['class' => 'form-control','size' => '30x5']) !!}
    - @endforeach
    - {!!Form::close()!!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/agents/index.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/agents/index.blade.php index b2deec39a..372025f2d 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/agents/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/agents/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('agents') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -27,40 +31,49 @@ class="active" @section('content') -
    -
    -

    {!! Lang::get('lang.list_of_agents') !!}

    -  {!! Lang::get('lang.create_an_agent') !!}
    -
    + +@if(Session::has('success')) +
    + + + {{Session::get('success')}} +
    +@endif + +@if(Session::has('fails')) +
    + + {!! Lang::get('lang.fails') !!}! + + {{Session::get('fails')}} +
    +@endif + +@if(Session::has('warning')) +
    + + {!! Lang::get('lang.warning') !!}! + + {{Session::get('warning')}} +
    +@endif + +
    + +
    +

    {!! Lang::get('lang.list_of_agents') !!}

    + + +
    +
    orderBy('id', 'ASC')->paginate(10); ?> - - @if(Session::has('success')) -
    - - - {{Session::get('success')}} -
    - @endif - - @if(Session::has('fails')) -
    - - {!! Lang::get('lang.fails') !!}! - - {{Session::get('fails')}} -
    - @endif - - @if(Session::has('warning')) -
    - - {!! Lang::get('lang.warning') !!}! - - {{Session::get('warning')}} -
    - @endif @@ -102,16 +115,16 @@ class="active" {{-- --}} @endif @endforeach
    {{$use->Lastlogin_at}} {!! Form::open(['route'=>['agents.destroy', $use->id],'method'=>'DELETE']) !!} - {!! Lang::get('lang.edit') !!} + {!! Lang::get('lang.edit') !!} - {{-- {!! Form::button(' ' . Lang::get('lang.delete') ,['type' => 'submit', 'class'=> 'btn btn-warning btn-xs btn-flat','onclick'=>'return confirm("Are you sure?")']) !!} --}} + {{-- {!! Form::button(' ' . Lang::get('lang.delete') ,['type' => 'submit', 'class'=> 'btn btn-danger btn-xs','onclick'=>'return confirm("Are you sure?")']) !!} --}} {!! Form::close() !!}
    -
    +
    {!! $user->links() !!}
    diff --git a/resources/views/themes/default1/admin/helpdesk/agent/departments/create.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/departments/create.blade.php index 0c865769b..2b6f27e9b 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/departments/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/departments/create.blade.php @@ -1,18 +1,21 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('departments') -class="active" +class="nav-link active" @stop - @section('HeadInclude') @stop @@ -31,49 +34,49 @@ class="active" @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\DepartmentController@store' , 'method' => 'post') )!!} -
    -
    -

    {!! Lang::get('lang.create_a_department') !!}

    +@if(Session::has('errors')) + +
    + + Alert! + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • + @endif + @if($errors->first('account_status')) +
  • {!! $errors->first('account_status', ':message') !!}
  • + @endif + @if($errors->first('sla')) +
  • {!! $errors->first('sla', ':message') !!}
  • + @endif + @if($errors->first('manager')) +
  • {!! $errors->first('manager', ':message') !!}
  • + @endif + @if($errors->first('outgoing_email')) +
  • {!! $errors->first('outgoing_email', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {!! Lang::get('lang.create_a_department') !!}

    -
    - @if(Session::has('errors')) - -
    - - Alert! - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('account_status')) -
  • {!! $errors->first('account_status', ':message') !!}
  • - @endif - @if($errors->first('sla')) -
  • {!! $errors->first('sla', ':message') !!}
  • - @endif - @if($errors->first('manager')) -
  • {!! $errors->first('manager', ':message') !!}
  • - @endif - @if($errors->first('outgoing_email')) -
  • {!! $errors->first('outgoing_email', ':message') !!}
  • - @endif -
    - @endif +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('type',Lang::get('lang.type')) !!}
    -
    +
    {!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
    -
    +
    {!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
    @@ -81,34 +84,30 @@ class="active"
    -
    +
    {!! Form::label('sla',Lang::get('lang.SLA_plan')) !!} {!!Form::select('sla', [''=>Lang::get('lang.select_a_sla'), Lang::get('lang.sla_plans')=>$slas->pluck('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('manager',Lang::get('lang.manager')) !!} {!!Form::select('manager',[''=>Lang::get('lang.select_a_manager'),Lang::get('lang.manager')=>$user->pluck('full_name','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    -
    -

    {!! Lang::get('lang.outgoing_email_settings') !!}

    -
    -
    +
    -
    +
    {!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!} {!!Form::select('outgoing_email', ['' => Lang::get('lang.system_default'), Lang::get('lang.emails')=>$emails->pluck('email_name','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    +
    {{ Lang::get('lang.make-default-department')}}
    - diff --git a/resources/views/themes/default1/admin/helpdesk/agent/departments/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/departments/edit.blade.php index 42000a62b..559004039 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/departments/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/departments/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('departments') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -31,49 +35,50 @@ class="active" {!!Form::model($departments, ['url'=>'departments/'.$departments->id , 'method'=> 'PATCH'])!!} -
    -
    -

    {!! Lang::get('lang.edit_department') !!}

    +@if(Session::has('errors')) + +
    + + Alert! + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • + @endif + @if($errors->first('account_status')) +
  • {!! $errors->first('account_status', ':message') !!}
  • + @endif + @if($errors->first('sla')) +
  • {!! $errors->first('sla', ':message') !!}
  • + @endif + @if($errors->first('manager')) +
  • {!! $errors->first('manager', ':message') !!}
  • + @endif + @if($errors->first('outgoing_email')) +
  • {!! $errors->first('outgoing_email', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {!! Lang::get('lang.edit_department') !!}

    -
    - @if(Session::has('errors')) - -
    - - Alert! - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('account_status')) -
  • {!! $errors->first('account_status', ':message') !!}
  • - @endif - @if($errors->first('sla')) -
  • {!! $errors->first('sla', ':message') !!}
  • - @endif - @if($errors->first('manager')) -
  • {!! $errors->first('manager', ':message') !!}
  • - @endif - @if($errors->first('outgoing_email')) -
  • {!! $errors->first('outgoing_email', ':message') !!}
  • - @endif -
    - @endif +
    +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('type',Lang::get('lang.type')) !!}
    -
    +
    {!! Form::radio('type','1',true) !!} {{Lang::get('lang.public')}}
    -
    +
    {!! Form::radio('type','0',null) !!} {{Lang::get('lang.private')}}
    @@ -81,36 +86,32 @@ class="active"
    -
    +
    {!! Form::label('sla',Lang::get('lang.SLA_plan')) !!} {!!Form::select('sla', [''=>Lang::get('lang.select_a_sla'), Lang::get('lang.sla_plans')=>$slas->pluck('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    +
    {!! Form::label('manager',Lang::get('lang.manager')) !!} {!!Form::select('manager',[null=>Lang::get('lang.select_a_manager'),Lang::get('lang.manager')=>$user->pluck('full_name','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    -
    -

    {!! Lang::get('lang.outgoing_email_settings') !!}

    -
    -
    +
    -
    +
    {!! Form::label('outgoing_email',Lang::get('lang.outgoing_email')) !!} {!!Form::select('outgoing_email', ['' => Lang::get('lang.system_default'), Lang::get('lang.emails')=>$emails->pluck('email_name','id')->toArray()],null,['class' => 'form-control select']) !!}
    -
    +
    department == $departments->id) checked disabled @endif> {{ Lang::get('lang.make-default-department')}}
    - diff --git a/resources/views/themes/default1/admin/helpdesk/agent/departments/index.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/departments/index.blade.php index 56fcc1312..f42cdd550 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/departments/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/departments/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('departments') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -28,29 +32,41 @@ class="active" @section('content') -
    -
    -

    {!! Lang::get('lang.list_of_departments') !!}

     {{Lang::get('lang.create_a_department')}}
    -
    - - @if(Session::has('success')) -
    - - - {!! Session::get('success') !!} -
    - @endif - - @if(Session::has('fails')) -
    - - {!! Lang::get('lang.fails') !!}! - - {!! Session::get('fails') !!} -
    - @endif + + +@if(Session::has('success')) +
    + + + {!! Session::get('success') !!} +
    +@endif + +@if(Session::has('fails')) +
    + + {!! Lang::get('lang.fails') !!}! + + {!! Session::get('fails') !!} +
    +@endif + +
    +
    +

    {!! Lang::get('lang.list_of_departments') !!}

    + + +
    + +
    + - +
    @@ -103,15 +119,23 @@ class="active"
    {{Lang::get('lang.name')}} {{Lang::get('lang.type')}}{{ $manager }} {!! Form::open(['route'=>['departments.destroy', $department->id],'method'=>'DELETE']) !!} - {!! Lang::get('lang.edit') !!} + {!! Lang::get('lang.edit') !!} {{-- @if($default_department == $department->id) --}} {{-- @else --}} - {!! Form::button(' '.Lang::get('lang.delete'), + + @if($default_department == $department->id) + {!! Form::button(' '.Lang::get('lang.delete'), + ['class'=> 'btn btn-danger btn-xs '.$disable]) + !!} + @else + {!! Form::button(' '.Lang::get('lang.delete'), ['type' => 'submit', - 'class'=> 'btn btn-warning btn-xs btn-flat '.$disable, + 'class'=> 'btn btn-danger btn-xs', 'onclick'=>'return confirm("Are you sure?")']) !!} + @endif + {{-- @endif --}} {!! Form::close() !!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/groups/create.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/groups/create.blade.php index b2259c632..53abd703e 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/groups/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/groups/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('groups') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -30,96 +34,94 @@ class="active" @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\GroupController@store' , 'method' => 'post') )!!} -
    -
    -

    {{Lang::get('lang.create_a_group')}}

    +@if(Session::has('errors')) +
    + + {!! Lang::get('lang.alert') !!} + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • + @endif + @if($errors->first('group_status')) +
  • {!! $errors->first('group_status', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {{Lang::get('lang.create_a_group')}}

    -
    - @if(Session::has('errors')) -
    - - {!! Lang::get('lang.alert') !!} - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('group_status')) -
  • {!! $errors->first('group_status', ':message') !!}
  • - @endif -
    - @endif +
    +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('group_status',Lang::get('lang.status')) !!}
    -
    +
    {!! Form::radio('group_status','1',true) !!} {{Lang::get('lang.active')}}
    -
    +
    {!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.inactive')}}
    - -
    - {!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!} -
    - {!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!} + +
    + +
    + +

    Permissions

    -
    - -
    - {!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!} -
    - {!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!} -
    - {!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!} -
    - {!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!} -
    - {!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!} -
    - {!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!} -
    - {!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!} + +
    + +
    + {!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails'),['style' => 'line-height:1;']) !!} +
    - {!!Form::close()!!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/groups/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/groups/edit.blade.php index ebaece267..e6dbcae0c 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/groups/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/groups/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('groups') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -29,96 +33,93 @@ class="active" @section('content') {!!Form::model($groups, ['url'=>'groups/'.$groups->id , 'method'=> 'PATCH'])!!} -
    -
    -

    {{Lang::get('lang.edit_a_group')}}

    +@if(Session::has('errors')) +
    + + {!! Lang::get('lang.alert') !!}! + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • + @endif + @if($errors->first('group_status')) +
  • {!! $errors->first('group_status', ':message') !!}
  • + @endif +
    +@endif +
    +
    +

    {{Lang::get('lang.edit_a_group')}}

    -
    - @if(Session::has('errors')) -
    - - {!! Lang::get('lang.alert') !!}! - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('group_status')) -
  • {!! $errors->first('group_status', ':message') !!}
  • - @endif -
    - @endif +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('group_status',Lang::get('lang.status')) !!}
    -
    +
    {!! Form::radio('group_status','1',true) !!} {{Lang::get('lang.active')}}
    -
    +
    {!! Form::radio('group_status','0',null) !!} {{Lang::get('lang.inactive')}}
    - -
    - {!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket')) !!} -
    - {!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!} + +
    + +
    + +

    Permissions

    -
    - -
    - {!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket')) !!} -
    - {!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket')) !!} -
    - {!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket')) !!} -
    - {!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket')) !!} -
    - {!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket')) !!} -
    - {!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!} -
    -
    - -
    - {!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails')) !!} -
    - {!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!} + +
    + +
    + {!! Form::checkbox('can_create_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_create_ticket',Lang::get('lang.can_create_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_edit_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_edit_ticket',Lang::get('lang.can_edit_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_post_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_post_ticket',Lang::get('lang.can_post_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_close_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_close_ticket',Lang::get('lang.can_close_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_delete_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_delete_ticket',Lang::get('lang.can_delete_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_assign_ticket',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_assign_ticket',Lang::get('lang.can_assign_ticket'),['style' => 'line-height:1;']) !!} +
    + +
    + {!! Form::checkbox('can_ban_email',1,null,['class' => 'checkbox']) !!} +  {!! Form::label('can_ban_email',Lang::get('lang.can_ban_emails'),['style' => 'line-height:1;']) !!} +
    - {!!Form::close()!!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/groups/index.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/groups/index.blade.php index 94802437a..9daf8e43f 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/groups/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/groups/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('groups') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -27,61 +31,68 @@ class="active" @section('content') -
    -
    -
    -
    -

    {!! Lang::get('lang.list_of_groups') !!}

     {{Lang::get('lang.create_group')}}
    -
    - - @if(Session::has('success')) -
    - - - {!! Session::get('success') !!} -
    - @endif - - @if(Session::has('fails')) -
    - - Fail! - - {!! Session::get('fails') !!} -
    - @endif - - - - - - - - @foreach($groups as $group) - - - - - @endforeach -
    {{Lang::get('lang.group_name')}}{{Lang::get('lang.status')}}{{Lang::get('lang.action')}}
    {{$group -> name }} - @if($group->group_status=='1') - {{'Active'}} - @else - {{'Inactive'}} - @endif - - {!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!} - Edit - - {!! Form::button(' Delete', - ['type' => 'submit', - 'class'=> 'btn btn-warning btn-xs btn-flat', - 'onclick'=>'return confirm("Are you sure?")']) - !!} - {!! Form::close() !!} -
    -
    + + +@if(Session::has('success')) +
    + + + {!! Session::get('success') !!} +
    +@endif + +@if(Session::has('fails')) +
    + + Fail! + + {!! Session::get('fails') !!} +
    +@endif + +
    + +
    +

    {!! Lang::get('lang.list_of_groups') !!}

    +
    + +
    + + + + + + + + + @foreach($groups as $group) + + + + + @endforeach +
    {{Lang::get('lang.group_name')}}{{Lang::get('lang.status')}}{{Lang::get('lang.action')}}
    {{$group -> name }} + @if($group->group_status=='1') + {{'Active'}} + @else + {{'Inactive'}} + @endif + + {!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!} + Edit + + {!! Form::button(' Delete', + ['type' => 'submit', + 'class'=> 'btn btn-danger btn-xs', + 'onclick'=>'return confirm("Are you sure?")']) + !!} + {!! Form::close() !!} +
    +
    @stop diff --git a/resources/views/themes/default1/admin/helpdesk/agent/teams/create.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/teams/create.blade.php index 9203e9569..76eaefd51 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/teams/create.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/teams/create.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('teams') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -30,60 +34,68 @@ class="active" @section('content') {!! Form::open(array('action' => 'Admin\helpdesk\TeamController@store' , 'method' => 'post') )!!} -
    -
    -

    {!! Lang::get('lang.create_a_team') !!}

    -
    -
    - @if(Session::has('errors')) -
    - - Alert! - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('team_lead')) -
  • {!! $errors->first('team_lead', ':message') !!}
  • - @endif - @if($errors->first('status')) -
  • {!! $errors->first('status', ':message') !!}
  • - @endif -
    + +@if(Session::has('errors')) +
    + + Alert! + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • @endif + @if($errors->first('team_lead')) +
  • {!! $errors->first('team_lead', ':message') !!}
  • + @endif + @if($errors->first('status')) +
  • {!! $errors->first('status', ':message') !!}
  • + @endif +
    +@endif + +
    + +
    +

    {!! Lang::get('lang.create_a_team') !!}

    +
    + +
    +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('team_lead',Lang::get('lang.team_lead')) !!} {!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->pluck('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
    -
    - -
    - {!! Form::label('status',Lang::get('lang.status')) !!} -
    -
    - {!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}} -
    -
    - {!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}} + +
    + +
    + {!! Form::label('status',Lang::get('lang.status')) !!} +
    +
    + {!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}} +
    +
    + {!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}} +
    +
    -
    +
    {!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!} {!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
    - {!!Form::close()!!} diff --git a/resources/views/themes/default1/admin/helpdesk/agent/teams/edit.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/teams/edit.blade.php index df441d8d8..caa676037 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/teams/edit.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/teams/edit.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('teams') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -29,60 +33,68 @@ class="active" @section('content') {!!Form::model($teams, ['url'=>'teams/'.$teams->id , 'method'=> 'PATCH'])!!} -
    -
    -

    {!! Lang::get('lang.edit_a_team') !!}

    + +@if(Session::has('errors')) +
    + + Alert! + +
    + @if($errors->first('name')) +
  • {!! $errors->first('name', ':message') !!}
  • + @endif + @if($errors->first('team_lead')) +
  • {!! $errors->first('team_lead', ':message') !!}
  • + @endif + @if($errors->first('status')) +
  • {!! $errors->first('status', ':message') !!}
  • + @endif +
    +@endif + +
    + +
    +

    {!! Lang::get('lang.edit_a_team') !!}

    -
    - @if(Session::has('errors')) -
    - - Alert! - -
    - @if($errors->first('name')) -
  • {!! $errors->first('name', ':message') !!}
  • - @endif - @if($errors->first('team_lead')) -
  • {!! $errors->first('team_lead', ':message') !!}
  • - @endif - @if($errors->first('status')) -
  • {!! $errors->first('status', ':message') !!}
  • - @endif -
    - @endif + +
    +
    -
    +
    {!! Form::label('name',Lang::get('lang.name')) !!} * {!! Form::text('name',null,['class' => 'form-control']) !!}
    -
    +
    {!! Form::label('team_lead',Lang::get('lang.team_lead')) !!} {!! Form::select('team_lead',[''=>Lang::get('lang.select_a_team_lead'), Lang::get('lang.members')=>$user->pluck('full_name','id')->toArray()],null,['class' => 'form-control']) !!}
    -
    - -
    - {!! Form::label('status',Lang::get('lang.status')) !!} -
    -
    - {!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}} -
    -
    - {!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}} + +
    + +
    + {!! Form::label('status',Lang::get('lang.status')) !!} +
    +
    + {!! Form::radio('status','1',true) !!} {{Lang::get('lang.active')}} +
    +
    + {!! Form::radio('status','0',null) !!} {{Lang::get('lang.inactive')}} +
    +
    -
    +
    {!! Form::label('admin_notes',Lang::get('lang.admin_notes')) !!} {!! Form::textarea('admin_notes',null,['class' => 'form-control','size' => '30x5']) !!}
    - diff --git a/resources/views/themes/default1/admin/helpdesk/agent/teams/index.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/teams/index.blade.php index df143dc92..3b6f1a74d 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/teams/index.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/teams/index.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('teams') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -27,86 +31,93 @@ class="active" @section('content') -
    -
    -
    -
    -

    {{Lang::get('lang.list_of_teams')}}

     {{Lang::get('lang.create_team')}}
    -
    - - @if(Session::has('success')) -
    - - - {{Session::get('success')}} -
    - @endif - - @if(Session::has('fails')) -
    - - Fail! - - {{Session::get('fails')}} -
    - @endif - - - - - - - - - @foreach($teams as $team) - - - - - - - @endforeach - - -
    {{Lang::get('lang.name')}}{{Lang::get('lang.status')}}{{Lang::get('lang.team_members')}}{{Lang::get('lang.team_lead')}}{{Lang::get('lang.action')}}
    {{$team->name }} - @if($team->status=='1') - {{Lang::get('lang.active')}} - @else - {{Lang::get('lang.inactive')}} - @endif - team_lead == 0) { - $team_lead = ""; - } else { - $users = App\User::whereId($team->team_lead)->first(); - $team_lead = $users->full_name; - } - ?> - {{count($assign_team_agent->where('team_id',$team->id))}}{{ $team_lead }} - {!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!} + +@if(Session::has('success')) +
    + + + {{Session::get('success')}} +
    +@endif + +@if(Session::has('fails')) +
    + + Fail! + + {{Session::get('fails')}} +
    +@endif +
    - - @if ($team->status == 0) - {!! Lang::get('lang.show') !!} - - @endif - @if ($team->status == 1) - {!! Lang::get('lang.show') !!} - - @endif +
    + +

    {{Lang::get('lang.list_of_teams')}}

    - {!! Lang::get('lang.edit') !!} - - {!! Form::button(' '.Lang::get('lang.delete'), - ['type' => 'submit', - 'class'=> 'btn btn-warning btn-xs btn-flat', - 'onclick'=>'return confirm("Are you sure?")']) - !!} - {!! Form::close() !!} -
    -
    +
    + +
    + + + + + + + + + + @foreach($teams as $team) + + + + + + + + @endforeach +
    {{Lang::get('lang.name')}}{{Lang::get('lang.status')}}{{Lang::get('lang.team_members')}}{{Lang::get('lang.team_lead')}}{{Lang::get('lang.action')}}
    {{$team->name }} + @if($team->status=='1') + {{Lang::get('lang.active')}} + @else + {{Lang::get('lang.inactive')}} + @endif + team_lead == 0) { + $team_lead = ""; + } else { + $users = App\User::whereId($team->team_lead)->first(); + $team_lead = $users->full_name; + } + ?> + {{count($assign_team_agent->where('team_id',$team->id))}}{{ $team_lead }} + {!! Form::open(['route'=>['teams.destroy', $team->id],'method'=>'DELETE']) !!} + + + @if ($team->status == 0) + {!! Lang::get('lang.show') !!} + + @endif + @if ($team->status == 1) + {!! Lang::get('lang.show') !!} + + @endif + + {!! Lang::get('lang.edit') !!} + + {!! Form::button(' '.Lang::get('lang.delete'), + ['type' => 'submit', + 'class'=> 'btn btn-danger btn-xs', + 'onclick'=>'return confirm("Are you sure?")']) + !!} + {!! Form::close() !!} +
    +
    @stop \ No newline at end of file diff --git a/resources/views/themes/default1/admin/helpdesk/agent/teams/show.blade.php b/resources/views/themes/default1/admin/helpdesk/agent/teams/show.blade.php index 558be78c8..1303cccd2 100644 --- a/resources/views/themes/default1/admin/helpdesk/agent/teams/show.blade.php +++ b/resources/views/themes/default1/admin/helpdesk/agent/teams/show.blade.php @@ -1,15 +1,19 @@ @extends('themes.default1.admin.layout.admin') @section('Staffs') -active +class="nav-link active" @stop -@section('staffs-bar') -active +@section('staff-menu-parent') +class="nav-item menu-open" +@stop + +@section('staff-menu-open') +class="nav nav-treeview menu-open" @stop @section('teams') -class="active" +class="nav-link active" @stop @section('HeadInclude') @@ -28,25 +32,24 @@ class="active" @section('content') - @if(Session::has('success')) -
    - - Success! - - {!! Session::get('success') !!} -
    - @endif - - @if(Session::has('fails')) -
    - - Fail! - - {!! Session::get('fails') !!} -
    - @endif - +
    + + Success! + + {!! Session::get('success') !!} +
    +@endif + +@if(Session::has('fails')) +
    + + Fail! + + {!! Session::get('fails') !!} +
    +@endif + team_lead)->first()) { @@ -54,41 +57,37 @@ class="active" // $assign_team_agent=App\Model\helpdesk\Agent\Assign_team_agent::all(); // $total_members = $assign_team_agent->where('team_id',$id)->count(); } - ?> -
    -
    - @if($team_lead_name) - {!! Lang::get('lang.team_lead') !!} : {!! $team_lead !!} - @endif - {!! Lang::get('lang.status') !!} : status == 1) { $stat = Lang::get('lang.active'); } elseif($teams->status == 0) { $stat = Lang::get('lang.inactive'); } ?>{!! $stat !!} - + - - -
    - {!! Datatable::table() - ->addColumn( - Lang::get('lang.user_name'), - Lang::get('lang.name'), - Lang::get('lang.status'), - Lang::get('lang.group'), - Lang::get('lang.depertment'), - Lang::get('lang.role') - ) - ->setUrl(route('teams.getshow.list', $id)) // this is the route where data will be retrieved - ->render() - !!} -
    - - @stop \ No newline at end of file diff --git a/resources/views/themes/default1/admin/layout/admin.blade.php b/resources/views/themes/default1/admin/layout/admin.blade.php index 6fdb5ee90..b8b433df6 100644 --- a/resources/views/themes/default1/admin/layout/admin.blade.php +++ b/resources/views/themes/default1/admin/layout/admin.blade.php @@ -334,14 +334,14 @@ -