updated version 1.0.3
This commit is contained in:
154
code/resources/views/emails/notifications/admin.blade.php
Normal file
154
code/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
code/resources/views/emails/notifications/agent.blade.php
Normal file
135
code/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
code/resources/views/emails/notifications/lead.blade.php
Normal file
590
code/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
code/resources/views/emails/notifications/manager.blade.php
Normal file
133
code/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
code/resources/views/emails/notifications/test.blade.php
Normal file
186
code/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>
|
||||
156
code/resources/views/test.blade.php
Normal file
156
code/resources/views/test.blade.php
Normal file
@@ -0,0 +1,156 @@
|
||||
@extends('themes.default1.agent.layout.agent')
|
||||
|
||||
@section('Dashboard')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('dashboard-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('dashboard')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="box box-info">
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.line_chart') !!}</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
|
||||
<button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-body">
|
||||
<div class="chart" >
|
||||
<div id="legendDiv"></div>
|
||||
<canvas class="chart-data" id="tickets-graph" width="1000" height="400"></canvas>
|
||||
</div>
|
||||
</div><!-- /.box-body -->
|
||||
</div><!-- /.box -->
|
||||
<hr/>
|
||||
|
||||
|
||||
<script src="{{asset("lb-faveo/plugins/chartjs/Chart.min.js")}}" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$.getJSON("reportdata", function (result) {
|
||||
|
||||
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
|
||||
|
||||
// $var12 = result[i].day;
|
||||
|
||||
// labels.push($var12);
|
||||
labels.push(result[i].date);
|
||||
open.push(result[i].open);
|
||||
closed.push(result[i].closed);
|
||||
reopened.push(result[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
labels : labels,
|
||||
datasets : [
|
||||
{
|
||||
label : "Total Tickets" ,
|
||||
fillColor : "rgba(240, 127, 110, 0.3)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#A62121",
|
||||
pointStrokeColor : "#E60073",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : open
|
||||
}
|
||||
,{
|
||||
label : "Open Tickets" ,
|
||||
fillColor : "rgba(255, 102, 204, 0.4)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#FF66CC",
|
||||
pointStrokeColor : "#fff",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : closed
|
||||
|
||||
}
|
||||
,{
|
||||
label : "Closed Tickets",
|
||||
fillColor : "rgba(151,187,205,0.2)",
|
||||
strokeColor : "rgba(151,187,205,1)",
|
||||
pointColor : "rgba(151,187,205,1)",
|
||||
pointStrokeColor : "#0000CC",
|
||||
pointHighlightFill : "#0000E6",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : reopened
|
||||
}
|
||||
// ,{
|
||||
// label : "Reopened Tickets",
|
||||
// fillColor : "rgba(102,255,51,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(46,184,0,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data3
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
var myLineChart = new Chart(document.getElementById("tickets-graph").getContext("2d")).Line(buyerData, {
|
||||
showScale: true,
|
||||
//Boolean - Whether grid lines are shown across the chart
|
||||
scaleShowGridLines: false,
|
||||
//String - Colour of the grid lines
|
||||
scaleGridLineColor: "rgba(0,0,0,.05)",
|
||||
//Number - Width of the grid lines
|
||||
scaleGridLineWidth: 1,
|
||||
//Boolean - Whether to show horizontal lines (except X axis)
|
||||
scaleShowHorizontalLines: true,
|
||||
//Boolean - Whether to show vertical lines (except Y axis)
|
||||
scaleShowVerticalLines: true,
|
||||
//Boolean - Whether the line is curved between points
|
||||
bezierCurve: false,
|
||||
//Number - Tension of the bezier curve between points
|
||||
bezierCurveTension: 0.3,
|
||||
//Boolean - Whether to show a dot for each point
|
||||
pointDot: true,
|
||||
//Number - Radius of each point dot in pixels
|
||||
pointDotRadius: 4,
|
||||
//Number - Pixel width of point dot stroke
|
||||
pointDotStrokeWidth: 1,
|
||||
//Number - amount extra to add to the radius to cater for hit detection outside the drawn point
|
||||
pointHitDetectionRadius: 20,
|
||||
//Boolean - Whether to show a stroke for datasets
|
||||
datasetStroke: true,
|
||||
//Number - Pixel width of dataset stroke
|
||||
datasetStrokeWidth: 1,
|
||||
//Boolean - Whether to fill the dataset with a color
|
||||
datasetFill: true,
|
||||
//String - A legend template
|
||||
//Boolean - whether to maintain the starting aspect ratio or not when responsive, if set to false, will take up entire container
|
||||
maintainAspectRatio: false,
|
||||
//Boolean - whether to make the chart responsive to window resizing
|
||||
responsive: true,
|
||||
legendTemplate : '<ul style="list-style-type: square;">'
|
||||
+'<% for (var i=0; i<datasets.length; i++) { %>'
|
||||
+'<li style="color: <%=datasets[i].pointColor%>;">'
|
||||
+'<span style=\"background-color:<%=datasets[i].pointColor%>\"></span>'
|
||||
+'<% if (datasets[i].label) { %><%= datasets[i].label %><% } %>'
|
||||
+'</li>'
|
||||
+'<% } %>'
|
||||
+'</ul>'
|
||||
});
|
||||
|
||||
document.getElementById("legendDiv").innerHTML = myLineChart.generateLegend();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@stop
|
||||
@@ -56,6 +56,7 @@
|
||||
<li @yield('Manage')><a data-target="#tabD" href="#">{!! Lang::get('lang.manage') !!}</a></li>
|
||||
<li @yield('Settings')><a data-target="#tabE" href="#">{!! Lang::get('lang.settings') !!}</a></li>
|
||||
<li @yield('Themes')><a data-target="#tabF" href="#">{!! Lang::get('lang.themes') !!}</a></li>
|
||||
<li @yield('Plugin')><a data-target="#tabP" href="#">{!! Lang::get('lang.plugin') !!}</a></li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
@@ -150,7 +151,7 @@ $tickets = App\Model\helpdesk\Ticket\Tickets::where('status','1')->get();
|
||||
$i = count($tickets);
|
||||
?>
|
||||
<li>
|
||||
<a href="{{ url('/ticket/open') }}">
|
||||
<a href="{{ url('/ticket/inbox') }}">
|
||||
<i class="fa fa-envelope"></i> <span>{!! Lang::get('lang.inbox') !!}</span> <small class="label pull-right bg-green">
|
||||
{!! $i !!}</small>
|
||||
</a>
|
||||
@@ -256,6 +257,10 @@ $i = count($tickets);
|
||||
<li id="bar" @yield('footer4')><a href="{{ url('create-footer4') }}" >{!! Lang::get('lang.footer4') !!}</a></li></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tabs-pane @yield('plugin-bar')" id="tabF">
|
||||
{{-- Event fire --}}
|
||||
<ul class="nav navbar-nav"><?php \Event::fire(new App\Events\TopNavEvent()); ?></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -15,14 +15,7 @@ class="active"
|
||||
@section('content')
|
||||
|
||||
<div class="box box-info">
|
||||
|
||||
<?php
|
||||
|
||||
// $tickets = App\Model\Ticket\Tickets::where('created_at','>=',date('Y-m-d'))->get();
|
||||
|
||||
// echo count($tickets);
|
||||
|
||||
?>
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{!! Lang::get('lang.line_chart') !!}</h3>
|
||||
<div class="box-tools pull-right">
|
||||
@@ -83,75 +76,65 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
$(function(){
|
||||
$.getJSON("agen", function (result) {
|
||||
|
||||
|
||||
var labels = [],data=[],data2=[];
|
||||
var labels=[], open=[], closed=[], reopened=[];
|
||||
//,data2=[],data3=[],data4=[];
|
||||
for (var i = 0; i < result.length; i++) {
|
||||
|
||||
$var12 = result[i].month;
|
||||
if($var12 == 1){
|
||||
$var13 = "January";
|
||||
}
|
||||
if($var12 == 2){
|
||||
$var13 = "Febuary";
|
||||
}
|
||||
if($var12 == 3){
|
||||
$var13 = "March";
|
||||
}
|
||||
if($var12 == 4){
|
||||
$var13 = "April";
|
||||
}
|
||||
if($var12 == 5){
|
||||
$var13 = "May";
|
||||
}
|
||||
if($var12 == 6){
|
||||
$var13 = "June";
|
||||
}
|
||||
if($var12 == 7){
|
||||
$var13 = "July";
|
||||
}
|
||||
if($var12 == 8){
|
||||
$var13 = "August";
|
||||
}
|
||||
if($var12 == 9){
|
||||
$var13 = "September";
|
||||
}
|
||||
if($var12 == 10){
|
||||
$var13 = "October";
|
||||
}
|
||||
if($var12 == 11){
|
||||
$var13 = "November";
|
||||
}
|
||||
if($var12 == 12){
|
||||
$var13 = "December";
|
||||
}
|
||||
labels.push($var13);
|
||||
data.push(result[i].tickets);
|
||||
// data2.push(result[i].monthNum);
|
||||
|
||||
// $var12 = result[i].day;
|
||||
|
||||
// labels.push($var12);
|
||||
labels.push(result[i].date);
|
||||
open.push(result[i].open);
|
||||
closed.push(result[i].closed);
|
||||
reopened.push(result[i].reopened);
|
||||
// data4.push(result[i].open);
|
||||
}
|
||||
|
||||
var buyerData = {
|
||||
labels : labels,
|
||||
datasets : [
|
||||
{
|
||||
label : "Tickets" ,
|
||||
label : "Total Tickets" ,
|
||||
fillColor : "rgba(240, 127, 110, 0.3)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#A62121",
|
||||
pointStrokeColor : "#741F1F",
|
||||
data : data
|
||||
pointStrokeColor : "#E60073",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : open
|
||||
}
|
||||
,{
|
||||
label : "Open Tickets" ,
|
||||
fillColor : "rgba(255, 102, 204, 0.4)",
|
||||
strokeColor : "#f56954",
|
||||
pointColor : "#FF66CC",
|
||||
pointStrokeColor : "#fff",
|
||||
pointHighlightFill : "#FF4DC3",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : closed
|
||||
|
||||
}
|
||||
//,
|
||||
// {
|
||||
// label : "Closed Tickets",
|
||||
// fillColor : "rgba(151,187,205,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(151,187,205,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data2
|
||||
// }
|
||||
,{
|
||||
label : "Closed Tickets",
|
||||
fillColor : "rgba(151,187,205,0.2)",
|
||||
strokeColor : "rgba(151,187,205,1)",
|
||||
pointColor : "rgba(151,187,205,1)",
|
||||
pointStrokeColor : "#0000CC",
|
||||
pointHighlightFill : "#0000E6",
|
||||
pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
data : reopened
|
||||
}
|
||||
// ,{
|
||||
// label : "Reopened Tickets",
|
||||
// fillColor : "rgba(102,255,51,0.2)",
|
||||
// strokeColor : "rgba(151,187,205,1)",
|
||||
// pointColor : "rgba(46,184,0,1)",
|
||||
// pointStrokeColor : "#fff",
|
||||
// pointHighlightFill : "#fff",
|
||||
// pointHighlightStroke : "rgba(151,187,205,1)",
|
||||
// data : data3
|
||||
// }
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -50,7 +50,10 @@ active
|
||||
<h3 class="box-title" id="refresh2"><i class="fa fa-user"> </i> @if($thread->title){!! $thread->title !!} @endif</h3>
|
||||
<div class="pull-right">
|
||||
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
|
||||
<?php if ($group->can_edit_ticket == 1) {?>
|
||||
<?php
|
||||
Event::fire(new \App\Events\TicketBoxHeader($user->id));
|
||||
|
||||
if ($group->can_edit_ticket == 1) {?>
|
||||
<button type="button" class="btn btn-default" id="Edit_Ticket" data-toggle="modal" data-target="#Edit"><i class="fa fa-edit" style="color:green;"> </i> {!! Lang::get('lang.edit') !!}</button>
|
||||
<?php } ?>
|
||||
|
||||
@@ -195,8 +198,9 @@ echo UTC::usertimezone(date_format($time, 'Y-m-d H:i:s'));
|
||||
@if($user->mobile !=null)<tr><td><b>Phone:</b></td> <td>{{$user->ext . $user->phone_number}}</td></tr>@endif
|
||||
<tr><td><b>{!! Lang::get('lang.source') !!}:</b></td> <td>{{$ticket_source}}</td></tr>
|
||||
<tr><td><b>{!! Lang::get('lang.help_topic') !!}:</b></td> <?php $help_topic = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
|
||||
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
|
||||
<tr><td><b>{!! Lang::get('lang.last_message') !!}:</b></td> <td>{{$username}}</td></tr>
|
||||
|
||||
<?php Event::fire(new App\Events\TicketDetailTable($TicketData)); ?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -204,6 +208,8 @@ echo UTC::usertimezone(date_format($time, 'Y-m-d H:i:s'));
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{-- Event fire --}}
|
||||
<?php Event::fire(new App\Events\TimeLineFormEvent($TicketData)); ?>
|
||||
<div class='row'>
|
||||
<div class='col-xs-12'>
|
||||
<div class="nav-tabs-custom">
|
||||
@@ -620,7 +626,11 @@ $data = $ConvDate[0];
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<div class="timeline-footer" style="margin-bottom:-5px">
|
||||
@if(!$conversation->is_internal)
|
||||
<?php Event::fire(new App\Events\Timeline($conversation,$role,$user)); ?>
|
||||
@endif
|
||||
<?php
|
||||
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();
|
||||
$i = 0;
|
||||
|
||||
@@ -130,6 +130,9 @@ $helptopic = App\Model\helpdesk\Manage\Help_topic::get();
|
||||
{!! Form::textarea('Details',null,['class' => 'form-control']) !!}
|
||||
|
||||
</div>
|
||||
{{-- Event fire --}}
|
||||
<?php Event::fire(new App\Events\ClientTicketForm()); ?>
|
||||
|
||||
<div class="col-md-12" id="response"> </div>
|
||||
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
|
||||
</div>
|
||||
|
||||
@@ -10,47 +10,56 @@
|
||||
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here')!!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allarticle') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9 archive-list archive-article">
|
||||
@foreach($article as $arti)
|
||||
<h3><a href="{{route('show',$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<hr>
|
||||
<ul class="col-md-10" id="article1">
|
||||
<li class="pull-left"><img src="{{asset('lb-faveo/Img/icon/time.png')}}"> <?php $utc = $arti->created_at;
|
||||
$time = UTC::usertimezone($utc);
|
||||
?>{!! $time !!}
|
||||
<?php
|
||||
$category_id = App\Model\kb\Relationship::where('article_id', $arti->id)->lists('category_id');
|
||||
foreach ($category_id as $id) {
|
||||
$category = App\Model\kb\Category::where('id', $id)->first();
|
||||
?>
|
||||
<a href="{{asset('category-list/'.$category->slug)}}"><img src="{{asset('lb-faveo/Img/icon/category.png')}}"> {{$category->name}}</a> </li>
|
||||
<?php }
|
||||
?>
|
||||
</ul>
|
||||
|
||||
<br>
|
||||
<hr>
|
||||
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 300) ?>
|
||||
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{route('show',$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
|
||||
|
||||
<article class="hentry">
|
||||
<header class="entry-header">
|
||||
<i class="fa fa-list-alt fa-2x fa-fw pull-left text-muted"></i>
|
||||
<h2 class="entry-title h4"><a href="{{url('show/'.$arti->slug)}}" onclick="toggle_visibility('foo');">{{$arti->name}}</a></h2>
|
||||
</header><!-- .entry-header -->
|
||||
<?php $str = $arti->description; ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 200); ?>
|
||||
<blockquote class="archive-description">
|
||||
<?php $content = trim(preg_replace("/<img[^>]+\>/i", "", $excerpt), " \t.") ?>
|
||||
{!! strip_tags($content) !!}
|
||||
<p><a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
</blockquote>
|
||||
|
||||
<footer class="entry-footer">
|
||||
<div class="entry-meta text-muted">
|
||||
<span class="date"><i class="fa fa-clock-o fa-fw"></i> <time datetime="2013-10-22T20:01:58+00:00">{{$arti->created_at->format('l, d-m-Y')}}</time></span>
|
||||
</div><!-- .entry-meta -->
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- .hentry -->
|
||||
{{-- <hr> --}}
|
||||
@endforeach
|
||||
<div class="pagination">
|
||||
<?php echo $article->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
$num = \App\Model\kb\Relationship::where('category_id','=', $category->id)->get();
|
||||
$article_id = $num->lists('article_id');
|
||||
$numcount = count($article_id);
|
||||
?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
@@ -7,26 +7,28 @@
|
||||
@section('kb')
|
||||
class = "active"
|
||||
@stop
|
||||
<?php $category = App\Model\kb\Category::where('id','=',$id)->first(); ?>
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allcategory') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.category') !!}</li>
|
||||
<li class="active">{!! $category->name !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<header class="archive-header">
|
||||
@foreach($categorys as $category)
|
||||
|
||||
<h1 >{!! $category->name !!}</h1>
|
||||
</header><!-- .archive-header -->
|
||||
<blockquote class="archive-description" style="display: none;">
|
||||
<p>{!! $category->description !!}</p>
|
||||
</blockquote>
|
||||
@endforeach
|
||||
<div class="archive-list archive-article">
|
||||
<?php foreach ($article_id as $id) { ?>
|
||||
<?php $article = App\Model\kb\Article::where('id', $id)->get(); ?>
|
||||
@@ -39,7 +41,8 @@
|
||||
<?php $str = $arti->description; ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 400); ?>
|
||||
<blockquote class="archive-description">
|
||||
<p>{!!$excerpt!!}</p><br/>
|
||||
<?php $content = trim(preg_replace("/<img[^>]+\>/i", "", $excerpt), " \t.") ?>
|
||||
<p>{!! strip_tags($content) !!}</p>
|
||||
<a class="readmore-link" href="{{url('show/'.$arti->slug)}}">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</blockquote>
|
||||
<footer class="entry-footer">
|
||||
@@ -51,7 +54,7 @@
|
||||
@endforeach
|
||||
<?php
|
||||
}
|
||||
echo $all->render();
|
||||
//echo $all->render();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -70,3 +73,18 @@
|
||||
@stop
|
||||
|
||||
|
||||
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
$num = \App\Model\kb\Relationship::where('category_id','=', $category->id)->get();
|
||||
$article_id = $num->lists('article_id');
|
||||
$numcount = count($article_id);
|
||||
?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
@@ -14,8 +14,8 @@
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here')!!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.frequently_asked_questions') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.allcategory') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
<li class="active">{!! Lang::get('lang.category') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@@ -41,7 +41,7 @@
|
||||
?>
|
||||
|
||||
<section class="articles-list">
|
||||
<h3><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> <span>({{count($all)}})</span></h3>
|
||||
<h3><i class="fa fa-folder-open-o fa-fw text-muted"></i> <a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a> <span>({{count($all)}})</span></h3>
|
||||
<ul class="articles">
|
||||
<hr>
|
||||
<?php foreach ($article_id as $id) {
|
||||
@@ -55,7 +55,7 @@
|
||||
@foreach($article as $arti)
|
||||
<li class="article-entry image" style="margin-left: 50px;">
|
||||
<h4><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h4>
|
||||
<span class="article-meta">{{$arti->created_at}}
|
||||
<span class="article-meta">{{$arti->created_at->format('l, d-m-Y')}}
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 55) ?>
|
||||
|
||||
@@ -72,10 +72,8 @@
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
<div>
|
||||
{!! $categorys->render() !!}
|
||||
</div>
|
||||
</div>
|
||||
<!-- end of page content -->
|
||||
|
||||
@stop
|
||||
|
||||
|
||||
@@ -28,22 +28,24 @@
|
||||
@endif
|
||||
@section('breadcrumb')
|
||||
<div class="site-hero clearfix">
|
||||
<div class="container">
|
||||
|
||||
<ol class="breadcrumb breadcrumb-custom">
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li class="active">{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
|
||||
<li>{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<li>{!! Lang::get('lang.home') !!}</li>
|
||||
<li>{!! Lang::get('lang.knowledge_base') !!}</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<div class="row">
|
||||
<?php $categories = App\Model\kb\Category::paginate('4');
|
||||
<?php $categories = App\Model\kb\Category::all();
|
||||
?>
|
||||
@foreach($categorys as $category)
|
||||
{{-- get the article_id where category_id == current category --}}
|
||||
<?php
|
||||
$all = App\Model\kb\Relationship::where('category_id', '=',$category->id)->get();
|
||||
$all = App\Model\kb\Relationship::all();
|
||||
/* from whole attribute pick the article_id */
|
||||
$page = App\Model\kb\Relationship::where('category_id', '=',$category->id)->paginate('3');
|
||||
/* from whole attribute pick the article_id */
|
||||
@@ -59,19 +61,19 @@
|
||||
</h1>
|
||||
<ul class="fa-ul">
|
||||
<?php foreach ($article_id as $id) {
|
||||
?>
|
||||
<?php
|
||||
|
||||
$article = App\Model\kb\Article::where('id', '=', $id)->where('status', '=','1')->where('type', '=','1')->get();
|
||||
?>
|
||||
@foreach($article as $arti)
|
||||
<li>
|
||||
<i class="fa-li fa fa-list-alt fa-fw text-muted"></i>
|
||||
<h3 class="h5"><a href="#"><a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a></h3>
|
||||
<span class="article-meta">{{$arti->created_at}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str); ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
<p >{!!$excerpt!!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a></p>
|
||||
<span class="article-meta">{{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
<?php $str = $arti->description;
|
||||
$len = strlen($str);
|
||||
|
||||
$excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 50); ?>
|
||||
{!!$excerpt!!} <br/><a class="more-link text-center" href="{{url('show/'.$arti->slug)}}" style="color: orange">{!! Lang::get('lang.read_more') !!}</a>
|
||||
</li>
|
||||
@endforeach
|
||||
<?php } ?>
|
||||
@@ -80,7 +82,7 @@
|
||||
</section>
|
||||
</div>
|
||||
@endforeach
|
||||
{!! $categories->setPath('show/'); !!}
|
||||
|
||||
</div>
|
||||
<section class="section">
|
||||
<div class="banner-wrapper banner-horizontal clearfix">
|
||||
@@ -92,8 +94,10 @@
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}</h2>
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
@@ -105,5 +109,3 @@ $numcount = count($article_id);
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
|
||||
@stop
|
||||
|
||||
@@ -9,31 +9,52 @@
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
@foreach($result as $arti)
|
||||
<article class="format-standard type-post hentry clearfix">
|
||||
|
||||
<header class="clearfix">
|
||||
<h3 class="post-title">
|
||||
<small><i class="fa fa-list-alt fa-2x fa-fw pull-left text-muted"></i></small>
|
||||
<a href="{{url('show/'.$arti->slug)}}">{{$arti->name}}</a>
|
||||
</h3>
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date">{{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
<span class="category"><a href="#" title="View all posts in Server & Database">Server & Database</a></span>
|
||||
</div><!-- end of post meta -->
|
||||
|
||||
</header>
|
||||
<?php $str = $arti->description ?>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 100) ?>
|
||||
<p>{!!$excerpt!!} <a class="readmore-link" href="{{url('show/'.$arti->slug)}}">Read more</a></p>
|
||||
<?php $excerpt = App\Http\Controllers\Client\kb\UserController::getExcerpt($str, $startPos = 0, $maxLength = 200) ?>
|
||||
<blockquote class="archive-description">
|
||||
<p>{!! strip_tags($excerpt) !!} </p>
|
||||
<a class="readmore-link" href="{{url('show/'.$arti->slug)}}">Read more</a>
|
||||
</blockquote>
|
||||
|
||||
<div class="post-meta clearfix">
|
||||
<span class="date"><i class="fa fa-clock-o fa-fw"></i> {{$arti->created_at->format('l, d-m-Y')}}</span>
|
||||
</div><!-- end of post meta -->
|
||||
<hr>
|
||||
@endforeach
|
||||
|
||||
</article>
|
||||
|
||||
<!-- end of page content -->
|
||||
|
||||
<div class="pagination">
|
||||
<?php echo $result->render(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
$num = \App\Model\kb\Relationship::where('category_id','=', $category->id)->get();
|
||||
$article_id = $num->lists('article_id');
|
||||
$numcount = count($article_id);
|
||||
?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
@@ -14,14 +14,14 @@ $category_id = $all->lists('category_id');
|
||||
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
|
||||
<?php $category = App\Model\kb\Category::where('id', $category_id)->first(); ?>
|
||||
<li><a href="{{url('/')}}">{!! Lang::get('lang.home') !!}</a></li>
|
||||
<li><a href="{{url('category-list')}}">{!! Lang::get('lang.allcategory') !!}</a></li>
|
||||
<li><a href="{{url('category-list')}}">{!! Lang::get('lang.category') !!}</a></li>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}">{{$category->name}}</a></li>
|
||||
<li class="active">{{$arti->name}}</li>
|
||||
</ol>
|
||||
</div>
|
||||
@stop
|
||||
@section('content')
|
||||
<div id="content" class="site-content col-md-12">
|
||||
<div id="content" class="site-content col-md-9">
|
||||
<!--
|
||||
<article class=" type-post format-standard hentry clearfix">
|
||||
<h1 class="post-title"><a href="#">{{$arti->name}}</a></h1>
|
||||
@@ -64,7 +64,7 @@ $category_id = $all->lists('category_id');
|
||||
|
||||
<div class="comment-metadata">
|
||||
<small class="date text-muted">
|
||||
<time datetime="2013-10-23T01:50:50+00:00">{!! $comment->created_at !!}</time>
|
||||
<time datetime="2013-10-23T01:50:50+00:00">{!! $comment->created_at->format('l, d-m-Y') !!}</time>
|
||||
</small>
|
||||
</div><!-- .comment-metadata -->
|
||||
</footer><!-- .comment-meta -->
|
||||
@@ -133,3 +133,19 @@ $category_id = $all->lists('category_id');
|
||||
{!! $category->name !!} -
|
||||
@endif
|
||||
@stop
|
||||
|
||||
@section('category')
|
||||
<h2 class="section-title h4 clearfix">{!! Lang::get('lang.categories') !!}<small class="pull-right"><i class="fa fa-hdd-o fa-fw"></i></small></h2>
|
||||
<ul class="nav nav-pills nav-stacked nav-categories">
|
||||
|
||||
<?php $categorys = App\Model\kb\Category::all(); ?>
|
||||
@foreach($categorys as $category)
|
||||
<?php
|
||||
$num = \App\Model\kb\Relationship::where('category_id','=', $category->id)->get();
|
||||
$article_id = $num->lists('article_id');
|
||||
$numcount = count($article_id);
|
||||
?>
|
||||
<li><a href="{{url('category-list/'.$category->slug)}}"><span class="badge pull-right">{{$numcount}}</span>{{$category->name}}</a></li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@stop
|
||||
@@ -10,7 +10,7 @@
|
||||
$title_name = "SUPPORT CENTER";
|
||||
}
|
||||
?>
|
||||
<title> @yield('title') {!! $title_name !!} </title>
|
||||
<title> @yield('title') {!! strip_tags($title_name) !!} </title>
|
||||
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
|
||||
<!-- Bootstrap 3.3.2 -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
|
||||
@@ -266,7 +266,7 @@ $footer4 = App\Model\helpdesk\Theme\Footer4::whereId('1')->first();
|
||||
<hr/>
|
||||
<div class="row">
|
||||
<div class="site-info col-md-6">
|
||||
<p class="text-muted">{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
|
||||
<p class="text-muted">{!! Lang::get('lang.copyright') !!} © {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. {!! Lang::get('lang.all_rights_reserved') !!}. {!! Lang::get('lang.powered_by') !!} <a href="http://www.faveohelpdesk.com/" target="_blank">Faveo</a></p>
|
||||
</div>
|
||||
<div class="site-social text-right col-md-6">
|
||||
<?php $social = App\Model\kb\Social::where('id', '1')->first(); ?>
|
||||
|
||||
Reference in New Issue
Block a user