Merge remote-tracking branch 'origin/Sada_Faveo'
This commit is contained in:
@@ -21,7 +21,9 @@ return array(
|
||||
'success' => 'Success',
|
||||
'fails' => 'Fails',
|
||||
'alert' => 'Alert',
|
||||
|
||||
'ratings' => 'Ratings',
|
||||
'please_rate' => 'Please rate:',
|
||||
'ticket_ratings' => 'TICKET RATING',
|
||||
/*
|
||||
|--------------------------------------
|
||||
| Login Page
|
||||
|
@@ -1,154 +1,141 @@
|
||||
<?php
|
||||
|
||||
$date = Date('d-m-Y');
|
||||
$format = 'Y-m-d';
|
||||
$day1 = Date($format,strtotime('-1 day'. $date));
|
||||
|
||||
$depts = App\Model\helpdesk\Agent\Department::all();
|
||||
foreach ($depts as $dept) {
|
||||
// echo $dept->name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
$i = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br/><br/>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br><br>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// echo "created=".$created."<br/>";
|
||||
// echo "closed=".$closed."<br/>";
|
||||
// echo "inprogress=".$inprogress."<br/>";
|
||||
// echo "overdue=".$i."<br/>";
|
||||
// echo "created=".$created."<br>";
|
||||
// echo "closed=".$closed."<br>";
|
||||
// echo "inprogress=".$inprogress."<br>";
|
||||
// echo "overdue=".$i."<br>";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>SmoothDeal</title>
|
||||
</head>
|
||||
|
||||
<body style="background-color: #666">
|
||||
|
||||
<!-- Start Container -->
|
||||
<table align="center" width="600" border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
<tr>
|
||||
<td style="padding: " colspan="2" bgcolor="#FFFFFF">
|
||||
<!-- Start Main Text (introduction) -->
|
||||
<!-- Main Title -->
|
||||
<p style="padding: 15px 30px 20px 50px; margin: 0; font-size: 24px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: center;">
|
||||
|
||||
SmoothDeal
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span>
|
||||
|
||||
<span><span>
|
||||
<span>
|
||||
|
||||
|
||||
<p>
|
||||
{!! $company !!}
|
||||
</p>
|
||||
<!-- Main Text -->
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: center;">
|
||||
|
||||
<p>
|
||||
<strong> Daily Report</strong>
|
||||
</p>
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 12px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px;">
|
||||
<p>
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
<span>
|
||||
<span>
|
||||
|
||||
<!-- Start - Quick overview table -->
|
||||
|
||||
<!-- Quick overview table title -->
|
||||
<p style="padding: 25px 0px 20px 0px; margin: 0; font-size: 18px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: center;">
|
||||
|
||||
|
||||
<p>
|
||||
Overview
|
||||
</p>
|
||||
|
||||
@foreach ($depts as $dept)
|
||||
<?php
|
||||
// echo $dept->name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
$i = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br/><br/>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br><br>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// echo "created=".$created."<br/>";
|
||||
// echo "closed=".$closed."<br/>";
|
||||
// echo "inprogress=".$inprogress."<br/>";
|
||||
// echo "overdue=".$i."<br/>";
|
||||
?>
|
||||
<!-- Overview Table -->
|
||||
<table align="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #333;" width="500" border="0" cellspacing="0" cellpadding="10">
|
||||
<tr >
|
||||
<td align="center" bgcolor="#FFF2D9" colspan="2" style="border: 1px solid #F1DDDD; ">
|
||||
<span style="font-size: 18px; color: #158CCA;"><strong>{!! $dept->name !!}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
// echo "created=".$created."<br>";
|
||||
// echo "closed=".$closed."<br>";
|
||||
// echo "inprogress=".$inprogress."<br>";
|
||||
// echo "overdue=".$i."<br>";
|
||||
?>
|
||||
|
||||
<span>
|
||||
<span><span>
|
||||
<span>
|
||||
<strong>{!! $dept->name !!}</strong>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>New tickets</strong></td>
|
||||
<td align="center"><strong>{!! $created !!}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Closed tickets</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>{!! $closed !!}</strong></td>
|
||||
</tr>
|
||||
<span>
|
||||
<strong>New tickets</strong>
|
||||
<strong>{!! $created !!}</strong>
|
||||
</span>
|
||||
<span>
|
||||
<strong>Closed tickets</strong>
|
||||
<strong>{!! $closed !!}</strong>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Inprogress tickets</strong></td>
|
||||
<td align="center"><strong>{!! $inprogress !!}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Overdue tickets</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>{!! $i !!}</strong></td>
|
||||
</tr>
|
||||
<span>
|
||||
<strong>Inprogress tickets</strong>
|
||||
<strong>{!! $inprogress !!}</strong>
|
||||
</span>
|
||||
<span>
|
||||
<strong>Overdue tickets</strong>
|
||||
<strong>{!! $i !!}</strong>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
|
||||
|
||||
</span></span>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="padding: " colspan="2" bgcolor="#FFFFFF">
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 11px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px;">
|
||||
We should all work hard to guarantee that all tickets are being addressed in a timely manner.
|
||||
</span></span><span>
|
||||
<span>
|
||||
<p>
|
||||
We should all work hard to guarantee that all tickets are being addressed in a timely manner.
|
||||
|
||||
</p>
|
||||
|
||||
<p style="padding: 15px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: left;">
|
||||
Thank You,<br/> Kind Regards,<br/>{!! $company !!}
|
||||
<p>
|
||||
Thank You,<br> Kind Regards,<br>{!! $company !!}
|
||||
</p>
|
||||
|
||||
<!-- Main Text -->
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: center; color: #3AB4FF;">
|
||||
|
||||
<p>
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</span></span>
|
14
resources/views/emails/random/Admin_mail.blade.php
Normal file
14
resources/views/emails/random/Admin_mail.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello {!! $agent !!},<br><br>
|
||||
New ticket {!! $ticket_number !!} created<br>
|
||||
<br>
|
||||
From
|
||||
Name :- {!! $name !!}<br>
|
||||
E-mail :- {!! $email !!}<br>
|
||||
<br>
|
||||
|
||||
<h4>{!! $content !!}</h4>
|
||||
|
||||
|
||||
<br>
|
||||
Kind Regard,<br>
|
||||
{!! $from !!}
|
25
resources/views/emails/random/Ticket_Create.blade.php
Normal file
25
resources/views/emails/random/Ticket_Create.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
---Reply above this line---<br/><br/>
|
||||
|
||||
<?php
|
||||
if(isset($content)) {
|
||||
?>
|
||||
|
||||
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}<br/><br/>{!! $sign !!}</h4>
|
||||
You can check the status of or update this ticket online at: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/><br/>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
|
||||
Hello {!!$name!!} <br/><br/>
|
||||
Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br/><br/>
|
||||
Ticket ID: <b>{!!$ticket_number!!}</b><br/>
|
||||
{{-- Subject: <b>Ticket Subject</b><br/> --}}
|
||||
{{-- Department: <b>Support</b><br/> --}}
|
||||
{{-- Status: <b>Open</b><br/> --}}
|
||||
{{-- Priority: <b>Normal</b><br/><br/> --}}
|
||||
{!! $sign !!}
|
||||
You can check the status of or update this ticket online at: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/><br/>
|
||||
<?php
|
||||
}
|
||||
?>
|
4
resources/views/emails/random/Ticket_Reply.blade.php
Normal file
4
resources/views/emails/random/Ticket_Reply.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
---Reply above this line---<br/><br/><br/>
|
||||
|
||||
Hello {{$name}} <br/><br/>
|
||||
Your ticket have been created please visit this link for your ticket query.<br/><br/>
|
9
resources/views/emails/random/Ticket_assign.blade.php
Normal file
9
resources/views/emails/random/Ticket_assign.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
Hello {!! $agent !!},<br/><br/>
|
||||
Ticket No: {!! $ticket_number !!} <br/>
|
||||
|
||||
Has been assigned to you by {!! $master !!}<br/>
|
||||
|
||||
<br/>
|
||||
Thank You<br/><br/>
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
9
resources/views/emails/random/check_ticket.blade.php
Normal file
9
resources/views/emails/random/check_ticket.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
Hello {!! $user !!},<br/><br/>
|
||||
|
||||
|
||||
Click the link below to view your Requested ticket <br/><br/>
|
||||
<a href="{!! $link !!}">{!! $link !!}</a><br/><br/>
|
||||
|
||||
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
7
resources/views/emails/random/close_ticket.blade.php
Normal file
7
resources/views/emails/random/close_ticket.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
Hello,<br/><br/>
|
||||
This message is regarding your ticket ID {{ $ticket_number }}. We are changing the status of this ticket to 'Closed' as the issue appears to be resolved.<br/>
|
||||
<br/>
|
||||
Thank you<br/>
|
||||
<br/>
|
||||
Kind regards,<br/>
|
||||
{!! $from !!}
|
13
resources/views/emails/random/email_reply.blade.php
Normal file
13
resources/views/emails/random/email_reply.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
Hello {!! $agent !!},<br/><br/>
|
||||
A reply been made to ticket {!! $ticket_number !!} <br/>
|
||||
<br/>
|
||||
From
|
||||
Name: {!! $name !!}<br/>
|
||||
E-mail: {!! $email !!}<br/>
|
||||
<br/>
|
||||
|
||||
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}</h4>
|
||||
<br/>
|
||||
<br/>
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
14
resources/views/emails/random/pass.blade.php
Normal file
14
resources/views/emails/random/pass.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello {!! $name !!}, <br/><br/>
|
||||
|
||||
This email is confirmation that you are now registered at our helpdesk. <br/> <br/>
|
||||
|
||||
Registered Email: {!! $emailadd !!} <br/>
|
||||
Password: {{$password}} <br/> <br/>
|
||||
|
||||
You can visit the helpdesk to browse articles and contact us at any time: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/> <br/>
|
||||
|
||||
Thank You.<br/><br/>
|
||||
|
||||
Kind Regards,<br/><br/>
|
||||
|
||||
{!! $from !!}
|
1
resources/views/emails/random/password.blade (2).php
Normal file
1
resources/views/emails/random/password.blade (2).php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {!! url('password/reset/'.$token) !!}
|
14
resources/views/emails/random/password.blade.php
Normal file
14
resources/views/emails/random/password.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello <br/><br/>
|
||||
|
||||
You asked to reset your password. To do so, please click this link:<br/><br/>
|
||||
|
||||
<a href="{!! url('password/reset/'.$token) !!}">{!! url('password/reset/'.$token) !!}</a><br/><br/>
|
||||
|
||||
<br/>
|
||||
This will let you change your password to something new. If you didn't ask for this, don't worry, we'll keep your password safe.<br/><br/>
|
||||
|
||||
Thank You.<br/>
|
||||
<br/>
|
||||
Kind Regards,<br/><br/>
|
||||
<?php $company = App\Model\helpdesk\Settings\Company::where('id','=','1')->first(); $company = $company->company_name; ?>
|
||||
{!! $company !!}
|
1
resources/views/emails/random/report.blade.php
Normal file
1
resources/views/emails/random/report.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
<pre>{{$e}}</pre>
|
11
resources/views/emails/random/ticket_re-reply.blade.php
Normal file
11
resources/views/emails/random/ticket_re-reply.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
---Reply above this line---<br/><br/>
|
||||
|
||||
{!! $content !!}<br/>
|
||||
<?php
|
||||
if($Agent_Signature != null) {
|
||||
?>
|
||||
{!! $Agent_Signature !!}<br/>
|
||||
<?php } ?>
|
||||
|
||||
Ticket Details<br/>
|
||||
Ticket ID: {!! $ticket_number !!}<br/>
|
@@ -0,0 +1,123 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<!-- <h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="{{route('template.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_template')}}</a>-->
|
||||
<button class="btn btn-primary pull-right" data-toggle="modal" data-target="#createtemp">{{Lang::get('lang.create_template')}}</button>
|
||||
|
||||
<div class="modal fade" id="createtemp">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['route'=>'template.createnew']) !!}
|
||||
<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">{{Lang::get('lang.create_template')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('folder_name', 'Folder Name:',['style'=>'display: block']) !!}
|
||||
|
||||
|
||||
|
||||
{!! Form::text('folder_name',null,['class'=>'form-control'])!!}
|
||||
|
||||
{!! $errors->first('folder', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Create Folder',['class'=>'btn btn-primary'])!!}
|
||||
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div></div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<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="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.name')}}</th>
|
||||
|
||||
</tr>
|
||||
<!-- Foreach @var templates as @var template -->
|
||||
|
||||
@foreach($templates as $template)
|
||||
<?php if ($template === '.' or $template === '..') continue; ?>
|
||||
<tr>
|
||||
<!-- Template Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('template.read',[$template,$directory])}}">{!! $template !!}</a></td>
|
||||
<!-- template Status : if status==1 active -->
|
||||
<!-- Deleting Fields -->
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -0,0 +1,105 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="modal" class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal3">Edit Template</a></div>
|
||||
|
||||
<div class="modal modal-primary" id="modal3">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content" style="width:90%">
|
||||
{!! Form::model($contents,['route'=>['template.write', $template,$path],'method'=>'PATCH','files' => true]) !!}
|
||||
<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">Edit</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
<div class="form-group">
|
||||
{!! Form::textarea('templatedata',$contents,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-outline">Save changes</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<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="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body" style="background-color: #f3f3f3; height: 410px;">
|
||||
|
||||
{!! nl2br($contents) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -131,6 +131,17 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('list-templates') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.templates') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
|
@@ -0,0 +1,171 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Settings')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('settings-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('system')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h4 class="box-title">{{Lang::get('lang.ratings')}}</h4>
|
||||
</div>
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<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="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body">
|
||||
<table id="example1" class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
|
||||
<th>Title</th>
|
||||
|
||||
<th>Action</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($ratings as $rating)
|
||||
|
||||
<tr>
|
||||
<td>{!! $rating->id !!}</td>
|
||||
|
||||
<td>{!! $rating->rating_name !!}</td>
|
||||
|
||||
<td>
|
||||
|
||||
<button class="btn btn-info btn-sm" data-toggle="modal" data-target="#{{$rating->slug}}">Edit Rating</button>
|
||||
|
||||
<div class="modal fade" id="{{$rating->slug}}">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::model($rating,['route'=>['settings.rating', $rating->slug],'method'=>'PATCH']) !!}
|
||||
<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">Edit Rating</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0" height="100%">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td valign="top" id="staffnavbar" colspan="2">
|
||||
<div id="cpmenu"><div id="customnavhtmlcontainer" style="display: none;"></div>
|
||||
|
||||
<div class="ui-tabs-hide ui-tabs ui-widget ui-widget-content ui-corner-all" id="View_Ratingtabs">
|
||||
<div class="ui-tabs ui-tabs-panel ui-widget-content ui-corner-bottom" id="View_Rating_tab_general">
|
||||
<table width="100%" cellspacing="1" cellpadding="4" border="0">
|
||||
<tbody>
|
||||
<tr class="tablerow1_tr">
|
||||
<td class="tablerow1" align="left" valign="top" width="50%"><span class="tabletitle">Rating label</span><br>
|
||||
<span style="font-style: italic">For example, <em>Overall satisfaction</em> or <em>Speed of resolution</em>.</span></td>
|
||||
<td class="tablerow1" align="left" valign="top">
|
||||
{!! Form::text('rating_name',null,['class'=>'form-control'])!!}
|
||||
</td></tr>
|
||||
<tr class="tablerow1_tr"><td width="50%" valign="top" align="left" class="tablerow1"><span class="tabletitle">Publish the rating system?</span><br>
|
||||
<span style="font-style: italic">
|
||||
<strong>Enable Rating System</strong> Ratings are available to the users. Select this option if you want to collect feedback from your end users and have the ratings visible to staff too.
|
||||
</span></td>
|
||||
<td valign="top" align="left" class="tablerow1">
|
||||
<label for="publicratingvisibility"><input type="radio" checked="" value="1" id="publicratingvisibility" class="swiftradio" name="publish" autocomplete="OFF"> Yes</label>
|
||||
<label for="privateratingvisibility"><input type="radio" value="0" id="privateratingvisibility" name="publish" autocomplete="OFF"> No</label>
|
||||
</td></tr>
|
||||
<tr class="tablerow1_tr"><td width="50%" valign="top" align="left" class="tablerow1">
|
||||
<td width="50%" valign="top" align="left" class="tablerow1"></td>
|
||||
</tr>
|
||||
<tr class="tablerow1_tr">
|
||||
<td width="50%" valign="top" align="left" class="tablerow1">
|
||||
<span class="tabletitle">Allow modification after first submission</span><br>
|
||||
<span style="font-style: italic">The value set for this rating can be modified, if enabled.</span></td>
|
||||
<td valign="top" align="left" class="tablerow1"><label for="yiseditable">
|
||||
<input type="radio" checked="" value="1" id="yiseditable" onclick="" class="swiftradio" name="modify" autocomplete="OFF"> Yes</label>
|
||||
<label for="niseditable">
|
||||
<input type="radio" value="0" onclick="" name="modify" autocomplete="OFF"> No</label>
|
||||
</td></tr>
|
||||
|
||||
</tbody></table></div></div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody></table>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Update Rating',['class'=>'btn btn-primary'])!!}
|
||||
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div></div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#{{$rating->slug}}delete">Delete Rating</button>
|
||||
|
||||
<div class="modal fade" id="{{$rating->slug}}delete">
|
||||
<div class="modal-dialog">
|
||||
<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">Delete</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p>Are you sure you want to Delete ?</p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
{!! link_to_route('ratings.delete','Delete',[$rating->slug],['id'=>'delete','class'=>'btn btn-danger btn-sm']) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
@@ -16,6 +16,7 @@ active
|
||||
?>
|
||||
|
||||
@section('sidebar')
|
||||
|
||||
<li class="header">{!! Lang::get('lang.Ticket_Information') !!} </li>
|
||||
<li>
|
||||
<a href="">
|
||||
@@ -41,6 +42,19 @@ active
|
||||
</a>
|
||||
@endif
|
||||
</li>
|
||||
|
||||
<li class="header">
|
||||
{!! Lang::get('lang.ticket_ratings') !!}
|
||||
</li><li> <a href="#">
|
||||
<input type="hidden" name="amount" value="{!! $tickets->rating !!}" />
|
||||
<label style="color: #b8c7ce;">Overall Rating:</label>
|
||||
<h5>
|
||||
<span class="stars">{!! $tickets->rating !!}</span></h5>
|
||||
<input type="hidden" name="amt" value="{!! $tickets->ratingreply !!}" />
|
||||
<label style="color: #b8c7ce;">Reply Rating:</label>
|
||||
<h4>
|
||||
<span class="stars2">{!! $tickets->ratingreply !!}</span></h4>
|
||||
</a></li>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@@ -1053,7 +1067,22 @@ $count_teams = count($teams);
|
||||
|
||||
<!-- scripts used on page -->
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function() {
|
||||
|
||||
$('h5').html('<span class="stars">'+parseFloat($('input[name=amount]').val())+'</span>');
|
||||
$('span.stars').stars();
|
||||
|
||||
$('h4').html('<span class="stars2">'+parseFloat($('input[name=amt]').val())+'</span>');
|
||||
$('span.stars2').stars();
|
||||
|
||||
|
||||
});
|
||||
|
||||
$.fn.stars = function() {
|
||||
return $(this).each(function() {
|
||||
$(this).html($('<span />').width(Math.max(0, (Math.min(5, parseFloat($(this).html())))) * 16));
|
||||
});
|
||||
}
|
||||
$(function () {
|
||||
$("#InternalContent").wysihtml5();
|
||||
});
|
||||
|
@@ -8,6 +8,30 @@
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="{{asset("lb-faveo/css/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Font Awesome Icons -->
|
||||
<style>
|
||||
span.stars, span.stars span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
span.stars2, span.stars2 span {
|
||||
display: block;
|
||||
background: url({!! URL::asset('lb-faveo/dist/images/stars.png'); !!}) 0 -16px repeat-x;
|
||||
width: 80px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
span.stars2 span {
|
||||
background-position: 0 0;
|
||||
}
|
||||
</style>
|
||||
<link href="{{asset("lb-faveo/css/font-awesome.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Ionicons -->
|
||||
<link href="{{asset("lb-faveo/css/ionicons.min.css")}}" rel="stylesheet">
|
||||
@@ -33,10 +57,10 @@
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
{{-- // <script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script> --}}
|
||||
{{-- // <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> --}}
|
||||
<script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>
|
||||
<script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script>
|
||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
|
||||
<!-- <script src="{{asset("lb-faveo/js/jquery-2.1.4.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/jquery2.1.1.min.js")}}" type="text/javascript"></script>-->
|
||||
|
||||
@yield('HeadInclude')
|
||||
</head>
|
||||
@@ -294,9 +318,7 @@ $group = App\Model\helpdesk\Agent\Groups::where('id', '=', $agent_group)->where(
|
||||
<strong>{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>.</strong> {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a>
|
||||
</footer>
|
||||
</div><!-- ./wrapper -->
|
||||
{{-- // <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> --}}
|
||||
|
||||
<script src="{{asset("lb-faveo/js/ajax-jquery.min.js")}}"></script>
|
||||
|
||||
|
||||
{{-- // <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datetimepicker/4.7.14/js/bootstrap-datetimepicker.min.js"></script> --}}
|
||||
|
||||
|
@@ -23,9 +23,12 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
<!-- Main content -->
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
|
||||
</section>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="pull-right">
|
||||
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
|
||||
{{-- <button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button> --}}
|
||||
@@ -42,6 +45,42 @@ $thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt:
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="ticketratings pull-right">
|
||||
<table><tbody>
|
||||
<form id="foo">
|
||||
<tr>
|
||||
<th><div class="ticketratingtitle">Overall Satisfaction </div></th> 
|
||||
<td>
|
||||
<input type="radio" class="star" id="star5" name="rating" value="1"<?php echo ($tickets->rating=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating" value="2"<?php echo ($tickets->rating=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating" value="3"<?php echo ($tickets->rating=='3')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star2" name="rating" value="4"<?php echo ($tickets->rating=='4')?'checked':'' ?>/>
|
||||
<input type="radio" class="star" id="star1" name="rating" value="5"<?php echo ($tickets->rating=='5')?'checked':'' ?> />
|
||||
</td>
|
||||
</tr>
|
||||
</form>
|
||||
<form id="foo2">
|
||||
|
||||
|
||||
<tr><th > <div class="ticketratingtitle">Reply rating </div></th> 
|
||||
<td>
|
||||
<input type="radio" class="star" id="star5" name="rating2" value="1"<?php echo ($tickets->ratingreply=='1')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star4" name="rating2" value="2"<?php echo ($tickets->ratingreply=='2')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star3" name="rating2" value="3"<?php echo ($tickets->ratingreply=='3')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star2" name="rating2" value="4"<?php echo ($tickets->ratingreply=='4')?'checked':'' ?> />
|
||||
<input type="radio" class="star" id="star1" name="rating2" value="5"<?php echo ($tickets->ratingreply=='5')?'checked':'' ?> />
|
||||
|
||||
</td></tr>
|
||||
|
||||
</form> </tbody> </table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="box-body" style="margin-bottom:-10px">
|
||||
<div class="row">
|
||||
@@ -340,7 +379,71 @@ $data = $ConvDate[0];
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function() {
|
||||
// var Data = $('input[name="rating"]:checked').val();
|
||||
// var Data2 = $('input[name="rating2"]:checked').val();
|
||||
// if (Data) {
|
||||
// $('input[name=rating]').rating('readOnly');
|
||||
//
|
||||
// }
|
||||
$('input[name=rating]').change(function() {
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('input[name=rating2]').change(function() {
|
||||
$('#foo2').submit();
|
||||
});
|
||||
// process the form
|
||||
$('#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 formData = $('input[name="rating"]:checked').val();
|
||||
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type : 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url : '../rating/'+<?php echo $tickets->id ?>+'/'+formData, // the url where we want to POST
|
||||
data : formData, // our data object
|
||||
dataType : 'json', // what type of data do we expect back from the server
|
||||
|
||||
success : function() {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// using the done promise callback
|
||||
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
// process the form
|
||||
$('#foo2').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 formData = $('input[name="rating2"]:checked').val();
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
type : 'POST', // define the type of HTTP verb we want to use (POST for our form)
|
||||
url : '../rating2/'+<?php echo $tickets->id ?>+'/'+formData, // the url where we want to POST
|
||||
data : formData, // our data object
|
||||
dataType : 'json', // what type of data do we expect back from the server
|
||||
|
||||
success : function() {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
// using the done promise callback
|
||||
|
||||
// stop the form from submitting the normal way and refreshing the page
|
||||
event.preventDefault();
|
||||
});
|
||||
|
||||
});
|
||||
$(function () {
|
||||
//Add text editor
|
||||
$("textarea").wysihtml5();
|
||||
|
@@ -25,6 +25,7 @@
|
||||
<!-- fullCalendar 2.2.5-->
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
<!-- Theme style -->
|
||||
<link href="{{asset("lb-faveo/dist/css/jquery.rating.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/css/app.css")}}" rel="stylesheet" type="text/css" />
|
||||
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
|
||||
|
||||
@@ -346,6 +347,7 @@ $footer4 = App\Model\helpdesk\Theme\Widgets::where('name','=','footer4')->first(
|
||||
<script src="{{asset("lb-faveo/js/superfish.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/mobilemenu.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/js/know.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/dist/js/jquery.rating.pack.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
|
||||
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
|
||||
<script>
|
||||
|
Reference in New Issue
Block a user