Commit
This commit is contained in:
0
resources/views/auth/login.blade.php
Executable file → Normal file
0
resources/views/auth/login.blade.php
Executable file → Normal file
0
resources/views/themes/default1/admin/helpdesk/manage/sla/index.blade.php
Executable file → Normal file
0
resources/views/themes/default1/admin/helpdesk/manage/sla/index.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/report/index.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/report/index.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/ticket/answered.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/ticket/answered.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/ticket/assigned.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/helpdesk/ticket/assigned.blade.php
Executable file → Normal file
@@ -1,19 +1,19 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Tickets')
|
||||
class="nav-link active"
|
||||
class="nav-link active"
|
||||
@stop
|
||||
|
||||
@section('ticket-bar')
|
||||
active
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('newticket')
|
||||
class="nav-link active"
|
||||
class="nav-link active"
|
||||
@stop
|
||||
|
||||
@section('ticket')
|
||||
class="active"
|
||||
class="active"
|
||||
@stop
|
||||
<style>
|
||||
.clear-input {
|
||||
@@ -26,363 +26,409 @@ class="active"
|
||||
}
|
||||
</style>
|
||||
@section('PageHeader')
|
||||
<h1>{{Lang::get('lang.tickets')}}</h1>
|
||||
<h1>{{ Lang::get('lang.tickets') }}</h1>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route'=>'post.newticket','method'=>'post','id'=>'form']) !!}
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br/>
|
||||
@if($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('first_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('phone'))
|
||||
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('subject'))
|
||||
<li class="error-message-padding">{!! $errors->first('subject', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('body'))
|
||||
<li class="error-message-padding">{!! $errors->first('body', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('code'))
|
||||
<li class="error-message-padding">{!! $errors->first('code', ':message') !!}</li>
|
||||
@endif
|
||||
@if($errors->first('mobile'))
|
||||
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header" id='box-header1'>
|
||||
<h3 class="card-title">{!! Lang::get('lang.create_ticket') !!}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">{!! Lang::get('lang.user_details') !!}:</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}
|
||||
@if ($email_mandatory->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('email',null,['class' => 'form-control', 'id' => 'email']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email',Lang::get('lang.first_name')) !!} <span class="text-red"> *</span>
|
||||
<!-- {!! Form::text('email',null,['class' => 'form-control'],['id' => 'email']) !!} -->
|
||||
<input type="text" name="first_name" id="first_name" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- full name -->
|
||||
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('fullname',Lang::get('lang.last_name')) !!} <span class="text-red"></span>
|
||||
<input type="text" name="last_name" id="last_name" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
<div class="form-group {{ $errors->has('code') ? 'has-error' : '' }}">
|
||||
{!! Form::label('code',Lang::get('lang.country-code')) !!}
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('code',null,['class' => 'form-control', 'id' => 'country_code', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.mobile_number') !!}:</label>
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::input('number','mobile',null,['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.phone') !!}:</label>
|
||||
{!! Form::input('number','phone',null,['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! $errors->first('phone', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label>Ticket Notice:</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="checkbox" name="notice" id=""> Send alert to User
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Main content -->
|
||||
{!! Form::open(['route' => 'post.newticket', 'method' => 'post', 'id' => 'form']) !!}
|
||||
@if (Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{ Session::get('success') }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h3 class="card-title">{!! Lang::get('lang.ticket_option') !!}:</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- ticket options -->
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.help_topic') !!}:</label>
|
||||
<!-- helptopic -->
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->select('topic', 'id')->get(); ?>
|
||||
{!! Form::select('helptopic', ['Helptopic'=>$helptopic->pluck('topic','id')->toArray()],null,['class' => 'form-control select','id'=>'selectid']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- sla plan -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.sla_plan') !!}:</label>
|
||||
<?php $sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->select('grace_period', 'id')->get(); ?>
|
||||
{!! Form::select('sla', ['SLA'=>$sla_plan->pluck('grace_period','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- due date -->
|
||||
<div class="form-group" id="duedate">
|
||||
<label>{!! Lang::get('lang.due_date') !!}:</label>
|
||||
{!! Form::text('duedate',null,['class' => 'form-control','id'=>'datemask']) !!}
|
||||
<button class="btn clear-input" id="duedates" style="display: none" type="button"><i class="fas fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- assign to -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.assign_to') !!}:</label>
|
||||
<?php $agents = App\User::where('role', '!=', 'user')->where('active', '=', 1)->get(); ?>
|
||||
{!! Form::select('assignto', [''=>'Select an Agent','Agents'=>$agents->pluck('first_name','id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div id="response" class="col-md-6 form-group"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{{-- Event fire --}}
|
||||
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\ClientTicketForm()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if (Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{ Session::get('fails') }}
|
||||
</div>
|
||||
@endif
|
||||
@if (Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!}!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<br />
|
||||
@if ($errors->first('email'))
|
||||
<li class="error-message-padding">{!! $errors->first('email', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('first_name'))
|
||||
<li class="error-message-padding">{!! $errors->first('first_name', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('phone'))
|
||||
<li class="error-message-padding">{!! $errors->first('phone', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('subject'))
|
||||
<li class="error-message-padding">{!! $errors->first('subject', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('body'))
|
||||
<li class="error-message-padding">{!! $errors->first('body', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('code'))
|
||||
<li class="error-message-padding">{!! $errors->first('code', ':message') !!}</li>
|
||||
@endif
|
||||
@if ($errors->first('mobile'))
|
||||
<li class="error-message-padding">{!! $errors->first('mobile', ':message') !!}</li>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">{!! Lang::get('lang.ticket_detail') !!}:</h3>
|
||||
</div>
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-body">
|
||||
<!-- ticket details -->
|
||||
<div class="form-group">
|
||||
<!-- subject -->
|
||||
<div class="form-group {{ $errors->has('subject') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.subject') !!}:<span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
{!! Form::text('subject',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('body') ? 'has-error' : '' }}">
|
||||
<!-- details -->
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.detail') !!}:<span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
{!! Form::textarea('body',null,['class' => 'form-control','id' => 'body', 'style'=>"width:100%; height:150px;"]) !!}
|
||||
<div class="card-header" id='box-header1'>
|
||||
<h3 class="card-title">{!! Lang::get('lang.create_ticket') !!}</h3>
|
||||
</div><!-- /.box-header -->
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">{!! Lang::get('lang.user_details') !!}:</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- priority -->
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.priority') !!}:</label>
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email', Lang::get('lang.email')) !!}
|
||||
@if ($email_mandatory->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('email', null, ['class' => 'form-control', 'id' => 'email']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- email -->
|
||||
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('email', Lang::get('lang.first_name')) !!} <span class="text-red"> *</span>
|
||||
<!-- {!! Form::text('email', null, ['class' => 'form-control'], ['id' => 'email']) !!} -->
|
||||
<input type="text" name="first_name" id="first_name" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- full name -->
|
||||
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('fullname', Lang::get('lang.last_name')) !!} <span class="text-red"></span>
|
||||
<input type="text" name="last_name" id="last_name" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-1 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
<div class="form-group {{ $errors->has('code') ? 'has-error' : '' }}">
|
||||
{!! Form::label('code', Lang::get('lang.country-code')) !!}
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
|
||||
{!! Form::text('code', null, [
|
||||
'class' => 'form-control',
|
||||
'id' => 'country_code',
|
||||
'placeholder' => $phonecode,
|
||||
'title' => Lang::get('lang.enter-country-phone-code'),
|
||||
]) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?>
|
||||
{!! Form::select('priority', [Lang::get('lang.priorities')=>$Priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.mobile_number') !!}:</label>
|
||||
@if ($email_mandatory->status == 0 || $settings->status == 1)
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::input('number', 'mobile', null, ['class' => 'form-control', 'id' => 'mobile']) !!}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<!-- phone -->
|
||||
<div class="form-group {{ $errors->has('phone') ? 'has-error' : '' }}">
|
||||
<label>{!! Lang::get('lang.phone') !!}:</label>
|
||||
{!! Form::input('number', 'phone', null, ['class' => 'form-control', 'id' => 'phone_number']) !!}
|
||||
{!! $errors->first('phone', '<spam class="help-block text-red">:message</spam>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<div class="col-md-2">
|
||||
<label>Ticket Notice:</label>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<input type="checkbox" name="notice" id=""> Send alert to User
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input type="submit" value="{!! Lang::get('lang.create_ticket') !!}" class="btn btn-primary" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();">
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h3 class="card-title">{!! Lang::get('lang.ticket_option') !!}:</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- ticket options -->
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.help_topic') !!}:</label>
|
||||
<!-- helptopic -->
|
||||
<?php $helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->select('topic', 'id')->get(); ?>
|
||||
{!! Form::select('helptopic', ['Helptopic' => $helptopic->pluck('topic', 'id')->toArray()], null, [
|
||||
'class' => 'form-control select',
|
||||
'id' => 'selectid',
|
||||
]) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- sla plan -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.sla_plan') !!}:</label>
|
||||
<?php $sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('status', '=', 1)->select('grace_period', 'id')->get(); ?>
|
||||
{!! Form::select('sla', ['SLA' => $sla_plan->pluck('grace_period', 'id')->toArray()], null, [
|
||||
'class' => 'form-control select',
|
||||
]) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- due date -->
|
||||
<div class="form-group" id="duedate">
|
||||
<label>{!! Lang::get('lang.due_date') !!}:</label>
|
||||
{!! Form::text('duedate', null, ['class' => 'form-control', 'id' => 'datemask']) !!}
|
||||
<button class="btn clear-input" id="duedates" style="display: none" type="button"><i
|
||||
class="fas fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<!-- assign to -->
|
||||
<div class="form-group">
|
||||
<label>{!! Lang::get('lang.assign_to') !!}:</label>
|
||||
<?php $agents = App\User::where('role', '!=', 'user')->where('active', '=', 1)->get(); ?>
|
||||
{!! Form::select(
|
||||
'assignto',
|
||||
['' => 'Select an Agent', 'Agents' => $agents->pluck('first_name', 'id')->toArray()],
|
||||
null,
|
||||
['class' => 'form-control select'],
|
||||
) !!}
|
||||
</div>
|
||||
</div>
|
||||
<div id="response" class="col-md-6 form-group"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
{{-- Event fire --}}
|
||||
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\ClientTicketForm()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card card-light">
|
||||
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">{!! Lang::get('lang.ticket_detail') !!}:</h3>
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
<!-- ticket details -->
|
||||
<div class="form-group">
|
||||
<!-- subject -->
|
||||
<div class="form-group {{ $errors->has('subject') ? 'has-error' : '' }}">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.subject') !!}:<span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
{!! Form::text('subject', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-1">
|
||||
<label for="location">Vị trí:</label>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<select name="location" class="form-control">
|
||||
<option value="">-- Chọn vị trí --</option>
|
||||
@foreach ($locations as $loc)
|
||||
<option value="{{ $loc->id }}"
|
||||
{{ old('location') == $loc->id ? 'selected' : '' }}>
|
||||
{{ $loc->locationname }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group {{ $errors->has('body') ? 'has-error' : '' }}">
|
||||
<!-- details -->
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.detail') !!}:<span class="text-red"> *</span></label>
|
||||
</div>
|
||||
<div class="col-md-11">
|
||||
{!! Form::textarea('body', null, [
|
||||
'class' => 'form-control',
|
||||
'id' => 'body',
|
||||
'style' => 'width:100%; height:150px;',
|
||||
]) !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- priority -->
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.priority') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?>
|
||||
{!! Form::select(
|
||||
'priority',
|
||||
[Lang::get('lang.priorities') => $Priority->pluck('priority_desc', 'priority_id')->toArray()],
|
||||
null,
|
||||
['class' => 'form-control select'],
|
||||
) !!}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /. box -->
|
||||
{!! Form::close() !!}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
var helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
$("#selectid").on("change", function () {
|
||||
helpTopic = $("#selectid").val();
|
||||
|
||||
<div class="card-footer">
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<input type="submit" value="{!! Lang::get('lang.create_ticket') !!}" class="btn btn-primary"
|
||||
onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /. box -->
|
||||
{!! Form::close() !!}
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
$("#selectid").on("change", function() {
|
||||
helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
});
|
||||
|
||||
function send(helpTopic) {
|
||||
$.ajax({
|
||||
url: "{{ url('/get-helptopic-form') }}",
|
||||
data: {
|
||||
'helptopic': helpTopic
|
||||
},
|
||||
type: "GET",
|
||||
dataType: "html",
|
||||
success: function(response) {
|
||||
$("#response").html(response);
|
||||
},
|
||||
error: function(response) {
|
||||
$("#response").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
function send(helpTopic) {
|
||||
$.ajax({
|
||||
url: "{{url('/get-helptopic-form')}}",
|
||||
data: {'helptopic': helpTopic},
|
||||
type: "GET",
|
||||
dataType: "html",
|
||||
success: function (response) {
|
||||
$("#response").html(response);
|
||||
},
|
||||
error: function (response) {
|
||||
$("#response").html(response);
|
||||
$(function() {
|
||||
$("textarea").summernote({
|
||||
height: 300,
|
||||
tabsize: 2,
|
||||
toolbar: [
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough', 'superscript', 'subscript']],
|
||||
['fontsize', ['fontsize']],
|
||||
['color', ['color']],
|
||||
['para', ['ul', 'ol', 'paragraph']],
|
||||
['height', ['height']]
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#form').submit(function() {
|
||||
var duedate = document.getElementById('datemask').value;
|
||||
if (duedate) {
|
||||
var pattern = /^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/;
|
||||
if (pattern.test(duedate) === true) {
|
||||
$('#duedate').removeClass("has-error");
|
||||
$('#clear-up').remove();
|
||||
} else {
|
||||
$('#duedate').addClass("has-error");
|
||||
$('#clear-up').remove();
|
||||
$('#box-header1').append(
|
||||
"<div id='clear-up'><br><br><div class='alert alert-danger alert-dismissable'><i class='fa fa-ban'></i><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button> Invalid Due date</div></div>"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
$(function () {
|
||||
$("textarea").summernote({
|
||||
height: 300,
|
||||
tabsize: 2,
|
||||
toolbar: [
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough', 'superscript', 'subscript']],
|
||||
['fontsize', ['fontsize']],
|
||||
['color', ['color']],
|
||||
['para', ['ul', 'ol', 'paragraph']],
|
||||
['height', ['height']]
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#form').submit(function () {
|
||||
var duedate = document.getElementById('datemask').value;
|
||||
if (duedate) {
|
||||
var pattern = /^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/;
|
||||
if (pattern.test(duedate) === true) {
|
||||
$('#duedate').removeClass("has-error");
|
||||
$('#clear-up').remove();
|
||||
} else {
|
||||
$('#duedate').addClass("has-error");
|
||||
$('#clear-up').remove();
|
||||
$('#box-header1').append("<div id='clear-up'><br><br><div class='alert alert-danger alert-dismissable'><i class='fa fa-ban'></i><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>×</button> Invalid Due date</div></div>");
|
||||
return false;
|
||||
});
|
||||
$(document).ready(function() {
|
||||
$("#email").autocomplete({
|
||||
source: "{!! URL::route('post.newticket.autofill') !!}",
|
||||
minLength: 1,
|
||||
select: function(evt, ui) {
|
||||
// this.form.phone_number.value = ui.item.phone_number;
|
||||
// this.form.user_name.value = ui.item.user_name;
|
||||
if (ui.item.first_name) {
|
||||
this.form.first_name.value = ui.item.first_name;
|
||||
}
|
||||
if (ui.item.last_name) {
|
||||
this.form.last_name.value = ui.item.last_name;
|
||||
}
|
||||
if (ui.item.country_code) {
|
||||
this.form.country_code.value = ui.item.country_code;
|
||||
}
|
||||
if (ui.item.phone_number) {
|
||||
this.form.phone_number.value = ui.item.phone_number;
|
||||
}
|
||||
if (ui.item.mobile) {
|
||||
this.form.mobile.value = ui.item.mobile;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$("#email").autocomplete({
|
||||
source:"{!!URL::route('post.newticket.autofill')!!}",
|
||||
minLength:1,
|
||||
select:function(evt, ui) {
|
||||
// this.form.phone_number.value = ui.item.phone_number;
|
||||
// this.form.user_name.value = ui.item.user_name;
|
||||
if(ui.item.first_name) {
|
||||
this.form.first_name.value = ui.item.first_name;
|
||||
}
|
||||
if(ui.item.last_name) {
|
||||
this.form.last_name.value = ui.item.last_name;
|
||||
}
|
||||
if(ui.item.country_code) {
|
||||
this.form.country_code.value = ui.item.country_code;
|
||||
}
|
||||
if(ui.item.phone_number) {
|
||||
this.form.phone_number.value = ui.item.phone_number;
|
||||
}
|
||||
if(ui.item.mobile) {
|
||||
this.form.mobile.value = ui.item.mobile;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(function () {
|
||||
var picker = $('#datemask').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
});
|
||||
picker.on('dp.change', function(e) {
|
||||
if (e.date) {
|
||||
$('.clear-input').show();
|
||||
} else {
|
||||
$(function() {
|
||||
var picker = $('#datemask').datetimepicker({
|
||||
format: 'DD/MM/YYYY',
|
||||
});
|
||||
picker.on('dp.change', function(e) {
|
||||
if (e.date) {
|
||||
$('.clear-input').show();
|
||||
} else {
|
||||
$('.clear-input').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('.clear-input').click(function() {
|
||||
$('#datemask').val('');
|
||||
$('.clear-input').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('.clear-input').click(function() {
|
||||
$('#datemask').val('');
|
||||
$('.clear-input').hide();
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
|
||||
|
3670
resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php
Executable file → Normal file
3670
resources/views/themes/default1/agent/helpdesk/ticket/timeline.blade.php
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
@@ -33,7 +33,7 @@ class="nav-link active"
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
gfggggdgd
|
||||
@if(Session::has('errors'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
|
@@ -101,17 +101,17 @@ class="nav-link active"
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<!-- email address -->
|
||||
{!! Form::label('email',Lang::get('lang.email_address')) !!}
|
||||
<div>
|
||||
{{$user->email}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
|
||||
<!-- company -->
|
||||
{!! Form::label('company',Lang::get('lang.company')) !!}
|
||||
{!! Form::text('company',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<label for="dept_id">Phòng ban</label>
|
||||
<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 }}"
|
||||
{{ $user->dept_id == $department->id ? 'selected' : '' }}>
|
||||
{{ $department->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<!-- phone extension -->
|
||||
<div class="col-sm-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
|
@@ -94,6 +94,12 @@ class="active"
|
||||
<div class="form-group row">
|
||||
<div class='col-sm-4'><label>{!! Lang::get('lang.company') !!}:</label></div> <div class='col-sm-7'> {{ $user->company }}</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class='col-sm-4'><label>{!! Lang::get('lang.department') !!}:</label></div>
|
||||
<div class='col-sm-7'>
|
||||
{{ $user->department ? $user->department->name : '-' }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class='col-sm-4'><label>{!! Lang::get('lang.role') !!}:</label></div> <div class='col-sm-7'> {{ $user->role }}</div>
|
||||
</div>
|
||||
|
0
resources/views/themes/default1/agent/layout/agent.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/layout/agent.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/layout/agentold.blade.php
Executable file → Normal file
0
resources/views/themes/default1/agent/layout/agentold.blade.php
Executable file → Normal file
1247
resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php
Executable file → Normal file
1247
resources/views/themes/default1/client/helpdesk/ckeckticket.blade.php
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
365
resources/views/themes/default1/client/helpdesk/form.blade.php
Executable file → Normal file
365
resources/views/themes/default1/client/helpdesk/form.blade.php
Executable file → Normal file
@@ -1,63 +1,65 @@
|
||||
@extends('themes.default1.client.layout.client')
|
||||
|
||||
@section('title')
|
||||
{!! Lang::get('lang.submit_a_ticket') !!} -
|
||||
{!! Lang::get('lang.submit_a_ticket') !!} -
|
||||
@stop
|
||||
|
||||
@section('submit')
|
||||
class = "nav-item active"
|
||||
class = "nav-item active"
|
||||
@stop
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumb')
|
||||
{{--<div class="site-hero clearfix">--}}
|
||||
{{-- <div class="site-hero clearfix"> --}}
|
||||
<ol class="breadcrumb float-sm-right ">
|
||||
<style>
|
||||
.words {
|
||||
margin-right: 10px; /* Adjust the value to increase or decrease the gap between list items */
|
||||
margin-right: 10px;
|
||||
/* Adjust the value to increase or decrease the gap between list items */
|
||||
}
|
||||
</style>
|
||||
<li class="breadcrumb-item"> <i class="fas fa-home"> </i> {!! Lang::get('lang.you_are_here') !!} : </li>
|
||||
<li><a class="words" href="{{url('/')}}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li><a class="words" href="{{ url('/') }}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li class="words" style="margin-right: 10px">></li>
|
||||
|
||||
<li><a href="{!! URL::route('form') !!}">{!! Lang::get('lang.submit_a_ticket') !!}</a></li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
@section('check')
|
||||
|
||||
|
||||
<div id="sidebar" class="site-sidebar col-md-3">
|
||||
|
||||
<div id="form-border" class="comment-respond form-border" style="background : #fff">
|
||||
|
||||
<section id="section-categories" class="section">
|
||||
|
||||
|
||||
<h2 class="section-title h4 clearfix">
|
||||
|
||||
<i class="line"></i>{!! Lang::get('lang.have_a_ticket') !!}?
|
||||
</h2>
|
||||
|
||||
@if(Session::has('check'))
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@if (Session::has('check'))
|
||||
@if (count($errors) > 0)
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<div>
|
||||
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
|
||||
{!! Form::label('email',Lang::get('lang.email')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('email_address',null,['class' => 'form-control form-group']) !!}
|
||||
{!! Form::label('ticket_number',Lang::get('lang.ticket_number')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('ticket_number',null,['class' => 'form-control form-group']) !!}
|
||||
<button type="submit" class="btn btn-info" style=" border-color: rgb(0, 192, 239); background-color: rgb(0, 154, 186) !important; color: white">
|
||||
{!! Form::open(['url' => 'checkmyticket', 'method' => 'POST']) !!}
|
||||
{!! Form::label('email', Lang::get('lang.email')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('email_address', null, ['class' => 'form-control form-group']) !!}
|
||||
{!! Form::label('ticket_number', Lang::get('lang.ticket_number')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('ticket_number', null, ['class' => 'form-control form-group']) !!}
|
||||
<button type="submit" class="btn btn-info"
|
||||
style=" border-color: rgb(0, 192, 239); background-color: rgb(0, 154, 186) !important; color: white">
|
||||
<i class="fas fa-save"></i> {!! Lang::get('lang.check_ticket_status') !!}
|
||||
</button>
|
||||
{!! Form::close() !!}
|
||||
@@ -71,38 +73,38 @@ class = "nav-item active"
|
||||
|
||||
<div id="content" class="site-content col-md-9">
|
||||
|
||||
@if(Session::has('message'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('message') !!}
|
||||
</div>
|
||||
@if (Session::has('message'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fas fa-check-circle"></i>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{!! Session::get('message') !!}
|
||||
</div>
|
||||
@endif
|
||||
@if (count($errors) > 0)
|
||||
@if(Session::has('check'))
|
||||
<?php goto a; ?>
|
||||
@endif
|
||||
@if(!Session::has('error'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<?php a: ?>
|
||||
@if (Session::has('check'))
|
||||
<?php goto a; ?>
|
||||
@endif
|
||||
@if (!Session::has('error'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fas fa-ban"></i>
|
||||
<b>{!! Lang::get('lang.alert') !!} !</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
<?php a: ?>
|
||||
@endif
|
||||
|
||||
<?php
|
||||
$encrypter = app('Illuminate\Encryption\Encrypter');
|
||||
$encrypted_token = $encrypter->encrypt(csrf_token());
|
||||
?>
|
||||
<input id="token" type="hidden" value="{{$encrypted_token}}">
|
||||
{!! Form::open(['route'=>'client.form.post','method'=>'post', 'enctype'=>'multipart/form-data']) !!}
|
||||
<input id="token" type="hidden" value="{{ $encrypted_token }}">
|
||||
{!! Form::open(['route' => 'client.form.post', 'method' => 'post', 'enctype' => 'multipart/form-data']) !!}
|
||||
|
||||
<article class="hentry">
|
||||
|
||||
@@ -117,169 +119,196 @@ class = "nav-item active"
|
||||
|
||||
<div class="row mt-4">
|
||||
|
||||
@if(Auth::user())
|
||||
|
||||
{!! Form::hidden('Name',Auth::user()->user_name,['class' => 'form-control']) !!}
|
||||
|
||||
@if (Auth::user())
|
||||
{!! Form::hidden('Name', Auth::user()->user_name, ['class' => 'form-control']) !!}
|
||||
@else
|
||||
|
||||
<div class="col-md-12 form-group {{ $errors->has('Name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Name',Lang::get('lang.name')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('Name',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-12 form-group {{ $errors->has('Name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Name', Lang::get('lang.name')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('Name', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Auth::user())
|
||||
|
||||
{!! Form::hidden('Email',Auth::user()->email,['class' => 'form-control']) !!}
|
||||
@if (Auth::user())
|
||||
|
||||
{!! Form::hidden('Email', Auth::user()->email, ['class' => 'form-control']) !!}
|
||||
@else
|
||||
<div class="col-md-12 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-md-12 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>
|
||||
@endif
|
||||
|
||||
@if(!Auth::user())
|
||||
@if (!Auth::user())
|
||||
|
||||
<div class="col-md-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Code',Lang::get('lang.country-code')) !!}
|
||||
@if($email_mandatory->status == 0 || $email_mandatory->status == '0')
|
||||
<div class="col-md-2 form-group {{ Session::has('country_code_error') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Code', Lang::get('lang.country-code')) !!}
|
||||
@if ($email_mandatory->status == 0 || $email_mandatory->status == '0')
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{!! Form::text('Code',null,['class' => 'form-control', 'placeholder' => $phonecode, 'title' => Lang::get('lang.enter-country-phone-code')]) !!}
|
||||
</div>
|
||||
<div class="col-md-5 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
|
||||
@if($email_mandatory->status == 0 || $email_mandatory->status == '0')
|
||||
{!! Form::text('Code', null, [
|
||||
'class' => 'form-control',
|
||||
'placeholder' => $phonecode,
|
||||
'title' => Lang::get('lang.enter-country-phone-code'),
|
||||
]) !!}
|
||||
</div>
|
||||
<div class="col-md-5 form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
|
||||
{!! Form::label('mobile', Lang::get('lang.mobile_number')) !!}
|
||||
@if ($email_mandatory->status == 0 || $email_mandatory->status == '0')
|
||||
<span class="text-red"> *</span>
|
||||
@endif
|
||||
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-5 form-group {{ $errors->has('Phone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Phone',Lang::get('lang.phone')) !!}
|
||||
{!! Form::text('Phone',null,['class' => 'form-control']) !!}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::text('mobile', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-5 form-group {{ $errors->has('Phone') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Phone', Lang::get('lang.phone')) !!}
|
||||
{!! Form::text('Phone', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
@else
|
||||
{!! Form::hidden('mobile',Auth::user()->mobile,['class' => 'form-control']) !!}
|
||||
{!! Form::hidden('Code',Auth::user()->country_code,['class' => 'form-control']) !!}
|
||||
{!! Form::hidden('Phone',Auth::user()->phone_number,['class' => 'form-control']) !!}
|
||||
{!! Form::hidden('mobile', Auth::user()->mobile, ['class' => 'form-control']) !!}
|
||||
{!! Form::hidden('Code', Auth::user()->country_code, ['class' => 'form-control']) !!}
|
||||
{!! Form::hidden('Phone', Auth::user()->phone_number, ['class' => 'form-control']) !!}
|
||||
|
||||
@endif
|
||||
@endif
|
||||
<div class="col-md-12 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
|
||||
{!! Form::label('help_topic', Lang::get('lang.choose_a_help_topic')) !!}
|
||||
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
|
||||
<?php
|
||||
$forms = App\Model\helpdesk\Form\Forms::get();
|
||||
$helptopic = App\Model\helpdesk\Manage\Help_topic::where('status', '=', 1)->get();
|
||||
// ?><!---->
|
||||
//
|
||||
?><!---->
|
||||
<select name="helptopic" class="form-control" id="selectid">
|
||||
|
||||
@foreach($helptopic as $topic)
|
||||
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
|
||||
@foreach ($helptopic as $topic)
|
||||
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<!-- priority -->
|
||||
<?php
|
||||
$Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name','=', 'user_priority')->first();
|
||||
$user_Priority=$Priority->status;
|
||||
<?php
|
||||
$Priority = App\Model\helpdesk\Settings\CommonSettings::select('status')->where('option_name', '=', 'user_priority')->first();
|
||||
$user_Priority = $Priority->status;
|
||||
?>
|
||||
|
||||
@if(Auth::user())
|
||||
@if (Auth::user())
|
||||
|
||||
@if(Auth::user()->active == 1)
|
||||
@if($user_Priority == 1)
|
||||
|
||||
<div class="col-md-12 form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.priority') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status','=',1)->get(); ?>
|
||||
{!! Form::select('priority', ['Priority'=>$Priority->pluck('priority_desc','priority_id')->toArray()],null,['class' => 'form-control select']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@if (Auth::user()->active == 1)
|
||||
@if ($user_Priority == 1)
|
||||
<div class="col-md-12 form-group">
|
||||
<div class="row">
|
||||
<div class="col-md-1">
|
||||
<label>{!! Lang::get('lang.priority') !!}:</label>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<?php $Priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('status', '=', 1)->get(); ?>
|
||||
{!! Form::select('priority', ['Priority' => $Priority->pluck('priority_desc', 'priority_id')->toArray()], null, [
|
||||
'class' => 'form-control select',
|
||||
]) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@endif
|
||||
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Subject',Lang::get('lang.subject')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('Subject',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('Subject', Lang::get('lang.subject')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::text('Subject', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="col-md-2">
|
||||
<label for="location">Vị trí:</label>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<select name="location" class="form-control">
|
||||
<option value="">-- Chọn vị trí --</option>
|
||||
@foreach ($locations as $loc)
|
||||
<option value="{{ $loc->id }}"
|
||||
{{ old('location') == $loc->id ? 'selected' : '' }}>
|
||||
{{ $loc->locationname }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12 form-group {{ $errors->has('Details') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Details',Lang::get('lang.message')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::textarea('Details',null,['class' => 'form-control']) !!}
|
||||
{!! Form::label('Details', Lang::get('lang.message')) !!}<span class="text-red"> *</span>
|
||||
{!! Form::textarea('Details', null, ['class' => 'form-control']) !!}
|
||||
</div>
|
||||
<div class="col-md-12 form-group">
|
||||
<input type="file" name="attachment[]" multiple/><br/>
|
||||
<input type="file" name="attachment[]" multiple /><br />
|
||||
{!! Lang::get('lang.max') !!}. {!! $max_size_in_actual !!}
|
||||
</div>
|
||||
{{-- Event fire --}}
|
||||
<?php \Illuminate\Support\Facades\Event::dispatch(new App\Events\ClientTicketForm()); ?>
|
||||
<div class="col-md-12" id="response"> </div>
|
||||
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
|
||||
<div class="col-md-12 form-group">
|
||||
{!! Form::button('<i class="fas fa-save"></i> ' . Lang::get('lang.submit'), ['type'=>'submit', 'class'=>'btn btn-info float-right', 'style'=>'style="border-color: rgb(0, 192, 239); background-color: rgb(0, 154, 186); color: white;', 'onclick' => 'this.disabled=true;this.innerHTML="Sending, please wait...";this.form.submit();', 'data-v-fce8d630']) !!}
|
||||
</div>
|
||||
<div class="col-md-12" id="response"> </div>
|
||||
<div class="col-md-12 form-group">
|
||||
{!! Form::button('<i class="fas fa-save"></i> ' . Lang::get('lang.submit'), [
|
||||
'type' => 'submit',
|
||||
'class' => 'btn btn-info float-right',
|
||||
'style' => 'style="border-color: rgb(0, 192, 239); background-color: rgb(0, 154, 186); color: white;',
|
||||
'onclick' => 'this.disabled=true;this.innerHTML="Sending, please wait...";this.form.submit();',
|
||||
'data-v-fce8d630',
|
||||
]) !!}
|
||||
</div>
|
||||
<div class="col-md-12" id="response"> </div>
|
||||
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
|
||||
|
||||
{!! Form::close() !!}
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
<!--
|
||||
|====================================================
|
||||
| SELECTED FORM STORED IN SCRIPT
|
||||
|====================================================
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
var helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
$("#selectid").on("change",function(){
|
||||
helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
});
|
||||
function send(helpTopic){
|
||||
$.ajax({
|
||||
url:"{{url('/get-helptopic-form')}}",
|
||||
data:{'helptopic':helpTopic},
|
||||
type:"GET",
|
||||
dataType:"html",
|
||||
success:function(response){
|
||||
$("#response").html(response);
|
||||
},
|
||||
error:function(response){
|
||||
$("#response").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
<!--
|
||||
|====================================================
|
||||
| SELECTED FORM STORED IN SCRIPT
|
||||
|====================================================
|
||||
-->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
$("#selectid").on("change", function() {
|
||||
helpTopic = $("#selectid").val();
|
||||
send(helpTopic);
|
||||
});
|
||||
|
||||
$(function() {
|
||||
//Add text editor
|
||||
$("textarea").summernote({
|
||||
height: 300,
|
||||
tabsize: 2,
|
||||
toolbar: [
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough', 'superscript', 'subscript']],
|
||||
['fontsize', ['fontsize']],
|
||||
['color', ['color']],
|
||||
['para', ['ul', 'ol', 'paragraph']],
|
||||
['height', ['height']]
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
function send(helpTopic) {
|
||||
$.ajax({
|
||||
url: "{{ url('/get-helptopic-form') }}",
|
||||
data: {
|
||||
'helptopic': helpTopic
|
||||
},
|
||||
type: "GET",
|
||||
dataType: "html",
|
||||
success: function(response) {
|
||||
$("#response").html(response);
|
||||
},
|
||||
error: function(response) {
|
||||
$("#response").html(response);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$(function() {
|
||||
//Add text editor
|
||||
$("textarea").summernote({
|
||||
height: 300,
|
||||
tabsize: 2,
|
||||
toolbar: [
|
||||
['style', ['bold', 'italic', 'underline', 'clear']],
|
||||
['font', ['strikethrough', 'superscript', 'subscript']],
|
||||
['fontsize', ['fontsize']],
|
||||
['color', ['color']],
|
||||
['para', ['ul', 'ol', 'paragraph']],
|
||||
['height', ['height']]
|
||||
]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
|
0
resources/views/themes/default1/client/helpdesk/guest-user/checkticket.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/guest-user/checkticket.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/guest-user/checkticket2.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/guest-user/checkticket2.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/guest-user/view_ticket.blade.php
Executable file → Normal file
2132
resources/views/themes/default1/client/helpdesk/ticket.blade.php
Executable file → Normal file
2132
resources/views/themes/default1/client/helpdesk/ticket.blade.php
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
0
resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/helpdesk/unauth/showticket.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/kb/article-list/articles.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/kb/article-list/articles.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/kb/article-list/home.blade.php
Executable file → Normal file
0
resources/views/themes/default1/client/kb/article-list/home.blade.php
Executable file → Normal file
0
resources/views/vendor/Chumper/tickets-javascript.blade.php
vendored
Executable file → Normal file
0
resources/views/vendor/Chumper/tickets-javascript.blade.php
vendored
Executable file → Normal file
Reference in New Issue
Block a user