final commit
This commit is contained in:
@@ -1,154 +1,141 @@
|
||||
<?php
|
||||
|
||||
$date = Date('d-m-Y');
|
||||
$format = 'Y-m-d';
|
||||
$day1 = Date($format,strtotime('-1 day'. $date));
|
||||
|
||||
$depts = App\Model\helpdesk\Agent\Department::all();
|
||||
foreach ($depts as $dept) {
|
||||
// echo $dept->name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
$i = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br/><br/>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br><br>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// echo "created=".$created."<br/>";
|
||||
// echo "closed=".$closed."<br/>";
|
||||
// echo "inprogress=".$inprogress."<br/>";
|
||||
// echo "overdue=".$i."<br/>";
|
||||
// echo "created=".$created."<br>";
|
||||
// echo "closed=".$closed."<br>";
|
||||
// echo "inprogress=".$inprogress."<br>";
|
||||
// echo "overdue=".$i."<br>";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>SmoothDeal</title>
|
||||
</head>
|
||||
|
||||
<body style="background-color: #666">
|
||||
|
||||
<!-- Start Container -->
|
||||
<table align="center" width="600" border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
<tr>
|
||||
<td style="padding: " colspan="2" bgcolor="#FFFFFF">
|
||||
<!-- Start Main Text (introduction) -->
|
||||
<!-- Main Title -->
|
||||
<p style="padding: 15px 30px 20px 50px; margin: 0; font-size: 24px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: center;">
|
||||
|
||||
SmoothDeal
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<span>
|
||||
|
||||
<span><span>
|
||||
<span>
|
||||
|
||||
|
||||
<p>
|
||||
{!! $company !!}
|
||||
</p>
|
||||
<!-- Main Text -->
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: center;">
|
||||
|
||||
<p>
|
||||
<strong> Daily Report</strong>
|
||||
</p>
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 12px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px;">
|
||||
<p>
|
||||
<strong>Hi {!! $name !!},</strong> <br> Below mentioned are your daily report for your {!! $company !!}.
|
||||
</p>
|
||||
<!-- End Main Text (introduction) -->
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td colspan="2" bgcolor="#FFFFFF">
|
||||
<span>
|
||||
<span>
|
||||
|
||||
<!-- Start - Quick overview table -->
|
||||
|
||||
<!-- Quick overview table title -->
|
||||
<p style="padding: 25px 0px 20px 0px; margin: 0; font-size: 18px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: center;">
|
||||
|
||||
|
||||
<p>
|
||||
Overview
|
||||
</p>
|
||||
|
||||
@foreach ($depts as $dept)
|
||||
<?php
|
||||
// echo $dept->name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
name;
|
||||
$created = DB::table('tickets')->select('created_at')->where('dept_id','=',$dept->id)->where('created_at','LIKE','%'.$day1.'%')->count();
|
||||
$closed = DB::table('tickets')->where('dept_id','=',$dept->id)->where('closed_at','LIKE','%'.$day1.'%')->count();
|
||||
$inprogress = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->count();
|
||||
$overdues = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$dept->id)->where('status', '=', 1)->get();
|
||||
$i = 0;
|
||||
foreach ($overdues as $overdue) {
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br/><br/>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$sla_plan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',$overdue->sla)->first();
|
||||
$ovdate = $overdue->created_at;
|
||||
$new_date = date_add($ovdate, date_interval_create_from_date_string($sla_plan->grace_period)).'<br><br>';
|
||||
if(date('Y-m-d H:i:s') > $new_date){
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
// echo "created=".$created."<br/>";
|
||||
// echo "closed=".$closed."<br/>";
|
||||
// echo "inprogress=".$inprogress."<br/>";
|
||||
// echo "overdue=".$i."<br/>";
|
||||
?>
|
||||
<!-- Overview Table -->
|
||||
<table align="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #333;" width="500" border="0" cellspacing="0" cellpadding="10">
|
||||
<tr >
|
||||
<td align="center" bgcolor="#FFF2D9" colspan="2" style="border: 1px solid #F1DDDD; ">
|
||||
<span style="font-size: 18px; color: #158CCA;"><strong>{!! $dept->name !!}</strong></span>
|
||||
</td>
|
||||
</tr>
|
||||
// echo "created=".$created."<br>";
|
||||
// echo "closed=".$closed."<br>";
|
||||
// echo "inprogress=".$inprogress."<br>";
|
||||
// echo "overdue=".$i."<br>";
|
||||
?>
|
||||
|
||||
<span>
|
||||
<span><span>
|
||||
<span>
|
||||
<strong>{!! $dept->name !!}</strong>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>New tickets</strong></td>
|
||||
<td align="center"><strong>{!! $created !!}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Closed tickets</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>{!! $closed !!}</strong></td>
|
||||
</tr>
|
||||
<span>
|
||||
<strong>New tickets</strong>
|
||||
<strong>{!! $created !!}</strong>
|
||||
</span>
|
||||
<span>
|
||||
<strong>Closed tickets</strong>
|
||||
<strong>{!! $closed !!}</strong>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td align="center"><strong>Inprogress tickets</strong></td>
|
||||
<td align="center"><strong>{!! $inprogress !!}</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>Overdue tickets</strong></td>
|
||||
<td align="center" bgcolor="#EBEBEB"><strong>{!! $i !!}</strong></td>
|
||||
</tr>
|
||||
<span>
|
||||
<strong>Inprogress tickets</strong>
|
||||
<strong>{!! $inprogress !!}</strong>
|
||||
</span>
|
||||
<span>
|
||||
<strong>Overdue tickets</strong>
|
||||
<strong>{!! $i !!}</strong>
|
||||
</span>
|
||||
|
||||
<tr>
|
||||
<td colspan="2" style="height: 10px;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- End - Overview table -->
|
||||
|
||||
|
||||
|
||||
</span></span>
|
||||
|
||||
@endforeach
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td style="padding: " colspan="2" bgcolor="#FFFFFF">
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 11px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px;">
|
||||
We should all work hard to guarantee that all tickets are being addressed in a timely manner.
|
||||
</span></span><span>
|
||||
<span>
|
||||
<p>
|
||||
We should all work hard to guarantee that all tickets are being addressed in a timely manner.
|
||||
|
||||
</p>
|
||||
|
||||
<p style="padding: 15px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: bold; font-family: Arial, Helvetica, sans-serif; text-align: left;">
|
||||
Thank You,<br/> Kind Regards,<br/>{!! $company !!}
|
||||
<p>
|
||||
Thank You,<br> Kind Regards,<br>{!! $company !!}
|
||||
</p>
|
||||
|
||||
<!-- Main Text -->
|
||||
<p style="padding: 0px 30px 20px 50px; margin: 0; font-size: 16px; color: #333; font-weight: normal; font-family: Arial, Helvetica, sans-serif; line-height: 22px; text-align: center; color: #3AB4FF;">
|
||||
|
||||
<p>
|
||||
<strong> Powered by Faveo</strong>
|
||||
</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</td>
|
||||
</tr>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</span></span>
|
14
resources/views/emails/random/Admin_mail.blade.php
Normal file
14
resources/views/emails/random/Admin_mail.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello {!! $agent !!},<br><br>
|
||||
New ticket {!! $ticket_number !!} created<br>
|
||||
<br>
|
||||
From
|
||||
Name :- {!! $name !!}<br>
|
||||
E-mail :- {!! $email !!}<br>
|
||||
<br>
|
||||
|
||||
<h4>{!! $content !!}</h4>
|
||||
|
||||
|
||||
<br>
|
||||
Kind Regard,<br>
|
||||
{!! $from !!}
|
25
resources/views/emails/random/Ticket_Create.blade.php
Normal file
25
resources/views/emails/random/Ticket_Create.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
---Reply above this line---<br/><br/>
|
||||
|
||||
<?php
|
||||
if(isset($content)) {
|
||||
?>
|
||||
|
||||
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}<br/><br/>{!! $sign !!}</h4>
|
||||
You can check the status of or update this ticket online at: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/><br/>
|
||||
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
|
||||
Hello {!!$name!!} <br/><br/>
|
||||
Thank you for contacting us. This is an automated response confirming the receipt of your ticket. Our team will get back to you as soon as possible. When replying, please make sure that the ticket ID is kept in the subject so that we can track your replies.<br/><br/>
|
||||
Ticket ID: <b>{!!$ticket_number!!}</b><br/>
|
||||
{{-- Subject: <b>Ticket Subject</b><br/> --}}
|
||||
{{-- Department: <b>Support</b><br/> --}}
|
||||
{{-- Status: <b>Open</b><br/> --}}
|
||||
{{-- Priority: <b>Normal</b><br/><br/> --}}
|
||||
{!! $sign !!}
|
||||
You can check the status of or update this ticket online at: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/><br/>
|
||||
<?php
|
||||
}
|
||||
?>
|
4
resources/views/emails/random/Ticket_Reply.blade.php
Normal file
4
resources/views/emails/random/Ticket_Reply.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
---Reply above this line---<br/><br/><br/>
|
||||
|
||||
Hello {{$name}} <br/><br/>
|
||||
Your ticket have been created please visit this link for your ticket query.<br/><br/>
|
9
resources/views/emails/random/Ticket_assign.blade.php
Normal file
9
resources/views/emails/random/Ticket_assign.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
Hello {!! $agent !!},<br/><br/>
|
||||
Ticket No: {!! $ticket_number !!} <br/>
|
||||
|
||||
Has been assigned to you by {!! $master !!}<br/>
|
||||
|
||||
<br/>
|
||||
Thank You<br/><br/>
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
9
resources/views/emails/random/check_ticket.blade.php
Normal file
9
resources/views/emails/random/check_ticket.blade.php
Normal file
@@ -0,0 +1,9 @@
|
||||
Hello {!! $user !!},<br/><br/>
|
||||
|
||||
|
||||
Click the link below to view your Requested ticket <br/><br/>
|
||||
<a href="{!! $link !!}">{!! $link !!}</a><br/><br/>
|
||||
|
||||
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
7
resources/views/emails/random/close_ticket.blade.php
Normal file
7
resources/views/emails/random/close_ticket.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
Hello,<br/><br/>
|
||||
This message is regarding your ticket ID {{ $ticket_number }}. We are changing the status of this ticket to 'Closed' as the issue appears to be resolved.<br/>
|
||||
<br/>
|
||||
Thank you<br/>
|
||||
<br/>
|
||||
Kind regards,<br/>
|
||||
{!! $from !!}
|
13
resources/views/emails/random/email_reply.blade.php
Normal file
13
resources/views/emails/random/email_reply.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
Hello {!! $agent !!},<br/><br/>
|
||||
A reply been made to ticket {!! $ticket_number !!} <br/>
|
||||
<br/>
|
||||
From
|
||||
Name: {!! $name !!}<br/>
|
||||
E-mail: {!! $email !!}<br/>
|
||||
<br/>
|
||||
|
||||
<h4 style="background-color:#F3F3F3;padding:20px;border:1px;border-radius:7px;">{!! $content !!}</h4>
|
||||
<br/>
|
||||
<br/>
|
||||
Kind Regards,<br/>
|
||||
{!! $from !!}
|
14
resources/views/emails/random/pass.blade.php
Normal file
14
resources/views/emails/random/pass.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello {!! $name !!}, <br/><br/>
|
||||
|
||||
This email is confirmation that you are now registered at our helpdesk. <br/> <br/>
|
||||
|
||||
Registered Email: {!! $emailadd !!} <br/>
|
||||
Password: {{$password}} <br/> <br/>
|
||||
|
||||
You can visit the helpdesk to browse articles and contact us at any time: <a href="{!! \URL::route('ticket2') !!}">{!! \URL::route('ticket2') !!}</a><br/> <br/>
|
||||
|
||||
Thank You.<br/><br/>
|
||||
|
||||
Kind Regards,<br/><br/>
|
||||
|
||||
{!! $from !!}
|
1
resources/views/emails/random/password.blade (2).php
Normal file
1
resources/views/emails/random/password.blade (2).php
Normal file
@@ -0,0 +1 @@
|
||||
Click here to reset your password: {!! url('password/reset/'.$token) !!}
|
14
resources/views/emails/random/password.blade.php
Normal file
14
resources/views/emails/random/password.blade.php
Normal file
@@ -0,0 +1,14 @@
|
||||
Hello <br/><br/>
|
||||
|
||||
You asked to reset your password. To do so, please click this link:<br/><br/>
|
||||
|
||||
<a href="{!! url('password/reset/'.$token) !!}">{!! url('password/reset/'.$token) !!}</a><br/><br/>
|
||||
|
||||
<br/>
|
||||
This will let you change your password to something new. If you didn't ask for this, don't worry, we'll keep your password safe.<br/><br/>
|
||||
|
||||
Thank You.<br/>
|
||||
<br/>
|
||||
Kind Regards,<br/><br/>
|
||||
<?php $company = App\Model\helpdesk\Settings\Company::where('id','=','1')->first(); $company = $company->company_name; ?>
|
||||
{!! $company !!}
|
1
resources/views/emails/random/report.blade.php
Normal file
1
resources/views/emails/random/report.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
<pre>{{$e}}</pre>
|
11
resources/views/emails/random/ticket_re-reply.blade.php
Normal file
11
resources/views/emails/random/ticket_re-reply.blade.php
Normal file
@@ -0,0 +1,11 @@
|
||||
---Reply above this line---<br/><br/>
|
||||
|
||||
{!! $content !!}<br/>
|
||||
<?php
|
||||
if($Agent_Signature != null) {
|
||||
?>
|
||||
{!! $Agent_Signature !!}<br/>
|
||||
<?php } ?>
|
||||
|
||||
Ticket Details<br/>
|
||||
Ticket ID: {!! $ticket_number !!}<br/>
|
@@ -0,0 +1,123 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<!-- <h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="{{route('template.create')}}" class="btn btn-primary pull-right">{{Lang::get('lang.create_template')}}</a>-->
|
||||
<button class="btn btn-primary pull-right" data-toggle="modal" data-target="#createtemp">{{Lang::get('lang.create_template')}}</button>
|
||||
|
||||
<div class="modal fade" id="createtemp">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
{!! Form::open(['route'=>'template.createnew']) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">{{Lang::get('lang.create_template')}}</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
|
||||
|
||||
{!! Form::label('folder_name', 'Folder Name:',['style'=>'display: block']) !!}
|
||||
|
||||
|
||||
|
||||
{!! Form::text('folder_name',null,['class'=>'form-control'])!!}
|
||||
|
||||
{!! $errors->first('folder', '<spam class="help-block">:message</spam>') !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<div class="form-group">
|
||||
{!! Form::submit('Create Folder',['class'=>'btn btn-primary'])!!}
|
||||
|
||||
<button type="button" class="btn btn-default pull-left" data-dismiss="modal">Close</button>
|
||||
</div></div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</div>
|
||||
</div></div>
|
||||
|
||||
<div class="box-body table-responsive no-padding">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<table class="table table-hover" style="overflow:hidden;">
|
||||
<tr>
|
||||
<th width="100px">{{Lang::get('lang.name')}}</th>
|
||||
|
||||
</tr>
|
||||
<!-- Foreach @var templates as @var template -->
|
||||
|
||||
@foreach($templates as $template)
|
||||
<?php if ($template === '.' or $template === '..') continue; ?>
|
||||
<tr>
|
||||
<!-- Template Name with Link to Edit page along Id -->
|
||||
<td><a href="{{route('template.read',[$template,$directory])}}">{!! $template !!}</a></td>
|
||||
<!-- template Status : if status==1 active -->
|
||||
<!-- Deleting Fields -->
|
||||
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
<!-- Set a link to Create Page -->
|
||||
|
||||
|
||||
|
||||
|
||||
</table>
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -0,0 +1,105 @@
|
||||
@extends('themes.default1.admin.layout.admin')
|
||||
|
||||
@section('Emails')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('emails-bar')
|
||||
active
|
||||
@stop
|
||||
|
||||
@section('template')
|
||||
class="active"
|
||||
@stop
|
||||
|
||||
@section('HeadInclude')
|
||||
@stop
|
||||
<!-- header -->
|
||||
@section('PageHeader')
|
||||
|
||||
@stop
|
||||
<!-- /header -->
|
||||
<!-- breadcrumbs -->
|
||||
@section('breadcrumbs')
|
||||
<ol class="breadcrumb">
|
||||
|
||||
</ol>
|
||||
@stop
|
||||
<!-- /breadcrumbs -->
|
||||
<!-- content -->
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header">
|
||||
<h2 class="box-title">{{Lang::get('lang.templates')}}</h2><a href="modal" class="btn btn-primary pull-right" data-toggle="modal" data-target="#modal3">Edit Template</a></div>
|
||||
|
||||
<div class="modal modal-primary" id="modal3">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content" style="width:90%">
|
||||
{!! Form::model($contents,['route'=>['template.write', $template,$path],'method'=>'PATCH','files' => true]) !!}
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">Edit</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
<div class="form-group">
|
||||
{!! Form::textarea('templatedata',$contents,['class'=>'form-control'])!!}
|
||||
</div>
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
<!-- </div> -->
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- <div class="col-lg-12 col-xs-6 col-sm-6" style="margin-top: 3%;"> -->
|
||||
|
||||
<!-- </div> -->
|
||||
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-outline pull-left" data-dismiss="modal">Close</button>
|
||||
<button type="submit" class="btn btn-outline">Save changes</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div><!-- /.modal-content -->
|
||||
</div><!-- /.modal-dialog -->
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
|
||||
<!-- check whether success or not -->
|
||||
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success alert-dismissable">
|
||||
<i class="fa fa-check-circle"></i>
|
||||
<b>Success!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('success')}}
|
||||
</div>
|
||||
@endif
|
||||
<!-- failure message -->
|
||||
@if(Session::has('fails'))
|
||||
<div class="alert alert-danger alert-dismissable">
|
||||
<i class="fa fa-ban"></i>
|
||||
<b>Fail!</b>
|
||||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||||
{{Session::get('fails')}}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="box-body" style="background-color: #f3f3f3; height: 410px;">
|
||||
|
||||
{!! nl2br($contents) !!}
|
||||
|
||||
</div>
|
||||
|
||||
@stop
|
||||
</div><!-- /.box -->
|
||||
@section('FooterInclude')
|
||||
|
||||
@stop
|
||||
@stop
|
||||
<!-- /content -->
|
@@ -131,6 +131,17 @@
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
<div class="settingdivblue">
|
||||
<a href="{{ url('list-templates') }}"><span class="fa-stack fa-2x">
|
||||
|
||||
<i class="fa fa-mail-forward fa-stack-1x"></i>
|
||||
</span></a>
|
||||
</div>
|
||||
<center class="box-title" >{!! Lang::get('lang.templates') !!}</center>
|
||||
</div>
|
||||
</div>
|
||||
<!--/.col-md-2-->
|
||||
<div class="col-md-2 col-sm-6">
|
||||
<div class="settingiconblue">
|
||||
|
@@ -39,8 +39,12 @@ class="active"
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "01/04/2016";
|
||||
var timestring2 = "02/09/2016";
|
||||
$('#datepicker4').datetimepicker({
|
||||
format: 'DD-MM-YYYY'
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
// $('#datepicker').datepicker()
|
||||
});
|
||||
@@ -55,8 +59,12 @@ class="active"
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
var timestring1 = "01/04/2016";
|
||||
var timestring2 = "02/09/2016";
|
||||
$('#datetimepicker3').datetimepicker({
|
||||
format: 'DD-MM-YYYY'
|
||||
format: 'DD/MM/YYYY',
|
||||
minDate:moment(timestring1).startOf('day'),
|
||||
maxDate:moment(timestring2).startOf('day')
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -234,11 +242,12 @@ $delete = App\Model\helpdesk\Ticket\Tickets::where('dept_id','=',$department->id
|
||||
$('#foo').submit();
|
||||
});
|
||||
$('#foo').submit(function(event) {
|
||||
|
||||
// get the form data
|
||||
// there are many ways to get this data using jQuery (you can use the class or id also)
|
||||
var formData = $('#datepicker4').val();
|
||||
var dateData = $('#datetimepicker3').val();
|
||||
var date1 = $('#datepicker4').val();
|
||||
var date2 = $('#datetimepicker3').val();
|
||||
var formData = date1.split("/").join('-');
|
||||
var dateData = date2.split("/").join('-');
|
||||
//$('#foo').serialize();
|
||||
// process the form
|
||||
$.ajax({
|
||||
|
Reference in New Issue
Block a user