commit
commit
This commit is contained in:
117
.idea/blade.xml
generated
Normal file
117
.idea/blade.xml
generated
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="BladeInjectionConfiguration" default="false">
|
||||||
|
<directives>
|
||||||
|
<data directive="@append" />
|
||||||
|
<data directive="@auth" injection="true" prefix="<?php if(auth()->guard(" suffix=")->check()): ?>" />
|
||||||
|
<data directive="@aware" injection="true" prefix="<?php $attributes = $attributes->exceptProps(" suffix="); ?>" />
|
||||||
|
<data directive="@break" injection="true" prefix="<?php if(" suffix=") break; ?>" />
|
||||||
|
<data directive="@can" injection="true" prefix="<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(" suffix=")): ?>" />
|
||||||
|
<data directive="@canany" injection="true" prefix="<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(" suffix=")): ?>" />
|
||||||
|
<data directive="@cannot" injection="true" prefix="<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies(" suffix=")): ?>" />
|
||||||
|
<data directive="@case" injection="true" prefix="<?php case (" suffix="): ?>" />
|
||||||
|
<data directive="@checked" injection="true" prefix="<?php if(" suffix=") {echo 'checked';}?>" />
|
||||||
|
<data directive="@choice" injection="true" prefix="<?php echo app('translator')->choice(" suffix="); ?>" />
|
||||||
|
<data directive="@class" injection="true" prefix="class="<?php echo \Illuminate\Support\Arr::toCssClasses(" suffix=")?>"" />
|
||||||
|
<data directive="@component" injection="true" prefix="<?php $__env->startComponent(" suffix="); ?>" />
|
||||||
|
<data directive="@componentfirst" injection="true" prefix="<?php $__env->startComponentFirst(" suffix="); ?>" />
|
||||||
|
<data directive="@continue" injection="true" prefix="<?php if(" suffix=") continue; ?>" />
|
||||||
|
<data directive="@csrf" />
|
||||||
|
<data directive="@dd" injection="true" prefix="<?php dd(" suffix="); ?>" />
|
||||||
|
<data directive="@default" />
|
||||||
|
<data directive="@disabled" injection="true" prefix="<?php if(" suffix=") {echo 'disabled';}?>" />
|
||||||
|
<data directive="@dump" injection="true" prefix="<?php dump(" suffix="); ?>" />
|
||||||
|
<data directive="@each" injection="true" prefix="<?php echo $__env->renderEach(" suffix="); ?>" />
|
||||||
|
<data directive="@else" />
|
||||||
|
<data directive="@elseauth" injection="true" prefix="<?php elseif(auth()->guard(" suffix=")->check()): ?>" />
|
||||||
|
<data directive="@elsecan" injection="true" prefix="<?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check(" suffix=")): ?>" />
|
||||||
|
<data directive="@elsecanany" injection="true" prefix="<?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(" suffix=")): ?>" />
|
||||||
|
<data directive="@elsecannot" injection="true" prefix="<?php elseif (app(\Illuminate\Contracts\Auth\Access\Gate::class)->denies(" suffix=")): ?>" />
|
||||||
|
<data directive="@elseguest" injection="true" prefix="<?php elseif(auth()->guard(" suffix=")->guest()): ?>" />
|
||||||
|
<data directive="@elseif" injection="true" prefix="<?php elseif(" suffix="): ?>" />
|
||||||
|
<data directive="@empty" injection="true" prefix="<?php if(empty(" suffix=")): ?>" />
|
||||||
|
<data directive="@endauth" />
|
||||||
|
<data directive="@endcan" />
|
||||||
|
<data directive="@endcanany" />
|
||||||
|
<data directive="@endcannot" />
|
||||||
|
<data directive="@endcomponent" />
|
||||||
|
<data directive="@endcomponentClass" />
|
||||||
|
<data directive="@endcomponentfirst" />
|
||||||
|
<data directive="@endempty" />
|
||||||
|
<data directive="@endenv" />
|
||||||
|
<data directive="@enderror" />
|
||||||
|
<data directive="@endfor" />
|
||||||
|
<data directive="@endforeach" />
|
||||||
|
<data directive="@endforelse" />
|
||||||
|
<data directive="@endfragment" />
|
||||||
|
<data directive="@endguest" />
|
||||||
|
<data directive="@endif" />
|
||||||
|
<data directive="@endisset" />
|
||||||
|
<data directive="@endlang" />
|
||||||
|
<data directive="@endonce" />
|
||||||
|
<data directive="@endphp" />
|
||||||
|
<data directive="@endprepend" />
|
||||||
|
<data directive="@endprependonce" />
|
||||||
|
<data directive="@endproduction" />
|
||||||
|
<data directive="@endpush" />
|
||||||
|
<data directive="@endpushif" />
|
||||||
|
<data directive="@endpushonce" />
|
||||||
|
<data directive="@endsection" />
|
||||||
|
<data directive="@endslot" />
|
||||||
|
<data directive="@endswitch" />
|
||||||
|
<data directive="@endunless" />
|
||||||
|
<data directive="@endverbatim" />
|
||||||
|
<data directive="@endwhile" />
|
||||||
|
<data directive="@env" injection="true" prefix="<?php if(app()->environment(" suffix=")): ?>" />
|
||||||
|
<data directive="@error" injection="true" prefix="<?php $__errorArgs = [" suffix="]; $__bag = $errors->getBag($__errorArgs[1] ?? 'default'); if ($__bag->has($__errorArgs[0])) : if (isset($message)) { $__messageOriginal = $message; } $message = $__bag->first($__errorArgs[0]); ?>" />
|
||||||
|
<data directive="@extends" injection="true" prefix="<?php echo $__env->make(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>" />
|
||||||
|
<data directive="@extendsfirst" injection="true" prefix="<?php echo $__env->first(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>" />
|
||||||
|
<data directive="@for" injection="true" prefix="<?php for(" suffix="): ?>" />
|
||||||
|
<data directive="@foreach" injection="true" prefix="<?php foreach(" suffix="): ?>" />
|
||||||
|
<data directive="@forelse" injection="true" prefix="<?php foreach(" suffix="): ?>" />
|
||||||
|
<data directive="@fragment" injection="true" prefix="<?php $__env->startFragment(" suffix="); ?>" />
|
||||||
|
<data directive="@guest" injection="true" prefix="<?php if(auth()->guard(" suffix=")->guest()): ?>" />
|
||||||
|
<data directive="@hasSection" injection="true" prefix="<?php if (! empty(trim($__env->yieldContent(" suffix=")))): ?>" />
|
||||||
|
<data directive="@if" injection="true" prefix="<?php if(" suffix="): ?>" />
|
||||||
|
<data directive="@include" injection="true" prefix="<?php echo $__env->make(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>" />
|
||||||
|
<data directive="@includeFirst" injection="true" prefix="<?php echo $__env->first(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>" />
|
||||||
|
<data directive="@includeUnless" injection="true" prefix="<?php echo $__env->renderUnless(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>" />
|
||||||
|
<data directive="@includeWhen" injection="true" prefix="<?php echo $__env->renderWhen(" suffix=", \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path'])); ?>" />
|
||||||
|
<data directive="@isset" injection="true" prefix="<?php if(isset(" suffix=")): ?>" />
|
||||||
|
<data directive="@js" injection="true" prefix="<?php _bladeDirective(" suffix="); ?>" />
|
||||||
|
<data directive="@json" injection="true" prefix="<?php echo json_encode(" suffix=") ?>" />
|
||||||
|
<data directive="@lang" injection="true" prefix="<?php echo app('translator')->get(" suffix="); ?>" />
|
||||||
|
<data directive="@method" injection="true" prefix="<?php echo method_field(" suffix="); ?>" />
|
||||||
|
<data directive="@once" />
|
||||||
|
<data directive="@overwrite" />
|
||||||
|
<data directive="@parent" />
|
||||||
|
<data directive="@php" injection="true" prefix="<?php (" suffix="); ?>" />
|
||||||
|
<data directive="@prepend" injection="true" prefix="<?php $__env->startPrepend(" suffix="); ?>" />
|
||||||
|
<data directive="@prependonce" injection="true" prefix="<?php $___phpstorm_prepend_once_params = [" suffix="]; if (! $__env->hasRenderedOnce($___phpstorm_prepend_once_params[1])): $__env->markAsRenderedOnce($___phpstorm_prepend_once_params); $__env->startPrepend($___phpstorm_prepend_once_params[0]); ?>" />
|
||||||
|
<data directive="@production" />
|
||||||
|
<data directive="@props" injection="true" prefix="<?php $attributes = $attributes->exceptProps(" suffix="); ?>" />
|
||||||
|
<data directive="@push" injection="true" prefix="<?php $__env->startPush(" suffix="); ?>" />
|
||||||
|
<data directive="@pushif" injection="true" prefix="<?php $__pushif_args = explode(','," suffix=", 2); if({$__pushif_args[0]}): $__env->startPush({$__pushif_args[1]}); ?>" />
|
||||||
|
<data directive="@pushonce" injection="true" prefix="<?php $__php_storm_push_once_params = [" suffix="]; if (!$__env->hasRenderedOnce($__php_storm_push_once_params[1])): $__env->markAsRenderedOnce($__php_storm_push_once_params[1]); $__env->startPush($__php_storm_push_once_params[0]); ?>" />
|
||||||
|
<data directive="@readonly" injection="true" prefix="<?php if(" suffix="): echo 'readonly'; endif; ?>" />
|
||||||
|
<data directive="@required" injection="true" prefix="<?php if(" suffix="): echo 'required'; endif; ?>" />
|
||||||
|
<data directive="@section" injection="true" prefix="<?php $__env->startSection(" suffix="); ?>" />
|
||||||
|
<data directive="@sectionMissing" injection="true" prefix="<?php if (empty(trim($__env->yieldContent(" suffix=")))): ?>" />
|
||||||
|
<data directive="@selected" injection="true" prefix="<?php if(" suffix=") {echo 'selected';}?>" />
|
||||||
|
<data directive="@show" />
|
||||||
|
<data directive="@slot" injection="true" prefix="<?php $__env->slot(" suffix="); ?>" />
|
||||||
|
<data directive="@stack" injection="true" prefix="<?php echo $__env->yieldPushContent(" suffix="); ?>" />
|
||||||
|
<data directive="@stop" />
|
||||||
|
<data directive="@style" injection="true" prefix="class="<?php echo \Illuminate\Support\Arr::toCssStyles(" suffix=")?>"" />
|
||||||
|
<data directive="@switch" injection="true" prefix="<?php switch(" suffix="): ?>" />
|
||||||
|
<data directive="@unless" injection="true" prefix="<?php if (! (" suffix=")): ?>" />
|
||||||
|
<data directive="@unset" injection="true" prefix="<?php unset(" suffix="); ?>" />
|
||||||
|
<data directive="@verbatim" />
|
||||||
|
<data directive="@vite" injection="true" prefix="<?php echo vite_func(" suffix="); ?>" />
|
||||||
|
<data directive="@viteReactRefresh" />
|
||||||
|
<data directive="@vitereactrefresh" />
|
||||||
|
<data directive="@while" injection="true" prefix="<?php while(" suffix="): ?>" />
|
||||||
|
<data directive="@yield" injection="true" prefix="<?php echo $__env->yieldContent(" suffix="); ?>" />
|
||||||
|
</directives>
|
||||||
|
</component>
|
||||||
|
</project>
|
5
.idea/community.iml
generated
5
.idea/community.iml
generated
@@ -5,6 +5,7 @@
|
|||||||
<sourceFolder url="file://$MODULE_DIR$/app" isTestSource="false" packagePrefix="App\" />
|
<sourceFolder url="file://$MODULE_DIR$/app" isTestSource="false" packagePrefix="App\" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
||||||
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="false" packagePrefix="Tests\" />
|
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="false" packagePrefix="Tests\" />
|
||||||
|
<sourceFolder url="file://$MODULE_DIR$/tests/Unit" isTestSource="true" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/graham-campbell/result-type" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/graham-campbell/result-type" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/laravelcollective/html" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/laravelcollective/html" />
|
||||||
@@ -168,6 +169,10 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/aws/aws-crt-php" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/aws/aws-crt-php" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/aws/aws-sdk-php" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/aws/aws-sdk-php" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/storage/app" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/storage/clockwork" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/storage/debugbar" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/storage/framework" />
|
||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
25
.idea/laravel-idea.xml
generated
Normal file
25
.idea/laravel-idea.xml
generated
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="InertiaPackage">
|
||||||
|
<option name="directoryPaths">
|
||||||
|
<list />
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="LaravelIdeaMainSettings">
|
||||||
|
<option name="codeGeneration">
|
||||||
|
<LaravelCodeGeneration>
|
||||||
|
<option name="generationStringSettings">
|
||||||
|
<map>
|
||||||
|
<entry key="createFormRequest:baseClass" value="App\Http\Requests\Request" />
|
||||||
|
</map>
|
||||||
|
</option>
|
||||||
|
</LaravelCodeGeneration>
|
||||||
|
</option>
|
||||||
|
<option name="frameworkFound" value="true" />
|
||||||
|
<option name="translation">
|
||||||
|
<LaravelTranslation>
|
||||||
|
<option name="defaultPath" value="lang" />
|
||||||
|
</LaravelTranslation>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
47
.idea/php.xml
generated
47
.idea/php.xml
generated
@@ -1,5 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="MessDetectorOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCSFixerOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
|
<component name="PHPCodeSnifferOptionsConfiguration">
|
||||||
|
<option name="highlightLevel" value="WARNING" />
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
<component name="PhpIncludePathManager">
|
<component name="PhpIncludePathManager">
|
||||||
<include_path>
|
<include_path>
|
||||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||||
@@ -165,12 +175,47 @@
|
|||||||
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||||
<path value="$PROJECT_DIR$/vendor/aws/aws-crt-php" />
|
<path value="$PROJECT_DIR$/vendor/aws/aws-crt-php" />
|
||||||
<path value="$PROJECT_DIR$/vendor/aws/aws-sdk-php" />
|
<path value="$PROJECT_DIR$/vendor/aws/aws-sdk-php" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/chumper/zipper" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/chumper/datatable" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sly/notification-pusher" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/brozot/laravel-fcm" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/guzzlehttp/uri-template" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/unisharp/laravel-ckeditor" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/itsgoingd/clockwork" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/sabberworm/php-css-parser" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-hydrator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zendservice-apple-apns" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-validator" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-json" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-stdlib" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-uri" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-escaper" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-loader" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zendservice-google-gcm" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/zendframework/zend-http" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/beyondcode/laravel-query-detector" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/laravel/pint" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/phenx/php-svg-lib" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/thomaswelton/gravatarlib" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/thomaswelton/laravel-gravatar" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/davibennun/laravel-push-notification" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-client" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/http-client-contracts" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/mailgun-mailer" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/options-resolver" />
|
||||||
</include_path>
|
</include_path>
|
||||||
</component>
|
</component>
|
||||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.2" />
|
<component name="PhpProjectSharedConfiguration" php_language_level="8.0" />
|
||||||
|
<component name="PhpStanOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
<component name="PhpUnit">
|
<component name="PhpUnit">
|
||||||
<phpunit_settings>
|
<phpunit_settings>
|
||||||
|
<PhpUnitSettings custom_loader_path="$PROJECT_DIR$/public/vendor/autoload.php" />
|
||||||
<PhpUnitSettings configuration_file_path="$PROJECT_DIR$/phpunit.xml" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" use_configuration_file="true" />
|
<PhpUnitSettings configuration_file_path="$PROJECT_DIR$/phpunit.xml" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" use_configuration_file="true" />
|
||||||
</phpunit_settings>
|
</phpunit_settings>
|
||||||
</component>
|
</component>
|
||||||
|
<component name="PsalmOptionsConfiguration">
|
||||||
|
<option name="transferred" value="true" />
|
||||||
|
</component>
|
||||||
</project>
|
</project>
|
1
.idea/phpunit.xml
generated
1
.idea/phpunit.xml
generated
@@ -4,6 +4,7 @@
|
|||||||
<option name="directories">
|
<option name="directories">
|
||||||
<list>
|
<list>
|
||||||
<option value="$PROJECT_DIR$/tests" />
|
<option value="$PROJECT_DIR$/tests" />
|
||||||
|
<option value="$PROJECT_DIR$/tests/Unit" />
|
||||||
</list>
|
</list>
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
|
@@ -7,6 +7,7 @@ use App\Http\Controllers\Controller;
|
|||||||
// models
|
// models
|
||||||
use App\Model\helpdesk\Priority;
|
use App\Model\helpdesk\Priority;
|
||||||
use App\Model\helpdesk\Ticket_Thread;
|
use App\Model\helpdesk\Ticket_Thread;
|
||||||
|
use App\Model\helpdesk\Agent\Location;
|
||||||
// classes
|
// classes
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
|
@@ -646,6 +646,7 @@ class UserController extends Controller
|
|||||||
// dd('here');
|
// dd('here');
|
||||||
$settings = CommonSettings::select('status')->where('option_name', '=', 'send_otp')->first();
|
$settings = CommonSettings::select('status')->where('option_name', '=', 'send_otp')->first();
|
||||||
$email_mandatory = CommonSettings::select('status')->where('option_name', '=', 'email_mandatory')->first();
|
$email_mandatory = CommonSettings::select('status')->where('option_name', '=', 'email_mandatory')->first();
|
||||||
|
$departments = Department::all();
|
||||||
|
|
||||||
$user = new User();
|
$user = new User();
|
||||||
/* select the field where id = $id(request Id) */
|
/* select the field where id = $id(request Id) */
|
||||||
@@ -659,7 +660,7 @@ class UserController extends Controller
|
|||||||
// $org_name=Organization::where('id','=',$org_id)->pluck('name')->first();
|
// $org_name=Organization::where('id','=',$org_id)->pluck('name')->first();
|
||||||
// dd($org_name);
|
// dd($org_name);
|
||||||
|
|
||||||
return view('themes.default1.agent.helpdesk.user.edit', compact('users', 'orgs', 'settings', 'email_mandatory', 'organization_id'))->with('phonecode', $phonecode->phonecode);
|
return view('themes.default1.agent.helpdesk.user.edit', compact('users', 'orgs', 'settings', 'email_mandatory', 'organization_id', 'departments'))->with('phonecode', $phonecode->phonecode);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return redirect()->back()->with('fails', $e->getMessage());
|
return redirect()->back()->with('fails', $e->getMessage());
|
||||||
}
|
}
|
||||||
|
16202
package-lock.json
generated
Normal file
16202
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ class="nav-link active"
|
|||||||
{{ Session::get('fails') }}
|
{{ Session::get('fails') }}
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
gfggggdgd
|
|
||||||
@if (Session::has('errors'))
|
@if (Session::has('errors'))
|
||||||
<div class="alert alert-danger alert-dismissable">
|
<div class="alert alert-danger alert-dismissable">
|
||||||
<i class="fas fa-ban"></i>
|
<i class="fas fa-ban"></i>
|
||||||
@@ -94,11 +94,13 @@ gfggggdgd
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<!-- Email Address : Email : Required -->
|
<!-- Email Address : Email : Required -->
|
||||||
<div class="col-sm-6 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
<div class="col-sm-4 form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||||
{!! Form::label('email', Lang::get('lang.email')) !!}<span class="text-red"> *</span>
|
{!! Form::label('email', Lang::get('lang.email')) !!}<span class="text-red"> *</span>
|
||||||
{!! Form::email('email', null, ['class' => 'form-control']) !!}
|
{!! Form::email('email', null, ['class' => 'form-control']) !!}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
|
|
||||||
|
|
||||||
|
<div class="col-sm-4 form-group {{ $errors->has('organization') ? 'has-error' : '' }}">
|
||||||
{!! Form::label('organization', Lang::get('lang.organization')) !!}
|
{!! Form::label('organization', Lang::get('lang.organization')) !!}
|
||||||
|
|
||||||
|
|
||||||
@@ -113,12 +115,34 @@ gfggggdgd
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-sm-4 form-group {{ $errors->has('dept_id') ? 'has-error' : '' }}">
|
||||||
|
{!! Form::label('dept_id', 'Phòng ban') !!}
|
||||||
|
<select class="form-control" name="dept_id" id="dept_id" required>
|
||||||
|
<option value="">-- Chọn phòng ban --</option>
|
||||||
|
@foreach ($departments as $department)
|
||||||
|
<option value="{{ $department->id }}"
|
||||||
|
{{ isset($users) && $users->department && $users->department->id == $department->id ? 'selected' : '' }}>
|
||||||
|
{{ $department->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
<div class="col-sm-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||||
{!! Form::label('country_code', Lang::get('lang.country-code')) !!}
|
{!! Form::label('country_code', Lang::get('lang.country-code')) !!}
|
||||||
{!! $errors->first('country_code', '<spam class="help-block">:message</spam>') !!}
|
{!! $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')]) !!}
|
{!! Form::text('country_code', null, [
|
||||||
|
'class' => 'form-control',
|
||||||
|
'placeholder' => $phonecode,
|
||||||
|
'title' => Lang::get('lang.enter-country-phone-code'),
|
||||||
|
]) !!}
|
||||||
</div>
|
</div>
|
||||||
<!-- mobile Number : Text : -->
|
<!-- mobile Number : Text : -->
|
||||||
<div class="col-md-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
<div class="col-md-3 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||||
@@ -206,7 +230,6 @@ gfggggdgd
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>-->
|
</script>-->
|
||||||
|
|
||||||
@stop
|
@stop
|
@@ -53,7 +53,8 @@ class="nav-link active"
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@if (Session::has('errors'))
|
@if (Session::has('errors'))
|
||||||
<?php //dd($errors); ?>
|
<?php //dd($errors);
|
||||||
|
?>
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissable">
|
<div class="alert alert-danger alert-dismissable">
|
||||||
<i class="fa fa-ban"></i>
|
<i class="fa fa-ban"></i>
|
||||||
@@ -70,7 +71,12 @@ class="nav-link active"
|
|||||||
@endif
|
@endif
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
{!! Form::model($user,['url'=>'agent-profile', 'id' => 'agent-profile', 'method' => 'PATCH','files'=>true]) !!}
|
{!! Form::model($user, [
|
||||||
|
'url' => 'agent-profile',
|
||||||
|
'id' => 'agent-profile',
|
||||||
|
'method' => 'PATCH',
|
||||||
|
'files' => true,
|
||||||
|
]) !!}
|
||||||
<div class="card card-light">
|
<div class="card card-light">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
@@ -116,7 +122,12 @@ class="nav-link active"
|
|||||||
<!-- phone extension -->
|
<!-- phone extension -->
|
||||||
<div class="col-sm-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
<div class="col-sm-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||||
{!! Form::label('country_code', Lang::get('lang.country-code')) !!}
|
{!! 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'), 'id' => 'code']) !!}
|
{!! Form::text('country_code', null, [
|
||||||
|
'class' => 'form-control',
|
||||||
|
'placeholder' => $phonecode,
|
||||||
|
'title' => Lang::get('lang.enter-country-phone-code'),
|
||||||
|
'id' => 'code',
|
||||||
|
]) !!}
|
||||||
</div>
|
</div>
|
||||||
<!-- phone number -->
|
<!-- phone number -->
|
||||||
<div class="col-sm-8 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
<div class="col-sm-8 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
|
||||||
@@ -165,21 +176,24 @@ class="nav-link active"
|
|||||||
{!! Form::label('old_password', Lang::get('lang.old_password')) !!} <span class="text-red"> *</span>
|
{!! 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', ['class' => 'form-control']) !!}
|
||||||
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
|
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
|
||||||
<span class="glyphicon glyphicon-lock form-control-feedback" style="float: right;top: -46px;left: -10px;"></span>
|
<span class="glyphicon glyphicon-lock form-control-feedback"
|
||||||
|
style="float: right;top: -46px;left: -10px;"></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- new password -->
|
<!-- new password -->
|
||||||
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
|
<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::label('new_password', Lang::get('lang.new_password')) !!} <span class="text-red"> *</span>
|
||||||
{!! Form::password('new_password', ['class' => 'form-control']) !!}
|
{!! Form::password('new_password', ['class' => 'form-control']) !!}
|
||||||
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
|
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
|
||||||
<span class="glyphicon glyphicon-lock form-control-feedback" style="float: right;top: -46px;left: -10px;"></span>
|
<span class="glyphicon glyphicon-lock form-control-feedback"
|
||||||
|
style="float: right;top: -46px;left: -10px;"></span>
|
||||||
</div>
|
</div>
|
||||||
<!-- confirm password -->
|
<!-- confirm password -->
|
||||||
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
|
<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::label('confirm_password', Lang::get('lang.confirm_password')) !!} <span class="text-red"> *</span>
|
||||||
{!! Form::password('confirm_password', ['class' => 'form-control']) !!}
|
{!! Form::password('confirm_password', ['class' => 'form-control']) !!}
|
||||||
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
|
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
|
||||||
<span class="glyphicon glyphicon-lock form-control-feedback" style="float: right;top: -46px;left: -10px;"></span>
|
<span class="glyphicon glyphicon-lock form-control-feedback"
|
||||||
|
style="float: right;top: -46px;left: -10px;"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
@@ -197,7 +211,8 @@ class="nav-link active"
|
|||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h4 class="modal-title">{{ Lang::get('lang.verify-number') }}</h4>
|
<h4 class="modal-title">{{ Lang::get('lang.verify-number') }}</h4>
|
||||||
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
<button type="button" class="close closemodal" data-dismiss="modal" aria-label="Close"><span
|
||||||
|
aria-hidden="true">×</span></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div id="custom-alert-body2">
|
<div id="custom-alert-body2">
|
||||||
@@ -206,11 +221,13 @@ class="nav-link active"
|
|||||||
<div id="loader2" style="display:none">
|
<div id="loader2" style="display:none">
|
||||||
<center><img src="{{ asset('lb-faveo/media/images/gifloader.gif') }}"></center>
|
<center><img src="{{ asset('lb-faveo/media/images/gifloader.gif') }}"></center>
|
||||||
</div>
|
</div>
|
||||||
<div id="verify-success" style="display:none" class="alert alert-success alert-dismissable">
|
<div id="verify-success" style="display:none"
|
||||||
|
class="alert alert-success alert-dismissable">
|
||||||
<i class="fa fa-check-circle"> </i>
|
<i class="fa fa-check-circle"> </i>
|
||||||
<span id = "success_message"></span>
|
<span id = "success_message"></span>
|
||||||
</div>
|
</div>
|
||||||
<div id="verify-fail" style="display:none" class="alert alert-danger alert-dismissable">
|
<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>
|
<i class="fa fa-ban"> </i> <b> {!! Lang::get('lang.alert') !!}! </b>
|
||||||
<span id = "error_message"></span>
|
<span id = "error_message"></span>
|
||||||
</div>
|
</div>
|
||||||
@@ -224,14 +241,21 @@ class="nav-link active"
|
|||||||
{{ Lang::get('lang.get-verify-message') }}
|
{{ Lang::get('lang.get-verify-message') }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
{!! Form::text('token','',['class' => 'form-control', 'required' => true, 'placeholder' => Lang::get('lang.enter-otp'), 'id' => 'otp']) !!}
|
{!! Form::text('token', '', [
|
||||||
|
'class' => 'form-control',
|
||||||
|
'required' => true,
|
||||||
|
'placeholder' => Lang::get('lang.enter-otp'),
|
||||||
|
'id' => 'otp',
|
||||||
|
]) !!}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer justify-content-between">
|
<div class="modal-footer justify-content-between">
|
||||||
<button type="button" id="close-last" class="btn btn-default closemodal">{{Lang::get('lang.close')}}</button>
|
<button type="button" id="close-last"
|
||||||
<div id="last-submit"><input type="submit" id="merge-btn" class="btn btn-primary" value="{!! Lang::get('lang.verify') !!}"></input></div>
|
class="btn btn-default closemodal">{{ Lang::get('lang.close') }}</button>
|
||||||
|
<div id="last-submit"><input type="submit" id="merge-btn" class="btn btn-primary"
|
||||||
|
value="{!! Lang::get('lang.verify') !!}"></input></div>
|
||||||
</div>
|
</div>
|
||||||
{!! Form::close() !!}
|
{!! Form::close() !!}
|
||||||
</div>
|
</div>
|
||||||
@@ -260,7 +284,7 @@ $('#agent-profile').on('submit', function(e){
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$('#last-modal').css('display', 'block');
|
$('#last-modal').css('display', 'block');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{URL::route("agent-verify-number")}}',
|
url: '{{ URL::route('agent-verify-number') }}',
|
||||||
type: 'post', // performing a POST request
|
type: 'post', // performing a POST request
|
||||||
data: {
|
data: {
|
||||||
mobile: mobile,
|
mobile: mobile,
|
||||||
@@ -282,7 +306,7 @@ $('#agent-profile').on('submit', function(e){
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
var otp = document.getElementById('otp').value;
|
var otp = document.getElementById('otp').value;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '{{URL::route("post-agent-verify-number")}}',
|
url: '{{ URL::route('post-agent-verify-number') }}',
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: {
|
data: {
|
||||||
otp: otp,
|
otp: otp,
|
||||||
@@ -291,29 +315,36 @@ $('#agent-profile').on('submit', function(e){
|
|||||||
dataType: 'html',
|
dataType: 'html',
|
||||||
beforeSend: function() {
|
beforeSend: function() {
|
||||||
$('#loader2').css('display', 'block');
|
$('#loader2').css('display', 'block');
|
||||||
$('#verify-number-form').css('display', 'none');
|
$('#verify-number-form').css('display',
|
||||||
|
'none');
|
||||||
$('#verify-fail').css('display', 'none');
|
$('#verify-fail').css('display', 'none');
|
||||||
$('verify-success').css('display', 'none');
|
$('verify-success').css('display', 'none');
|
||||||
},
|
},
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response == 1) {
|
if (response == 1) {
|
||||||
$('#loader2').css('display', 'none');
|
$('#loader2').css('display', 'none');
|
||||||
var message = "{{Lang::get('lang.number-verification-sussessfull')}}";
|
var message =
|
||||||
|
"{{ Lang::get('lang.number-verification-sussessfull') }}";
|
||||||
$('#success_message').html(message);
|
$('#success_message').html(message);
|
||||||
$('#verify-success').css('display', 'block');
|
$('#verify-success').css('display',
|
||||||
$('#agent-profile').unbind('submit').submit();
|
'block');
|
||||||
|
$('#agent-profile').unbind('submit')
|
||||||
|
.submit();
|
||||||
} else {
|
} else {
|
||||||
$('#loader2').css('display', 'none');
|
$('#loader2').css('display', 'none');
|
||||||
$("#error_message").html(response);
|
$("#error_message").html(response);
|
||||||
$('#verify-fail').css('display', 'block');
|
$('#verify-fail').css('display',
|
||||||
$('#verify-number-form').css('display', 'block');
|
'block');
|
||||||
|
$('#verify-number-form').css('display',
|
||||||
|
'block');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
complete: function(jqXHR, textStatus) {
|
complete: function(jqXHR, textStatus) {
|
||||||
if (textStatus === "parsererror" || textStatus === "timeout" || textStatus === "abort" || textStatus === "error") {
|
if (textStatus === "parsererror" || textStatus === "timeout" ||
|
||||||
|
textStatus === "abort" || textStatus === "error") {
|
||||||
var message = "{{ Lang::get('lang.otp-not-sent') }}";
|
var message = "{{ Lang::get('lang.otp-not-sent') }}";
|
||||||
$('#loader2').css('display', 'none');
|
$('#loader2').css('display', 'none');
|
||||||
$("#error_message").html(message);
|
$("#error_message").html(message);
|
||||||
|
Reference in New Issue
Block a user