update 1.0.8.0
Commits for version update
This commit is contained in:
		| @@ -43,60 +43,84 @@ class="active" | ||||
|             <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|             <br/> | ||||
|             @if($errors->first('first_name')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('last_name')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('last_name', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('user_name')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('user_name', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('email')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('country_code')) | ||||
|             <li class="error-message-padding">{!! $errors->first('country_code', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('mobile')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('ext')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('ext', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('phone_number')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('phone_number', ':message') !!}</li> | ||||
|             @endif | ||||
|             @if($errors->first('active')) | ||||
|                 <li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li> | ||||
|             <li class="error-message-padding">{!! $errors->first('active', ':message') !!}</li> | ||||
|             @endif | ||||
|         </div> | ||||
|         @endif         | ||||
|         <div class="row"> | ||||
|             <!-- First name : first name : Required --> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('first_name',Lang::get('lang.first_name')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::text('first_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <!-- Last name : last name : Required --> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('last_name',Lang::get('lang.last_name')) !!} | ||||
|                 {!! Form::text('last_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <!-- User Name : Text : Required--> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}"> | ||||
|         </div> | ||||
|         <div class="row"> | ||||
|             <!-- Email Address : Email : Required --> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('email',Lang::get('lang.email')) !!} | ||||
|                 @if ($email_mandatory->status == 1 || $email_mandatory->status == '1') | ||||
|                 <span class="text-red"> *</span> | ||||
|                 @endif | ||||
|                 {!! Form::email('email',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|              | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('user_name',Lang::get('lang.user_name')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::text('user_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <!-- Email Address : Email : Required --> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('email') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('email',Lang::get('lang.email')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::email('email',null,['class' => 'form-control']) !!} | ||||
|         </div> | ||||
|         <div class="row"> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('organization',Lang::get('lang.organization')) !!} | ||||
|                 {!! Form::select('org_id',[''=>'Select','Organization'=>$org],null,['class' => 'form-control','id'=>'org']) !!} | ||||
|                  | ||||
|             </div> | ||||
|             <div class="col-xs-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}"> | ||||
|         </div> | ||||
|         <div class="row"> | ||||
|             <div class="col-xs-1 form-group {{ $errors->has('country_code') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('country_code',Lang::get('lang.country-code')) !!} | ||||
|                 {!! $errors->first('country_code', '<spam class="help-block">:message</spam>') !!} | ||||
|                 @if ($email_mandatory->status == 0 || $settings->status == 1) | ||||
|                      <span class="text-red"> *</span> | ||||
|                 @endif | ||||
|                 <!-- {!! $errors->first('country_code', '<spam class="help-block">:message</spam>') !!} --> | ||||
|                 {!! Form::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!} | ||||
|             </div> | ||||
|             <!-- mobile Number : Text :  --> | ||||
|             <div class="col-md-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('mobile',Lang::get('lang.mobile')) !!} | ||||
|                 @if ($email_mandatory->status == 0 || $settings->status == 1) | ||||
|                      <span class="text-red"> *</span> | ||||
|                 @endif | ||||
|                 {!! Form::text('mobile',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <div class="col-xs-1 form-group {{ $errors->has('ext') ? 'has-error' : '' }}"> | ||||
| @@ -134,16 +158,43 @@ class="active" | ||||
|     </div> | ||||
| </div> | ||||
| <script> | ||||
|     $(function() { | ||||
|     $(function () { | ||||
|         $("textarea").wysihtml5(); | ||||
|          | ||||
|  | ||||
|         $('input[type="checkbox"]').iCheck({ | ||||
|             checkboxClass: 'icheckbox_flat-blue' | ||||
|         }); | ||||
|         $('input[type="radio"]').iCheck({ | ||||
|             radioClass: 'iradio_flat-blue' | ||||
|         }); | ||||
|      | ||||
|     });         | ||||
|  | ||||
|     }); | ||||
| </script> | ||||
| @stop | ||||
| @section('FooterInclude') | ||||
| <!--<script> | ||||
|     $('#org').autocomplete({ | ||||
|         minLength: 1, | ||||
|         source: function (request, response) { | ||||
|             $.getJSON("{{url('get-organization')}}", { | ||||
|                 term: request.term | ||||
|             }, function (data) { | ||||
|                 var array = data.error ? [] : $.map(data, function (m) { | ||||
|                     return { | ||||
|                         label: m.label, | ||||
|                         value: m.value | ||||
|                     }; | ||||
|                 }); | ||||
|                 response(array); | ||||
|             }); | ||||
|         }, | ||||
|         select: function (event, ui) { | ||||
|             $("#org").val(ui.item.label); // display the selected text | ||||
|             $("#field_id").val(ui.item.value); // save selected id to hidden input | ||||
|             return false; | ||||
|         } | ||||
|     }); | ||||
|  | ||||
| </script>--> | ||||
|  | ||||
| @stop | ||||
|   | ||||
| @@ -70,27 +70,36 @@ class="active" | ||||
|             @endif | ||||
|         </div> | ||||
|         @endif | ||||
|         <!-- Email Address : Email : Required --> | ||||
|         <div class="row"> | ||||
|             <!-- First name : first name : Required --> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> | ||||
|             <div class="col-xs-4 form-group {{ $errors->has('first_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('first_name',Lang::get('lang.first_name')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::text('first_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <!-- Last name : last name : Required --> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> | ||||
|             <div class="col-xs-4 form-group {{ $errors->has('last_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('last_name',Lang::get('lang.last_name')) !!} | ||||
|                 {!! Form::text('last_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <!-- User Name : Text : Required--> | ||||
|             <div class="col-xs-3 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}"> | ||||
|             <div class="col-xs-4 form-group {{ $errors->has('user_name') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('user_name',Lang::get('lang.user_name')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::text('user_name',null,['class' => 'form-control']) !!} | ||||
|             </div> | ||||
|             <div class="col-md-3 form-group {{ $errors->has('email') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('email',Lang::get('lang.email')) !!} <span class="text-red"> *</span> | ||||
|         </div> | ||||
|         <div class="row"> | ||||
|             <!-- Email Address : Email : Required --> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('email',Lang::get('lang.email')) !!}<span class="text-red"> *</span> | ||||
|                 {!! Form::email('email',null,['class' => 'form-control']) !!} | ||||
|             </div>             | ||||
|             </div> | ||||
|             <div class="col-xs-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('organization',Lang::get('lang.organization')) !!} | ||||
|                 {!! Form::select('org_id',[''=>'Select','Organization'=>$org],null,['class' => 'form-control','id'=>'org']) !!} | ||||
|                  | ||||
|             </div> | ||||
|         </div> | ||||
|         <div class="row">      | ||||
|             <div class="col-xs-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}"> | ||||
|                 {!! Form::label('country_code',Lang::get('lang.country-code')) !!} | ||||
|                 {!! $errors->first('country_code', '<spam class="help-block">:message</spam>') !!} | ||||
| @@ -155,4 +164,31 @@ class="active" | ||||
|      | ||||
|     });         | ||||
| </script> | ||||
| @stop | ||||
| @section('FooterInclude') | ||||
| <!--<script> | ||||
|     $('#org').autocomplete({ | ||||
|         minLength: 1, | ||||
|         source: function (request, response) { | ||||
|             $.getJSON("{{url('get-organization')}}", { | ||||
|                 term: request.term | ||||
|             }, function (data) { | ||||
|                 var array = data.error ? [] : $.map(data, function (m) { | ||||
|                     return { | ||||
|                         label: m.label, | ||||
|                         value: m.value | ||||
|                     }; | ||||
|                 }); | ||||
|                 response(array); | ||||
|             }); | ||||
|         }, | ||||
|         select: function (event, ui) { | ||||
|             $("#org").val(ui.item.label); // display the selected text | ||||
|             $("#field_id").val(ui.item.value); // save selected id to hidden input | ||||
|             return false; | ||||
|         } | ||||
|     }); | ||||
|  | ||||
| </script>--> | ||||
|  | ||||
| @stop | ||||
| @@ -0,0 +1,106 @@ | ||||
| @extends('themes.default1.agent.layout.agent') | ||||
|  | ||||
| @section('Users') | ||||
| class="active" | ||||
| @stop | ||||
|  | ||||
| @section('user-bar') | ||||
| active | ||||
| @stop | ||||
|  | ||||
| @section('user') | ||||
| class="active" | ||||
| @stop | ||||
|  | ||||
| <!-- header --> | ||||
| @section('PageHeader') | ||||
| <h1>Export User</h1> | ||||
| @stop | ||||
| <!-- /header --> | ||||
| <!-- content --> | ||||
| @section('content') | ||||
| <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.css" /> | ||||
| {!! Form::open(['url'=>'user-export','method'=>'post']) !!} | ||||
| <div class="box box-primary"> | ||||
|     @if (count($errors) > 0) | ||||
|     <div class="alert alert-danger"> | ||||
|         <strong>Whoops!</strong> There were some problems with your input.<br><br> | ||||
|         <ul> | ||||
|             @foreach ($errors->all() as $error) | ||||
|             <li>{{ $error }}</li> | ||||
|             @endforeach | ||||
|         </ul> | ||||
|     </div> | ||||
|     @endif | ||||
|  | ||||
|     @if(Session::has('success')) | ||||
|     <div class="alert alert-success alert-dismissable"> | ||||
|         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|         {{Session::get('success')}} | ||||
|     </div> | ||||
|     @endif | ||||
|     <!-- fail message --> | ||||
|     @if(Session::has('fails')) | ||||
|     <div class="alert alert-danger alert-dismissable"> | ||||
|         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|         {{Session::get('fails')}} | ||||
|     </div> | ||||
|     @endif | ||||
|     <div class="box-header with-border"> | ||||
|         <h3 class="box-title"> | ||||
|             Users | ||||
|         </h3> | ||||
|     </div> | ||||
|     <div class="box-body"> | ||||
|         <div class="row"> | ||||
|             <div class="col-md-6"> | ||||
|                 <div id="reportrange" class="pull-right" style="background: #fff; cursor: pointer; padding: 5px 10px; border: 1px solid #ccc; width: 100%"> | ||||
|                     <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>  | ||||
|                     <span id="date"></span> <b class="caret"></b> | ||||
|                 </div> | ||||
|             </div> | ||||
|             <div class="col-md-6"> | ||||
|                 {!! Form::hidden('date',null,['id'=>'hidden']) !!} | ||||
|                 {!! Form::submit('Export',['class'=>'btn btn-success','id'=>'submit']) !!} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
| {!! Form::close() !!} | ||||
| @stop | ||||
| @section('FooterInclude') | ||||
| <script type="text/javascript" src="//cdn.jsdelivr.net/bootstrap.daterangepicker/2/daterangepicker.js"></script> | ||||
| <script type="text/javascript"> | ||||
| $(function () { | ||||
|  | ||||
|     var start = moment().subtract(29, 'days'); | ||||
|     var end = moment(); | ||||
|  | ||||
|     function cb(start, end) { | ||||
|         $('#reportrange span').html(start.format('YYYY-MM-DD') + ' : ' + end.format('YYYY-MM-DD')); | ||||
|     } | ||||
|  | ||||
|     $('#reportrange').daterangepicker({ | ||||
|         startDate: start, | ||||
|         endDate: end, | ||||
|         ranges: { | ||||
|             'Today': [moment(), moment()], | ||||
|             'Yesterday': [moment().subtract(1, 'days'), moment().subtract(1, 'days')], | ||||
|             'Last 7 Days': [moment().subtract(6, 'days'), moment()], | ||||
|             'Last 30 Days': [moment().subtract(29, 'days'), moment()], | ||||
|             'This Month': [moment().startOf('month'), moment().endOf('month')], | ||||
|             'Last Month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] | ||||
|         } | ||||
|     }, cb); | ||||
|  | ||||
|     cb(start, end); | ||||
|  | ||||
| }); | ||||
| $("#submit").on('click', function () { | ||||
|     var date = $("#date").text(); | ||||
|     $("#hidden").val(date); | ||||
| }); | ||||
|  | ||||
|  | ||||
| </script> | ||||
| @stop | ||||
| @@ -67,6 +67,7 @@ class="active" | ||||
|         Lang::get('lang.status'), | ||||
|         Lang::get('lang.ban'), | ||||
|         Lang::get('lang.last_login'), | ||||
|          Lang::get('lang.role'), | ||||
|         Lang::get('lang.action'))  // these are the column headings to be shown | ||||
|         ->setUrl(route('user.list'))  // this is the route where data will be retrieved | ||||
|         ->render() !!} | ||||
|   | ||||
| @@ -19,7 +19,7 @@ class="active" | ||||
| @section('content') | ||||
| <div class="row"> | ||||
|     <div class="col-md-6"> | ||||
|         {!! Form::model($user,['url'=>'agent-profile', 'method' => 'PATCH','files'=>true]) !!} | ||||
|         {!! Form::model($user,['url'=>'agent-profile', 'id' => 'agent-profile', 'method' => 'PATCH','files'=>true]) !!} | ||||
|         <div class="box box-primary"> | ||||
|             <div class="box-header with-border"> | ||||
|                 <h3 class="box-title"> | ||||
| @@ -53,6 +53,7 @@ class="active" | ||||
|                     <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|                     <br/> | ||||
|                     <li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li> | ||||
|                     <li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li> | ||||
|                 </div> | ||||
|                 @endif | ||||
|                 @endif | ||||
| @@ -94,7 +95,7 @@ class="active" | ||||
|                     <!-- phone extension --> | ||||
|                     <div class="col-xs-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}"> | ||||
|                         {!! 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::text('country_code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code'), 'id' => 'code']) !!} | ||||
|                     </div> | ||||
|                     <div class="col-xs-2 form-group {{ $errors->has('ext') ? 'has-error' : '' }}"> | ||||
|                         {!! Form::label('ext',Lang::get('lang.ext')) !!} | ||||
| @@ -109,7 +110,7 @@ class="active" | ||||
|                 <!-- mobile --> | ||||
|                 <div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}"> | ||||
|                     {!! Form::label('mobile',Lang::get('lang.mobile_number')) !!} | ||||
|                     {!! Form::text('mobile',null,['class' => 'form-control']) !!} | ||||
|                     {!! Form::text('mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!} | ||||
|                 </div> | ||||
|                 <div class="form-group {{ $errors->has('agent_sign') ? 'has-error' : '' }}"> | ||||
|                     {!! Form::label('agent_sign',Lang::get('lang.agent_sign')) !!} | ||||
| @@ -158,21 +159,21 @@ class="active" | ||||
|                 <!-- old password --> | ||||
|                 <div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}"> | ||||
|                     {!! Form::label('old_password',Lang::get('lang.old_password')) !!} <span class="text-red"> *</span> | ||||
|                     {!! Form::password('old_password',['class' => 'form-control']) !!} | ||||
|                     {!! Form::password('old_password',['placeholder'=>Lang::get('lang.old_password'),'class' => 'form-control']) !!} | ||||
|                     {!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!} | ||||
|                     <span class="glyphicon glyphicon-lock form-control-feedback"></span> | ||||
|                 </div> | ||||
|                 <!-- new password --> | ||||
|                 <div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}"> | ||||
|                     {!! Form::label('new_password',Lang::get('lang.new_password')) !!} <span class="text-red"> *</span> | ||||
|                     {!! Form::password('new_password',['class' => 'form-control']) !!} | ||||
|                     {!! Form::password('new_password',['placeholder'=>Lang::get('lang.new_password'),'class' => 'form-control']) !!} | ||||
|                     {!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!} | ||||
|                     <span class="glyphicon glyphicon-lock form-control-feedback"></span> | ||||
|                 </div> | ||||
|                 <!-- confirm password --> | ||||
|                 <div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}"> | ||||
|                     {!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!} <span class="text-red"> *</span> | ||||
|                     {!! Form::password('confirm_password',['class' => 'form-control']) !!} | ||||
|                     {!! Form::password('confirm_password',['placeholder'=>Lang::get('lang.confirm_password'),'class' => 'form-control']) !!} | ||||
|                     {!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!} | ||||
|                     <span class="glyphicon glyphicon-lock form-control-feedback"></span> | ||||
|                 </div> | ||||
| @@ -184,9 +185,146 @@ class="active" | ||||
|     </div> | ||||
| </div> | ||||
| {!! Form::close() !!} | ||||
| <!-- Modal for last step of setting --> | ||||
| <div class="modal fade in" id="last-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="false" style="display: none; padding-right: 15px;background-color: rgba(0, 0, 0, 0.7);"> | ||||
|     <div class="modal-dialog" role="document"> | ||||
|         <div class="col-md-2"></div> | ||||
|         <div class="col-md-12" style="height:40%"> | ||||
|             <div class="modal-content"> | ||||
|                 <div class="modal-header"> | ||||
|                     <span style="font-size:1.2em">{{Lang::get('lang.verify-number')}}</span>  | ||||
|                     <button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> | ||||
|                 </div> | ||||
|                 <div class="modal-body"> | ||||
|                     <div id="custom-alert-body2"> | ||||
|                         <div class="row"> | ||||
|                             <div class="col-md-12"> | ||||
|                             <div id="loader2" style="display:none"> | ||||
|                                 <center><img src="{{asset('lb-faveo/media/images/gifloader.gif')}}"></center> | ||||
|                             </div> | ||||
|                             <div id="verify-success" style="display:none" class="alert alert-success alert-dismissable"> | ||||
|                                 <i class="fa  fa-check-circle"> </i> | ||||
|                                 <span id = "success_message"></span> | ||||
|                             </div> | ||||
|                             <div id="verify-fail" style="display:none" class="alert alert-danger alert-dismissable"> | ||||
|                                 <i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b> | ||||
|                                 <span id = "error_message"></span> | ||||
|                             </div> | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                     <div id="verify-number-form"> | ||||
|                     {!! Form::open(['id'=>'verify-otp','method' => 'POST'] )!!} | ||||
|                         <div class="row"> | ||||
|                             <div class="col-md-8"> | ||||
|                                 {{ Lang::get('lang.get-verify-message') }} | ||||
|                             </div> | ||||
|                             <div class="col-md-4"> | ||||
|                                 {!! Form::text('token','',['class' => 'form-control', 'required' => true, 'placeholder' => Lang::get('lang.enter-otp'), 'id' => 'otp']) !!} | ||||
|                             </div> | ||||
|                         </div> | ||||
|                     </div> | ||||
|                 </div> | ||||
|                 <div class="modal-footer"> | ||||
|                     <button type="button" id="close-last" class="btn btn-default closemodal pull-left">{{Lang::get('lang.close')}}</button> | ||||
|                     <div id="last-submit"><input  type="submit" id="merge-btn" class="btn btn-primary pull-right" value="{!! Lang::get('lang.verify') !!}"></input></div> | ||||
|                 </div> | ||||
|                 {!! Form::close() !!} | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
| </div> | ||||
| <!-- modal end --> | ||||
| <script> | ||||
|     $(function() { | ||||
|         $("textarea").wysihtml5(); | ||||
|     }); | ||||
| </script> | ||||
| @if($verify == 1 || $verify == '1') | ||||
| <script type="text/javascript"> | ||||
| $('#agent-profile').on('submit', function(e){ | ||||
|     var old_mobile = "<?php echo $user->mobile;?>"; | ||||
|     var email = "<?php echo $user->email;?>"; | ||||
|     var full_name = "<?php echo $user->first_name; ?>"; | ||||
|     var mobile = document.getElementById('mobile').value; | ||||
|     var code = document.getElementById('code').value; | ||||
|     if (code == '' || code == null) { | ||||
|             //do nothingalert | ||||
|     } else { | ||||
|         var id = "<?php echo $user->id; ?>"; | ||||
|         if (mobile !== old_mobile) { | ||||
|             e.preventDefault(); | ||||
|             $('#last-modal').css('display', 'block'); | ||||
|             $.ajax({                     | ||||
|                 url: '{{URL::route("agent-verify-number")}}',      | ||||
|                 type: 'post', // performing a POST request | ||||
|                 data : { | ||||
|                     mobile : mobile, | ||||
|                     full_name: full_name, | ||||
|                     email: email, | ||||
|                     code: code // will be accessible in $_POST['data1'] | ||||
|                 }, | ||||
|                 dataType: 'json',  | ||||
|                 beforeSend: function() { | ||||
|                     $('#loader2').css('display', 'block'); | ||||
|                     $('#verify-number-form').css('display', 'none'); | ||||
|                     $('#verify-fail').css('display', 'none'); | ||||
|                     $('verify-success').css('display', 'none'); | ||||
|                 }, | ||||
|                 success: function(response) { | ||||
|                     $('#loader2').css('display', 'none'); | ||||
|                     $('#verify-number-form').css('display', 'block'); | ||||
|                     $('#verify-otp').on('submit', function(e){ | ||||
|                         e.preventDefault(); | ||||
|                         var otp = document.getElementById('otp').value; | ||||
|                         $.ajax({ | ||||
|                             url: '{{URL::route("post-agent-verify-number")}}', | ||||
|                             type: 'POST', | ||||
|                             data: { | ||||
|                                 otp: otp, | ||||
|                                 u_id: id, | ||||
|                             }, | ||||
|                             dataType: 'html', | ||||
|                             beforeSend: function(){ | ||||
|                                 $('#loader2').css('display', 'block'); | ||||
|                                 $('#verify-number-form').css('display', 'none'); | ||||
|                                 $('#verify-fail').css('display', 'none'); | ||||
|                                 $('verify-success').css('display', 'none'); | ||||
|                             }, | ||||
|                             success: function(response){ | ||||
|                                 if( response == 1) { | ||||
|                                     $('#loader2').css('display', 'none'); | ||||
|                                     var message = "{{Lang::get('lang.number-verification-sussessfull')}}"; | ||||
|                                     $('#success_message').html(message); | ||||
|                                     $('#verify-success').css('display', 'block'); | ||||
|                                     $('#agent-profile').unbind('submit').submit(); | ||||
|                                 } else { | ||||
|                                     $('#loader2').css('display', 'none'); | ||||
|                                     $("#error_message").html(response); | ||||
|                                     $('#verify-fail').css('display', 'block'); | ||||
|                                     $('#verify-number-form').css('display', 'block'); | ||||
|                                 } | ||||
|                             } | ||||
|                         }); | ||||
|                     }); | ||||
|                 }, | ||||
|                 complete: function( jqXHR, textStatus) { | ||||
|                     if (textStatus === "parsererror" || textStatus === "timeout" || textStatus === "abort" || textStatus === "error") { | ||||
|                         var message = "{{Lang::get('lang.otp-not-sent')}}"; | ||||
|                         $('#loader2').css('display', 'none'); | ||||
|                         $("#error_message").html(message); | ||||
|                         $("#merge-btn").css('display', 'none'); | ||||
|                         $('#verify-fail').css('display', 'block'); | ||||
|                     } | ||||
|                 } | ||||
|             }); | ||||
|         } | ||||
|            | ||||
|     } | ||||
| }); | ||||
| $('.closemodal').on('click', function(){ | ||||
|     $('#last-modal').css('display', 'none'); | ||||
| }); | ||||
| </script> | ||||
| @endif | ||||
| @stop | ||||
| @@ -16,7 +16,13 @@ class="active" | ||||
| @stop | ||||
| <!-- header --> | ||||
| @section('PageHeader') | ||||
|  | ||||
| @if($users->role == 'user') | ||||
| <h1>{!! Lang::get('lang.user_profile') !!} </h1> | ||||
|  | ||||
| @elseif($users->role == 'agent') | ||||
| <h1>{!! Lang::get('lang.agent_profile') !!} </h1> | ||||
| @endif | ||||
| @stop | ||||
| <!-- /header --> | ||||
| <!-- breadcrumbs --> | ||||
| @@ -50,12 +56,12 @@ class="active" | ||||
|     <div class="col-md-3"> | ||||
|         <div class="box box-primary"> | ||||
|             <div class="box-header"> | ||||
|                 <a href="{{route('user.edit', $users->id)}}" data-toggle="tooltip" data-placement="left" class="pull-right" title="{!! Lang::get('lang.edit') !!}"><i class="fa fa-edit"></i></a> | ||||
|                 <!-- <a href="{{route('user.edit', $users->id)}}" data-toggle="tooltip" data-placement="left" class="pull-right" title="{!! Lang::get('lang.edit') !!}"><i class="fa fa-edit"></i></a> --> | ||||
|             </div> | ||||
|             <div class="box-body "> | ||||
|                 <div> | ||||
|                     <center> | ||||
|                         <img src="{{ Gravatar::src($users -> email) }}" class="img-circle" alt="User Image" style="border:3px solid #CBCBDA;padding:3px;">	 | ||||
|                         <img src="{{ $users->profile_pic }}" class="img-circle" alt="User Image" style="border:3px solid #CBCBDA;padding:3px;">   | ||||
|                         @if($users->first_name || $users->last_name) | ||||
|                         <h3 class="">{{$users->first_name}} {{$users->last_name}}</h3> | ||||
|                         @else | ||||
| @@ -65,17 +71,17 @@ class="active" | ||||
|                 </div> | ||||
|             </div> | ||||
|             @if($users->user_name) | ||||
|                 <div class="box-footer"> | ||||
|                     <b>{{Lang::get('lang.user_name')}}</b> | ||||
|                     <a class="pull-right" href="{{route('user.show', $users->id)}}"> | ||||
|                         {{$users->user_name }} | ||||
|                     </a> | ||||
|                 </div> | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.user_name')}}</b> | ||||
|                 <a class="pull-right" href="{{route('user.show', $users->id)}}"> | ||||
|                     {{str_limit($users->user_name,10) }} | ||||
|                 </a> | ||||
|             </div> | ||||
|             @endif | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.email')}}</b> | ||||
|                 <a class="pull-right" href="{{route('user.show', $users->id)}}"> | ||||
|                     {{$users->email }} | ||||
|                     {{str_limit($users->email,10) }} | ||||
|                 </a> | ||||
|             </div> | ||||
|             <div class="box-footer"> | ||||
| @@ -86,7 +92,7 @@ class="active" | ||||
|                     @if($user_org == null) | ||||
|                     <b>{!! Lang::get('lang.organization') !!}</b> | ||||
|                     <a href="" class="pull-right"  data-toggle="modal" data-target="#assign"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! Lang::get('lang.assign') !!} </a> | ||||
|                     <a href="" data-toggle="modal" data-target="#create_org" class="pull-right"> {{Lang::get('lang.create')}} <b style="color:#000"> / </b>  </a> | ||||
|                     <a href="" data-toggle="modal" data-target="#create_org" class="pull-right"> {{Lang::get('lang.create')}} | </a> | ||||
|                     @else | ||||
|                     <?php | ||||
|                     $org_id = $user_org->org_id; | ||||
| @@ -94,7 +100,6 @@ class="active" | ||||
|                     ?> | ||||
|                     <b>{!! Lang::get('lang.organization') !!}</b> | ||||
|                     <a class="pull-right" href="#" data-toggle="modal" data-target="#{{$org_id}}delete" title="{!! Lang::get('lang.remove') !!}"><i class="fa fa-times" style="color:red;"> </i></a>  | ||||
|                     <a href="{!! URL::route('organizations.show',$organization->id) !!}" class="pull-right">{!! $organization->name !!} / </a> | ||||
|                     <div class="modal fade" id="{{$org_id}}delete"> | ||||
|                         <div class="modal-dialog"> | ||||
|                             <div class="modal-content"> | ||||
| @@ -117,6 +122,15 @@ class="active" | ||||
|                 </div> | ||||
|             </div> | ||||
|  | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.role')}}</b> | ||||
|                 <a class="pull-right"> | ||||
|  | ||||
|                     <span style="color:green;">{!! $users->role !!}</span> | ||||
|  | ||||
|                 </a> | ||||
|             </div> | ||||
|  | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.status')}}</b> | ||||
|                 <a class="pull-right"> | ||||
| @@ -128,28 +142,28 @@ class="active" | ||||
|                 </a> | ||||
|             </div>             | ||||
|             @if($users->country_code) | ||||
|                 <div class="box-footer"> | ||||
|                     <b>{{Lang::get('lang.country_code')}}</b> | ||||
|                     <a class="pull-right"> {{$users->country_code}}</a> | ||||
|                 </div> | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.country_code')}}</b> | ||||
|                 <a class="pull-right"> {{$users->country_code}}</a> | ||||
|             </div> | ||||
|             @endif | ||||
|             @if($users->ext) | ||||
|                 <div class="box-footer"> | ||||
|                     <b>{{Lang::get('lang.ext')}}</b> | ||||
|                     <a class="pull-right"> {{$users->ext}}</a> | ||||
|                 </div> | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.ext')}}</b> | ||||
|                 <a class="pull-right"> {{$users->ext}}</a> | ||||
|             </div> | ||||
|             @endif | ||||
|             @if($users->mobile) | ||||
|                 <div class="box-footer"> | ||||
|                     <b>{{Lang::get('lang.mobile')}}</b> | ||||
|                     <a class="pull-right"> {{$users->mobile}}</a> | ||||
|                 </div> | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.mobile')}}</b> | ||||
|                 <a class="pull-right"> {{$users->mobile}}</a> | ||||
|             </div> | ||||
|             @endif | ||||
|             @if($users->phone_number) | ||||
|                 <div class="box-footer"> | ||||
|                     <b>{{Lang::get('lang.phone')}}</b> | ||||
|                     <a class="pull-right"> {{$users->phone_number}}</a> | ||||
|                 </div> | ||||
|             <div class="box-footer"> | ||||
|                 <b>{{Lang::get('lang.phone')}}</b> | ||||
|                 <a class="pull-right"> {{$users->phone_number}}</a> | ||||
|             </div> | ||||
|             @endif | ||||
|             @if($users->internal_note) | ||||
|             <div class="box-footer"> | ||||
| @@ -158,15 +172,329 @@ class="active" | ||||
|                 {!! $users->internal_note !!} | ||||
|             </div> | ||||
|             @endif | ||||
|             @if($users->twitterLink()!=="") | ||||
|             <div class="box-footer"> | ||||
|                 {!! $users->twitterLink() !!} | ||||
|             </div> | ||||
|             @endif | ||||
|         </div> | ||||
|     </div> | ||||
|     <div class="col-md-6 pull-right"> | ||||
|         <!-- <div class="box box-primary"> --> | ||||
|         <div class="box-body"> | ||||
|             @if(Auth::user()->role == 'admin') | ||||
|             @if($users->role == 'user') | ||||
|             <div class="btn-group"> | ||||
|                 <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal1">{{Lang::get('lang.change_role_to_agent')}}</button> | ||||
|             </div> | ||||
|             <div class="btn-group"> | ||||
|                 <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal4">{{Lang::get('lang.change_role_to_admin')}}</button> | ||||
|             </div> | ||||
|             @else | ||||
|             <div class="btn-group"> | ||||
|                 <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal2">{{Lang::get('lang.change_role_to_user')}}</button> | ||||
|                 <!-- <button type="button" class="btn btn-primary" id="role_user">Change Role TO User</button> --> | ||||
|             </div> | ||||
|             <div class="btn-group"> | ||||
|                 <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal4">{{Lang::get('lang.change_role_to_admin')}}</button> | ||||
|             </div> | ||||
|             @endif | ||||
|             @endif | ||||
|             <a href="{{route('user.edit', $users->id)}}"><button type="button"  href="{{route('user.edit', $users->id)}}" class="btn btn-primary btn-sm">{{Lang::get('lang.edit')}}</button></a> | ||||
|             <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal">{{Lang::get('lang.change_password')}}</button> | ||||
|             <button type="button" href="#myPopup" data-rel="popup" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#addNewCategoryModal3">{{Lang::get('lang.delete')}}</button> | ||||
|             <!-- <button type="button" class="btn btn-primary">Delete</button> --> | ||||
|         </div> | ||||
|     </div> | ||||
|  | ||||
|     <!-- Delete --> | ||||
|     <form action="{!!URL::route('user.post.delete', $users->id)!!}" method="post" role="form"> | ||||
|         <div class="modal fade" id="addNewCategoryModal3" tabindex="-1" role="dialog"> | ||||
|             <div class="modal-dialog" role="document"> | ||||
|                 <div class="modal-content"> | ||||
|                     <div class="modal-header"> | ||||
|                         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | ||||
|                                 aria-hidden="true">×</span> | ||||
|                         </button> | ||||
|                         <h4 class="modal-title" id="titleLabel">Delete Agent</h4> | ||||
|                     </div> | ||||
|  | ||||
|                     <div class="modal-body"> | ||||
|                         What should be done with content owned by this user?</br> | ||||
|                         <?php $user = App\User::where('id', $users->id)->first(); ?> | ||||
|                         @if($user->role == 'agent') | ||||
|                         {!! Form::label('delete_all_content',Lang::get('lang.delete_all_content')) !!} <span class="text-red"> *</span> | ||||
|                         <?php | ||||
|                         $open = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '1')->get(); | ||||
|                         ?> | ||||
|                         <?php $user = App\User::where('id', $users->id)->first(); ?> | ||||
|                         <?php | ||||
|                         $open = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '1')->get()); | ||||
|                         ?> | ||||
|  | ||||
|                         @if(!$open) | ||||
|                         <!-- <input type="checkbox" id="delete_checkbox" name="delete_all" value="1" checked> --> | ||||
|                         @elseif($open) | ||||
|                         <input type="checkbox" id="delete_checkbox" name="delete_all" value="1"> | ||||
|  | ||||
|                         @endif | ||||
|                          @endif | ||||
|                         <!--    Hi Admin  | ||||
|                             @if($users->role=='agent')   | ||||
|                             Assign  tickets of the agent will delete? | ||||
|                             Create ticket By agent Will Delete? | ||||
|                             @elseif($users->role=='user') | ||||
|                             Crete ticket by user Will Delete? | ||||
|                             @endif --> | ||||
|                         <!--  --> | ||||
|                         <?php $user = App\User::where('id', $users->id)->first(); ?> | ||||
|                         <?php | ||||
|                         $open = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '1')->get()); | ||||
|                         $counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '2')->get()); | ||||
|                         $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '5')->get()); | ||||
|                         ?> | ||||
|                         @if($open>0)   | ||||
|                         <div id="delete_assign_body"> | ||||
|                             <p>{!! Lang::get('lang.whome_do_you_want_to_assign_ticket') !!}?</p> | ||||
|                             <select id="asssign" class="form-control" name="assign_to"> | ||||
|                                 <?php | ||||
|                                 $assign = App\User::where('role', '!=', 'user')->get(); | ||||
|                                 $count_assign = count($assign); | ||||
|                                 $teams = App\Model\helpdesk\Agent\Teams::all(); | ||||
|                                 $count_teams = count($teams); | ||||
|                                 ?> | ||||
|                                 <!--    <optgroup label="Teams ( {!! $count_teams !!} )"> | ||||
|                                        @foreach($teams as $team) | ||||
|                                        <option  value="team_{{$team->id}}">{!! $team->name !!}</option> | ||||
|                                        @endforeach | ||||
|                                    </optgroup> --> | ||||
|                                 <optgroup label="Agents ( {!! $count_assign !!} )"> | ||||
|                                     @foreach($assign as $user) | ||||
|                                     <option  value="user_{{$user->id}}">{{$user->first_name." ".$user->last_name}}</option> | ||||
|                                     @endforeach | ||||
|                                 </optgroup> | ||||
|                             </select> | ||||
|                         </div> | ||||
|                         @endif | ||||
|  | ||||
|                     </div> | ||||
|  | ||||
|                 </div> | ||||
|                | ||||
|                 <div class="box-footer"> | ||||
|                     {!! Form::submit(Lang::get('lang.confirm_deletion'),['class'=>'btn btn-primary'])!!} | ||||
|                 </div> | ||||
|  | ||||
|             </div> | ||||
|         </div> | ||||
|     </form> | ||||
|     <!-- Role --> | ||||
|     <!-- Admin --> | ||||
|     <form action="{!!URL::route('user.post.rolechangeadmin', $users->id)!!}" method="post" role="form"> | ||||
|         <div class="modal fade" id="addNewCategoryModal4" tabindex="-1" role="dialog"> | ||||
|             <div class="modal-dialog" role="document"> | ||||
|                 <div class="modal-content"> | ||||
|                     <div class="modal-header"> | ||||
|                         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | ||||
|                                 aria-hidden="true">×</span> | ||||
|                         </button> | ||||
|                         <h4 class="modal-title" id="titleLabel">{{Lang::get('lang.role_change')}}:</h4> | ||||
|                     </div> | ||||
|  | ||||
|                     <div class="modal-body"> | ||||
|  | ||||
|                         <?php | ||||
|                         $groups = App\Model\helpdesk\Agent\Groups::all(array('id', 'name')); | ||||
|                         $departments = App\Model\helpdesk\Agent\Department::all(array('id', 'name')); | ||||
|                         ?> | ||||
|  | ||||
|                         <!-- <div class="col-xs-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}"> --> | ||||
|                         {!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} <span class="text-red"> *</span> | ||||
|                         {!!Form::select('group',[Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!} | ||||
|                         <!-- </div> --> | ||||
|                         <!-- primary dept --> | ||||
|                         <!-- <div class="col-xs-4 form-group {{ $errors->has('primary_department') ? 'has-error' : '' }}"> --> | ||||
|                         {!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span> | ||||
|                         {!! Form::select('primary_department', [Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!} | ||||
|                         <!-- </div> --> | ||||
|  | ||||
|                     </div> | ||||
|  | ||||
|                 </div> | ||||
|                 <div class="box-footer"> | ||||
|                     {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!} | ||||
|                 </div> | ||||
|  | ||||
|             </div> | ||||
|         </div> | ||||
|     </form> | ||||
|     <!-- user --> | ||||
|     <form action="{!!URL::route('user.post.rolechangeuser', $users->id)!!}" method="post" role="form"> | ||||
|         <div class="modal fade" id="addNewCategoryModal2" tabindex="-1" role="dialog"> | ||||
|             <div class="modal-dialog" role="document"> | ||||
|                 <div class="modal-content"> | ||||
|                     <div class="modal-header"> | ||||
|                         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | ||||
|                                 aria-hidden="true">×</span> | ||||
|                         </button> | ||||
|                         <h4 class="modal-title" id="titleLabel">{{Lang::get('lang.role_change')}}:</h4> | ||||
|                     </div> | ||||
|  | ||||
|                     <div class="modal-body"> | ||||
|  | ||||
|  | ||||
|                         Are u sure? | ||||
|                         Role Change Agent To User | ||||
|  | ||||
|                     </div> | ||||
|  | ||||
|                 </div> | ||||
|                 <div class="box-footer"> | ||||
|                     {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!} | ||||
|                 </div> | ||||
|  | ||||
|             </div> | ||||
|         </div> | ||||
|     </form> | ||||
|     <!-- agent --> | ||||
|     <form action="{!!URL::route('user.post.rolechangeagent', $users->id)!!}" method="post" role="form"> | ||||
|         <div class="modal fade" id="addNewCategoryModal1" tabindex="-1" role="dialog"> | ||||
|             <div class="modal-dialog" role="document"> | ||||
|                 <div class="modal-content"> | ||||
|                     <div class="modal-header"> | ||||
|                         <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | ||||
|                                 aria-hidden="true">×</span> | ||||
|                         </button> | ||||
|                         <h4 class="modal-title" id="titleLabel">{{Lang::get('lang.role_change')}}:</h4> | ||||
|                     </div> | ||||
|  | ||||
|                     <div class="modal-body"> | ||||
|  | ||||
|                         <?php | ||||
|                         $groups = App\Model\helpdesk\Agent\Groups::all(array('id', 'name')); | ||||
|                         $departments = App\Model\helpdesk\Agent\Department::all(array('id', 'name')); | ||||
|                         ?> | ||||
|  | ||||
|                         <!-- <div class="col-xs-4 form-group {{ $errors->has('group') ? 'has-error' : '' }}"> --> | ||||
|                         {!! Form::label('assign_group',Lang::get('lang.assigned_group')) !!} <span class="text-red"> *</span> | ||||
|                         {!!Form::select('group',[Lang::get('lang.groups')=>$groups->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!} | ||||
|                         <!-- </div> --> | ||||
|                         <!-- primary dept --> | ||||
|                         <!-- <div class="col-xs-4 form-group {{ $errors->has('primary_department') ? 'has-error' : '' }}"> --> | ||||
|                         {!! Form::label('primary_dpt',Lang::get('lang.primary_department')) !!} <span class="text-red"> *</span> | ||||
|                         {!! Form::select('primary_department', [Lang::get('lang.departments')=>$departments->lists('name','id')->toArray()],null,['class' => 'form-control select']) !!} | ||||
|                         <!-- </div> --> | ||||
|  | ||||
|                     </div> | ||||
|  | ||||
|                 </div> | ||||
|                 <div class="box-footer"> | ||||
|                     {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary'])!!} | ||||
|                 </div> | ||||
|  | ||||
|             </div> | ||||
|         </div> | ||||
|     </form> | ||||
|     <!-- Change password --> | ||||
|  | ||||
|     <div class="modal fade" id="addNewCategoryModal" tabindex="-1" role="dialog"> | ||||
|         <div class="modal-dialog" role="document"> | ||||
|             <div class="modal-content"> | ||||
|                 <div class="modal-header"> | ||||
|                     <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span | ||||
|                             aria-hidden="true">×</span> | ||||
|                     </button> | ||||
|                     <h4 class="modal-title" id="titleLabel">{{Lang::get('lang.change_password')}}:</h4> | ||||
|                 </div> | ||||
|  | ||||
|                 <div class="modal-body"> | ||||
|                      | ||||
|                         <button class="btn btn-warning pull-right" id="changepassword">{{Lang::get('lang.password_generator')}}</button> | ||||
|                      | ||||
|                     <br/> | ||||
|                     <form name="myForm" action="{!!URL::route('user.post.changepassword', $users->id)!!}" method="post" role="form" onsubmit="return validateForm()"> | ||||
|                         <div class="form-group"> | ||||
|  | ||||
|                             <!-- <div class="form-group {{ $errors->has('change_password') ? 'has-error' : '' }}"> --> | ||||
|                             {!! Form::label('New password',Lang::get('lang.new_password')) !!} <span class="text-red"> *</span> | ||||
|                             <input type="text" class="form-control" name="change_password" id="changepassword1" > | ||||
|  | ||||
|                             <p id="demo" style="color:red"></p> | ||||
|  | ||||
|                             <!-- </div> --> | ||||
|  | ||||
|                         </div> | ||||
|  | ||||
|                 </div> | ||||
|  | ||||
|             </div> | ||||
|             <div class="box-footer"> | ||||
|                 {!! Form::submit(Lang::get('lang.submit'),['class'=>'btn btn-primary','id'=>'savepassword'])!!} | ||||
|             </div> | ||||
|             </form> | ||||
|         </div> | ||||
|     </div> | ||||
|     <script> | ||||
|  | ||||
|         $("#delete_checkbox").click(function () { | ||||
|             // alert('ok'); | ||||
|  | ||||
|             $("#delete_assign_body").toggle(); | ||||
|  | ||||
|         }); | ||||
|  | ||||
|     </script> | ||||
|  | ||||
|     <script> | ||||
|         function validateForm() { | ||||
|             var x = document.forms["myForm"]["change_password"].value; | ||||
|             if (x == null || x == "") { | ||||
|                 // alert("please enter your password"); | ||||
|                 document.getElementById("demo").innerHTML = "Enter Password"; | ||||
|                 return false; | ||||
|             } | ||||
|         } | ||||
|     </script> | ||||
|     <script> | ||||
|  | ||||
|         $('#changepassword').click(function () { | ||||
|             $.ajax({ | ||||
|                 type: 'get', | ||||
|                 url: '{{route("user.changepassword")}}', | ||||
|                 // data: {settings_approval: settings_approval}, | ||||
|                 success: function (result) { | ||||
|                     // with('success', Lang::get('lang.approval_settings-created-successfully')); | ||||
|                     // alert("Hi, testing"); | ||||
|                     // var x =result; | ||||
|                     var sum = result; | ||||
|  | ||||
|                     document.getElementById("changepassword1").value = sum; | ||||
|  | ||||
|                 } | ||||
|             }); | ||||
|  | ||||
|         }); | ||||
|  | ||||
|     </script> | ||||
|     <div class="col-md-9"> | ||||
|         {{-- detals table starts --}} | ||||
|         <?php $user = App\User::where('id', $users->id)->first(); ?> | ||||
|         <?php | ||||
|         $open = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '1')->get()); | ||||
|         $counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '2')->get()); | ||||
|         $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '5')->get()); | ||||
|         $user = App\User::where('id', $users->id)->first(); | ||||
|         // dd( $user->role); | ||||
|  | ||||
|         if ($users->role != 'user') { | ||||
|             $open = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '1')->get()); | ||||
|             $tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '2')->orderBy('id', 'DESC')->paginate(20); | ||||
|             $counted = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '2')->get()); | ||||
|             $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '5')->get()); | ||||
|         } | ||||
|         if ($users->role == 'user') { | ||||
|             $open = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '1')->get()); | ||||
|             $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '2')->orderBy('id', 'DESC')->paginate(20); | ||||
|             $counted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '2')->get()); | ||||
|             $deleted = count(App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '5')->get()); | ||||
|             // dd($deleted); | ||||
|         } | ||||
|         ?> | ||||
|         <div class="row"> | ||||
|             <div class="col-md-12"> | ||||
| @@ -228,7 +556,11 @@ class="active" | ||||
|                                         <th>{!! Lang::get('lang.last_activity') !!}</th> | ||||
|                                         </thead> | ||||
|                                         <tbody id="hello"> | ||||
|                                             @if($users->role != 'user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '1')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @elseif($users->role ='user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '1')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @endif | ||||
|                                             @foreach ($tickets  as $ticket) | ||||
|                                             <tr <?php if ($ticket->seen_by == null) { ?> style="color:green;" <?php } | ||||
|                                             ?> > | ||||
| @@ -273,14 +605,14 @@ class="active" | ||||
|                                                     $assigned = $assigned_to->first_name . " " . $assigned_to->last_name; | ||||
|                                                 } | ||||
|                                                 ?> | ||||
|                                                 <td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}}   </a> ({!! $count!!}) <i class="fa fa-comment"></i> | ||||
|                                                 <td class="mailbox-name"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}}   </a> ({!! $count!!}) <i class="{{$ticket->sourceCss()}}"></i> | ||||
|                                                     @if($collab > 0) <i class="fa fa-users"></i>@endif  | ||||
|                                                     @if($attach > 0) <i class="fa fa-paperclip"></i>@endif</td> | ||||
|                                                 <td class="mailbox-Id"><a href="{!! route('ticket.thread',[$ticket->id]) !!}" title="{!! $title->title !!}">#{!! $ticket->ticket_number !!}</a></td> | ||||
|                                                 <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first(); ?> | ||||
|                                                 <td class="mailbox-priority">@if($priority != null)<spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam>@endif</td> | ||||
|                                         <?php $from = App\User::where('id', '=', $ticket->user_id)->first(); ?>  | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td> | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! str_limit($username,20) !!}</td> | ||||
|                                         <td>{!! $assigned !!}</td> | ||||
|                                         <td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td> | ||||
|                                         </tr> | ||||
| @@ -347,7 +679,11 @@ class="active" | ||||
|                                         <th>{!! Lang::get('lang.last_activity') !!}</th> | ||||
|                                         </thead> | ||||
|                                         <tbody id="hello"> | ||||
|                                             @if($users->role != 'user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '2')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @elseif($users->role ='user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '2')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @endif | ||||
|                                             @foreach ($tickets  as $ticket) | ||||
|                                             <tr <?php if ($ticket->seen_by == null) { ?> style="color:green;" <?php } ?> > | ||||
|                                                 <td ><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td> | ||||
| @@ -398,7 +734,7 @@ class="active" | ||||
|                                                 <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first(); ?> | ||||
|                                                 <td class="mailbox-priority">@if($priority != null)<spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam>@endif</td> | ||||
|                                         <?php $from = App\User::where('id', '=', $ticket->user_id)->first(); ?>  | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td> | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! str_limit($username,20) !!}</td> | ||||
|                                         <td>{!! $assigned !!}</td> | ||||
|                                         <td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td> | ||||
|                                         </tr> | ||||
| @@ -468,7 +804,11 @@ class="active" | ||||
|                                         <th>{!! Lang::get('lang.last_activity') !!}</th> | ||||
|                                         </thead> | ||||
|                                         <tbody id="hello"> | ||||
|                                             @if($users->role != 'user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('assigned_to', '=', $users->id)->where('status', '=', '5')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @elseif($users->role ='user') | ||||
|                                             <?php $tickets = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=', $users->id)->where('status', '=', '5')->orderBy('id', 'DESC')->paginate(20); ?> | ||||
|                                             @endif | ||||
|                                             @foreach ($tickets  as $ticket) | ||||
|                                             <tr <?php if ($ticket->seen_by == null) { ?> style="color:green;" <?php } | ||||
|                                             ?> > | ||||
| @@ -520,7 +860,7 @@ class="active" | ||||
|                                                 <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first(); ?> | ||||
|                                                 <td class="mailbox-priority">@if($priority != null)<spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam>@endif</td> | ||||
|                                         <?php $from = App\User::where('id', '=', $ticket->user_id)->first(); ?>  | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td> | ||||
|                                         <td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! str_limit($username,20) !!}</td> | ||||
|                                         <td>{!! $assigned !!}</td> | ||||
|                                         <td class="mailbox-last-activity">{!! UTC::usertimezone($title->updated_at) !!}</td> | ||||
|                                         </tr> | ||||
| @@ -539,6 +879,7 @@ class="active" | ||||
|                 </div><!-- /.col -->           | ||||
|             </div> <!-- /.row --> | ||||
|         </div> | ||||
|         @if(Auth::user()->role == 'user') | ||||
|         <div class="row"> | ||||
|             <div class="col-md-12"> | ||||
|                 <link type="text/css" href="{{asset("lb-faveo/css/bootstrap-datetimepicker4.7.14.min.css")}}" rel="stylesheet"> | ||||
| @@ -566,7 +907,7 @@ class="active" | ||||
|                                     } | ||||
|                                     ?> | ||||
|                                     <script type="text/javascript"> | ||||
|                                         $(function() { | ||||
|                                         $(function () { | ||||
|                                             var timestring1 = "{!! $start_date !!}"; | ||||
|                                             var timestring2 = "{!! date('m/d/Y') !!}"; | ||||
|                                             $('#datepicker4').datetimepicker({ | ||||
| @@ -582,7 +923,7 @@ class="active" | ||||
|                                         {!! Form::text('end_date',null,['class'=>'form-control','id'=>'datetimepicker3'])!!} | ||||
|                                     </div> | ||||
|                                     <script type="text/javascript"> | ||||
|                                         $(function() { | ||||
|                                         $(function () { | ||||
|                                             var timestring1 = "{!! $start_date !!}"; | ||||
|                                             var timestring2 = "{!! date('m/d/Y') !!}"; | ||||
|                                             $('#datetimepicker3').datetimepicker({ | ||||
| @@ -619,6 +960,7 @@ class="active" | ||||
|             </div> | ||||
|         </div> | ||||
|     </div> | ||||
|     @endif | ||||
|     <!-- END CUSTOM TABS --> | ||||
|     {{-- MODAL POPUPS --}} | ||||
|     <div class="modal fade" id="create_org"> | ||||
| @@ -630,16 +972,16 @@ class="active" | ||||
|                     <h4 class="modal-title">{!! Lang::get('lang.create_organization') !!}</h4> | ||||
|                 </div> | ||||
|                 <div class="modal-body"> | ||||
|                     <!-- failure message -->						         | ||||
|                     <!-- failure message -->                                 | ||||
|                     <div class="alert alert-danger alert-dismissable" id="alert-danger" style="display:none;">  | ||||
|                         <i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!} ! <span id="get-danger"></span> </b> | ||||
|                         <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||||
|                     </div>						         | ||||
|                     </div>                               | ||||
|                     <div class="row" id="hide"> | ||||
|                         <div class="col-md-4"> | ||||
|                             <div class="form-group"> | ||||
|                                 <label>{!! Lang::get('lang.name') !!}</label> | ||||
|                                	<input type="text" name="name" class="form-control"> | ||||
|                                 <input type="text" name="name" class="form-control"> | ||||
|                                 <spam id="error-name" style="display:none;position:fixed" class="call-out text-red">This is a required field</spam> | ||||
|                                 <spam id="error-name1" style="display:none;position:fixed" class="call-out text-red">! Allready Taken</spam> | ||||
|                                 <br/> | ||||
| @@ -694,19 +1036,19 @@ class="active" | ||||
|         </div><!-- /.modal-dialog --> | ||||
|     </div><!-- /.modal --> | ||||
|     <script type="text/javascript"> | ||||
|         jQuery(document).ready(function($) { | ||||
|         jQuery(document).ready(function ($) { | ||||
|             // create org | ||||
|             $('#form').on('submit', function() { | ||||
|             $('#form').on('submit', function () { | ||||
|                 $.ajax({ | ||||
|                     type: "POST", | ||||
|                     url: "../user-org/{{$users->id}}", | ||||
|                     dataType: "html", | ||||
|                     data: $(this).serialize(), | ||||
|                     beforeSend: function() { | ||||
|                     beforeSend: function () { | ||||
|                         $("#hide").hide(); | ||||
|                         $("#show2").show(); | ||||
|                     }, | ||||
|                     success: function(response) { | ||||
|                     success: function (response) { | ||||
|                         $("#show2").hide(); | ||||
|                         $("#hide").show(); | ||||
|                         if (response == 0) { | ||||
| @@ -717,7 +1059,7 @@ class="active" | ||||
|                             // $("#show").show(); | ||||
|                             $("#alert-success").show(); | ||||
|                             $('#get-success').html(message); | ||||
|                             setInterval(function() { | ||||
|                             setInterval(function () { | ||||
|                                 $("#alert-success").hide(); | ||||
|                             }, 4000); | ||||
|                         } else { | ||||
| @@ -778,19 +1120,19 @@ class="active" | ||||
|  | ||||
|     <script type="text/javascript"> | ||||
|         // Assign a ticket | ||||
|         jQuery(document).ready(function($) { | ||||
|         jQuery(document).ready(function ($) { | ||||
|             // create org | ||||
|             $('#org_assign').on('submit', function() { | ||||
|             $('#org_assign').on('submit', function () { | ||||
|                 $.ajax({ | ||||
|                     type: "POST", | ||||
|                     url: "../user-org-assign/{{$users->id}}", | ||||
|                     dataType: "html", | ||||
|                     data: $(this).serialize(), | ||||
|                     beforeSend: function() { | ||||
|                     beforeSend: function () { | ||||
|                         $("#hide").hide(); | ||||
|                         $("#show2").show(); | ||||
|                     }, | ||||
|                     success: function(response) { | ||||
|                     success: function (response) { | ||||
|                         $("#show2").hide(); | ||||
|                         $("#hide").show(); | ||||
|  | ||||
| @@ -802,7 +1144,7 @@ class="active" | ||||
|                             // $("#show").show(); | ||||
|                             $("#alert-success").show(); | ||||
|                             $('#get-success').html(message); | ||||
|                             setInterval(function() { | ||||
|                             setInterval(function () { | ||||
|                                 $("#alert-success").hide(); | ||||
|                             }, 4000); | ||||
|                         } | ||||
| @@ -812,17 +1154,17 @@ class="active" | ||||
|             }); | ||||
|         }); | ||||
|  | ||||
|         $(function() { | ||||
|         $(function () { | ||||
|             //Enable check and uncheck all functionality | ||||
|             $(".checkbox-toggle").click(function() { | ||||
|             $(".checkbox-toggle").click(function () { | ||||
|                 var clicks = $(this).data('clicks'); | ||||
|                 if (clicks) { | ||||
|                     //Uncheck all checkboxes | ||||
|                     $(".mailbox-messages input[type='checkbox']").iCheck("uncheck"); | ||||
|                     $(" input[type='checkbox']").iCheck("uncheck"); | ||||
|                     $(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o'); | ||||
|                 } else { | ||||
|                     //Check all checkboxes | ||||
|                     $(".mailbox-messages input[type='checkbox']").iCheck("check"); | ||||
|                     $("input[type='checkbox']").iCheck("check"); | ||||
|                     $(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o'); | ||||
|                 } | ||||
|                 $(this).data("clicks", !clicks); | ||||
| @@ -831,9 +1173,9 @@ class="active" | ||||
|  | ||||
|  | ||||
|  | ||||
|         $(function() { | ||||
|         $(function () { | ||||
|             // Enable check and uncheck all functionality | ||||
|             $(".checkbox-toggle").click(function() { | ||||
|             $(".checkbox-toggle").click(function () { | ||||
|                 var clicks = $(this).data('clicks'); | ||||
|                 if (clicks) { | ||||
|                     //Uncheck all checkboxes | ||||
| @@ -847,8 +1189,8 @@ class="active" | ||||
|         }); | ||||
|  | ||||
|  | ||||
|         $(document).ready(function() { /// Wait till page is loaded | ||||
|             $('#click').click(function() { | ||||
|         $(document).ready(function () { /// Wait till page is loaded | ||||
|             $('#click').click(function () { | ||||
|                 $('#refresh').load('open #refresh'); | ||||
|                 $("#show").show(); | ||||
|             }); | ||||
| @@ -856,7 +1198,7 @@ class="active" | ||||
|  | ||||
|  | ||||
|  | ||||
|         $(function() { | ||||
|         $(function () { | ||||
|             $("textarea").wysihtml5(); | ||||
|         }); | ||||
|     </script> | ||||
| @@ -865,8 +1207,8 @@ class="active" | ||||
|     </div> | ||||
|     <script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script> | ||||
|     <script type="text/javascript"> | ||||
|         $(document).ready(function() { | ||||
|             $.getJSON("../user-agen/<?php echo $users->id; ?>", function(result) { | ||||
|         $(document).ready(function () { | ||||
|             $.getJSON("../user-agen/<?php echo $users->id; ?>", function (result) { | ||||
|                 var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0; | ||||
|                 for (var i = 0; i < result.length; i++) { | ||||
|                     labels.push(result[i].date); | ||||
| @@ -955,10 +1297,10 @@ class="active" | ||||
|                 }); | ||||
|  | ||||
|             }); | ||||
|             $('#click me').click(function() { | ||||
|             $('#click me').click(function () { | ||||
|                 $('#foo').submit(); | ||||
|             }); | ||||
|             $('#foo').submit(function(event) { | ||||
|             $('#foo').submit(function (event) { | ||||
|                 // get the form data | ||||
|                 // there are many ways to get this data using jQuery (you can use the class or id also) | ||||
|                 var date1 = $('#datepicker4').val(); | ||||
| @@ -972,7 +1314,7 @@ class="active" | ||||
|                     data: formData, // our data object | ||||
|                     dataType: 'json', // what type of data do we expect back from the server | ||||
|  | ||||
|                     success: function(result2) { | ||||
|                     success: function (result2) { | ||||
|  | ||||
|                         var labels = [], open = [], closed = [], reopened = [], open_total = 0, closed_total = 0, reopened_total = 0; | ||||
|  | ||||
| @@ -1111,15 +1453,15 @@ class="active" | ||||
|             }); | ||||
|         }); | ||||
|  | ||||
|         jQuery(document).ready(function() { | ||||
|         jQuery(document).ready(function () { | ||||
|             // Close a ticket | ||||
|             $('#close').on('click', function(e) { | ||||
|             $('#close').on('click', function (e) { | ||||
|                 $.ajax({ | ||||
|                     type: "GET", | ||||
|                     url: "agen", | ||||
|                     beforeSend: function() { | ||||
|                     beforeSend: function () { | ||||
|                     }, | ||||
|                     success: function(response) { | ||||
|                     success: function (response) { | ||||
|                     } | ||||
|                 }) | ||||
|                 return false; | ||||
| @@ -1129,4 +1471,3 @@ class="active" | ||||
|     <script src="{{asset("lb-faveo/plugins/moment-develop/moment.js")}}" type="text/javascript"></script> | ||||
|     <script src="{{asset("lb-faveo/js/bootstrap-datetimepicker4.7.14.min.js")}}" type="text/javascript"></script> | ||||
|     @stop | ||||
|     <!-- /content --> | ||||
		Reference in New Issue
	
	Block a user
	 Manish Verma
					Manish Verma