update v1.0.3.3
This commit is contained in:
14
resources/views/emails/Admin_mail.blade.php
Normal file
14
resources/views/emails/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 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}</h4>
|
||||
|
||||
|
||||
<br/>
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
25
resources/views/emails/Ticket_Create.blade.php
Normal file
25
resources/views/emails/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/Ticket_Reply.blade.php
Normal file
4
resources/views/emails/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/Ticket_assign.blade.php
Normal file
9
resources/views/emails/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/check_ticket.blade.php
Normal file
9
resources/views/emails/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/close_ticket.blade.php
Normal file
7
resources/views/emails/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/email_reply.blade.php
Normal file
13
resources/views/emails/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 !!}
|
154
resources/views/emails/notifications/admin.blade.php
Normal file
154
resources/views/emails/notifications/admin.blade.php
Normal file
@@ -0,0 +1,154 @@
|
||||
<?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();
|
||||
$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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// 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;">
|
||||
{!! $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;">
|
||||
<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;">
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
|
||||
<!-- 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;">
|
||||
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();
|
||||
$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){
|
||||
$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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
@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.
|
||||
|
||||
</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>
|
||||
|
||||
<!-- 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;">
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
135
resources/views/emails/notifications/agent.blade.php
Normal file
135
resources/views/emails/notifications/agent.blade.php
Normal file
@@ -0,0 +1,135 @@
|
||||
<?php
|
||||
|
||||
$date = Date('d-m-Y');
|
||||
$format = 'Y-m-d';
|
||||
$day1 = Date($format,strtotime('-1 day'. $date));
|
||||
|
||||
$user = App\User::where('id','=',$user_id)->first();
|
||||
|
||||
$dept = App\Model\helpdesk\Agent\Department::where('name','=',$user->primary_dpt)->first();
|
||||
|
||||
$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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// 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;">
|
||||
{!! $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;">
|
||||
<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;">
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
|
||||
<!-- 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;">
|
||||
Overview
|
||||
</p>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
|
||||
<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.
|
||||
|
||||
</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>
|
||||
|
||||
<!-- 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;">
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="images/footer_shadow.png" width="600" height="25" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
590
resources/views/emails/notifications/lead.blade.php
Normal file
590
resources/views/emails/notifications/lead.blade.php
Normal file
@@ -0,0 +1,590 @@
|
||||
<?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('team_id','=',$team_id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('status', '=', 1)->count();
|
||||
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// echo "created=".$created."<br/>";
|
||||
// echo "closed=".$closed."<br/>";
|
||||
// echo "inprogress=".$inprogress."<br/>";
|
||||
// echo "overdue=".$i."<br/>";
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Simples-Minimalistic Responsive Template</title>
|
||||
|
||||
<style type="text/css">
|
||||
/* Client-specific Styles */
|
||||
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
|
||||
body{width:100% !important; -webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; margin:0; padding:0;}
|
||||
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes, while not breaking desktop design. */
|
||||
.ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
|
||||
.ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing.*/
|
||||
#backgroundTable {margin:0; padding:0; width:100% !important; line-height: 100% !important;}
|
||||
img {outline:none; text-decoration:none;border:none; -ms-interpolation-mode: bicubic;}
|
||||
a img {border:none;}
|
||||
.image_fix {display:block;}
|
||||
p {margin: 0px 0px !important;}
|
||||
table td {border-collapse: collapse;}
|
||||
table { border-collapse:collapse; mso-table-lspace:0pt; mso-table-rspace:0pt; }
|
||||
a {color: #0a8cce;text-decoration: none;text-decoration:none!important;}
|
||||
/*STYLES*/
|
||||
table[class=full] { width: 100%; clear: both; }
|
||||
/*IPAD STYLES*/
|
||||
@media only screen and (max-width: 640px) {
|
||||
a[href^="tel"], a[href^="sms"] {
|
||||
text-decoration: none;
|
||||
color: #0a8cce; /* or whatever your want */
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
|
||||
text-decoration: default;
|
||||
color: #0a8cce !important;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
}
|
||||
table[class=devicewidth] {width: 440px!important;text-align:center!important;}
|
||||
table[class=devicewidthinner] {width: 420px!important;text-align:center!important;}
|
||||
img[class=banner] {width: 440px!important;height:220px!important;}
|
||||
img[class=colimg2] {width: 440px!important;height:220px!important;}
|
||||
|
||||
|
||||
}
|
||||
/*IPHONE STYLES*/
|
||||
@media only screen and (max-width: 480px) {
|
||||
a[href^="tel"], a[href^="sms"] {
|
||||
text-decoration: none;
|
||||
color: #0a8cce; /* or whatever your want */
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
.mobile_link a[href^="tel"], .mobile_link a[href^="sms"] {
|
||||
text-decoration: default;
|
||||
color: #0a8cce !important;
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
}
|
||||
table[class=devicewidth] {width: 280px!important;text-align:center!important;}
|
||||
table[class=devicewidthinner] {width: 260px!important;text-align:center!important;}
|
||||
img[class=banner] {width: 280px!important;height:140px!important;}
|
||||
img[class=colimg2] {width: 280px!important;height:140px!important;}
|
||||
td[class=mobile-hide]{display:none!important;}
|
||||
td[class="padding-bottom25"]{padding-bottom:25px!important;}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Start of preheader -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="preheader" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="100%">
|
||||
<table width="600" cellpadding="20" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" align="left" border="0" cellpadding="0" cellspacing="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td st-title="fulltext-heading" style="font-family: Helvetica, arial, sans-serif; font-size: 40px; color: #333333; line-height: 30px; text-align:center;">
|
||||
<b>Faveo</b>HELPDESK
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td st-title="fulltext-heading" style="font-family: Helvetica, arial, sans-serif; font-size: 20px; color: #333333; line-height: 30px; text-align:center;">
|
||||
Daily Report
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- End of preheader -->
|
||||
<!-- Start of seperator -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="seperator">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="center" cellspacing="0" cellpadding="0" border="0" class="devicewidth">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td width="550" align="center" height="1" bgcolor="#d1d1d1" style="font-size:1px; line-height:1px;"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- End of seperator -->
|
||||
<!-- 2columns -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="2columns">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="100%">
|
||||
<table bgcolor="#ffffff" width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<!-- start of text content table -->
|
||||
<table width="600" align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth">
|
||||
<tbody>
|
||||
<!-- Content -->
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="center" border="0" cellpadding="20" cellspacing="0" class="devicewidthinner">
|
||||
<tbody style="margin-left:100px;">
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 18px; color: #333333; line-height:24px;" st-title="2coltitle1">
|
||||
Hi {!! $name !!}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:24px; color: #666666;" st-conteent="2colcontent1">
|
||||
Below mentioned are your daily reportfor your {!! $company !!}.
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- end of Content -->
|
||||
<!-- end of content -->
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- end of text content table -->
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- end of right column -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- end of 2 columns -->
|
||||
|
||||
<!-- Start Full Text -->
|
||||
<?php
|
||||
foreach ($depts as $dept) {
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('status', '=', 1)->count();
|
||||
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="full-text">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="100%">
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
|
||||
<tr>
|
||||
<td height="20" style="font-size:1px; line-height:1px; mso-line-height-rule: exactly;"> </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<table width="560" align="center" cellpadding="0" cellspacing="0" border="1" class="devicewidthinner">
|
||||
<tbody>
|
||||
|
||||
<!--Table Heading-->
|
||||
<tr>
|
||||
<td st-title="fulltext-heading" style="font-family: Helvetica, arial, sans-serif; font-size: 30px; color: #333333; text-align:center; line-height: 30px;">
|
||||
{!! $dept->name !!}
|
||||
</td>
|
||||
</tr><!--Table Heading-->
|
||||
<tr>
|
||||
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 18px; color: #333333; line-height:24px;">
|
||||
<table style="width:100%">
|
||||
<tr>
|
||||
<td><b>Opened</b></td>
|
||||
<td>{!! $created !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Closed</b></td>
|
||||
<td>{!! $closed !!}</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td><b>Inprogress</b></td>
|
||||
<td>{!! $inprogress !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>Overdue</b></td>
|
||||
<td>{!! $i !!}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
<!-- end of full text -->
|
||||
<!-- 2columns -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="2columns">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="100%">
|
||||
<table bgcolor="#ffffff" width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth">
|
||||
<tbody>
|
||||
<!-- Spacing -->
|
||||
<tr>
|
||||
<td width="100%" height="20"></td>
|
||||
</tr>
|
||||
<!-- Spacing -->
|
||||
<tr>
|
||||
<td>
|
||||
<!-- start of text content table -->
|
||||
<table width="600" align="left" border="0" cellpadding="0" cellspacing="0" class="devicewidth">
|
||||
<tbody>
|
||||
<!-- Content -->
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="center" border="0" cellpadding="20" cellspacing="0" class="devicewidthinner">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:24px; color: #666666;" st-conteent="2colcontent1">
|
||||
We should all work hard to guarantee that all tickets are being addressed in a timely manner.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:24px; color: #666666;" st-conteent="2colcontent1">
|
||||
Thank You,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:24px; color: #666666;" st-conteent="2colcontent1">
|
||||
Kind Regards,
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="font-family: Helvetica, arial, sans-serif; font-size: 14px; line-height:24px; color: #666666;" st-conteent="2colcontent1">
|
||||
{!! $company !!}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- end of Content -->
|
||||
<!-- end of content -->
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- end of text content table -->
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- end of left column -->
|
||||
<!-- end of right column -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Spacing -->
|
||||
<tr>
|
||||
<td width="100%" height="10"></td>
|
||||
</tr>
|
||||
<!-- Spacing -->
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- end of 2 columns -->
|
||||
<!-- Start of seperator -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="seperator">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" align="center" cellspacing="0" cellpadding="0" border="0" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center" height="30" style="font-size:0px; line-height:1px;"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="550" align="center" height="1" bgcolor="#d1d1d1" style="font-size:1px; line-height:1px;"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" height="30" style="font-size:1px; line-height:1px;"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- End of seperator -->
|
||||
|
||||
<!-- Start of Postfooter -->
|
||||
<table width="100%" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" id="backgroundTable" st-sortable="postfooter" >
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="600" cellpadding="0" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="100%">
|
||||
<table width="600" cellpadding="20" cellspacing="0" border="0" align="center" class="devicewidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td valign="middle" style="font-family: Helvetica, arial, sans-serif; font-size: 14px;color: #666666; text-align:center;" st-content="postfooter">
|
||||
Powered by <a href="#" style="text-decoration: none; color: #0a8cce">Faveo</a>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Spacing -->
|
||||
<tr>
|
||||
<td width="100%" height="20"></td>
|
||||
</tr>
|
||||
<!-- Spacing -->
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- End of postfooter -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!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;">
|
||||
{!! $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;">
|
||||
<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;">
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
|
||||
<!-- 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;">
|
||||
Overview
|
||||
</p>
|
||||
<?php
|
||||
foreach ($depts as $dept) {
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_id)->where('status', '=', 1)->count();
|
||||
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('team_id','=',$team_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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!-- 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<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.
|
||||
|
||||
</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>
|
||||
|
||||
<!-- 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;">
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="images/footer_shadow.png" width="600" height="25" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
133
resources/views/emails/notifications/manager.blade.php
Normal file
133
resources/views/emails/notifications/manager.blade.php
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
|
||||
$date = Date('d-m-Y');
|
||||
$format = 'Y-m-d';
|
||||
$day1 = Date($format,strtotime('-1 day'. $date));
|
||||
|
||||
|
||||
$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){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// 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;">
|
||||
{!! $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;">
|
||||
<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;">
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
|
||||
<!-- 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;">
|
||||
Overview
|
||||
</p>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<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>
|
||||
|
||||
<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>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
<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.
|
||||
|
||||
</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>
|
||||
|
||||
<!-- 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;">
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="images/footer_shadow.png" width="600" height="25" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
186
resources/views/emails/notifications/test.blade.php
Normal file
186
resources/views/emails/notifications/test.blade.php
Normal file
@@ -0,0 +1,186 @@
|
||||
<!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;">
|
||||
Faveo HELPDESK
|
||||
</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;">
|
||||
<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;">
|
||||
<strong>Hi Bhanu,</strong> <br>Below mentioned are your daily report for your Helpdesk Support system.
|
||||
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
|
||||
<!-- 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;">
|
||||
A quick overview of our starter package
|
||||
</p>
|
||||
|
||||
<!-- 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>$ 25,00 today only!</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
|
||||
<!-- 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>$ 25,00 today only!</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
<!-- 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>$ 25,00 today only!</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
<td align="center"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Webspace</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Bandwith</strong></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
|
||||
<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.
|
||||
|
||||
</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/>Faveo HELPDESK/ Ladybird Support
|
||||
</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;">
|
||||
To view or respond to the ticket, please login to the support ticket system. You're receiving this notice because
|
||||
the ticket is assigned directly to you or to a team or department of which you're a member.
|
||||
</p>
|
||||
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 14px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px;">
|
||||
Your friendly (<i>although with limited patience</i>) Customer Support System
|
||||
</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;">
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><img src="images/footer_shadow.png" width="600" height="25" /></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
14
resources/views/emails/pass.blade.php
Normal file
14
resources/views/emails/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/password.blade (2).php
Normal file
1
resources/views/emails/password.blade (2).php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {!! url('password/reset/'.$token) !!}
|
14
resources/views/emails/password.blade.php
Normal file
14
resources/views/emails/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/report.blade.php
Normal file
1
resources/views/emails/report.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
<pre>{{$e}}</pre>
|
11
resources/views/emails/ticket_re-reply.blade.php
Normal file
11
resources/views/emails/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/>
|
Reference in New Issue
Block a user