update for version 1.0.1

This commit is contained in:
sujitprasad
2015-10-23 14:15:29 +05:30
parent 82b878e93b
commit 3d425dc380
8348 changed files with 10020 additions and 4171 deletions

View File

@@ -0,0 +1,451 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">Home</a></li>
<li class="active">Ticket Status</li>
</ol>
</div>
@stop
@section('content')
<?php
$tickets = App\Model\helpdesk\Ticket\Tickets::where('id','=',\Crypt::decrypt($id))->first();
$thread = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',\Crypt::decrypt($id))->first();
//$user = App\User::where('id','=',$id1)->first();?>
<!-- Main content -->
<div class="box box-primary">
<div class="box-header">
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
</section>
<div class="pull-right">
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
{{-- <button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button> --}}
<!-- </div> -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
Change Status <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="open"><i class="fa fa-folder-open" style="color:#FFD600;"> </i>Open</a></li>
<li><a href="#" id="close"><i class="fa fa-check" style="color:#15F109;"> </i>Close</a></li>
<li><a href="#" id="resolved"><i class="fa fa-check-circle " style="color:#0EF1BE;"> </i> Resolved</a></li>
</ul>
</div>
{!! Form::close() !!}
</div>
</div>
<div class="box-body" style="margin-bottom:-10px">
<div class="row">
<div id="loader" style="display:none;">
<div class="col-xs-5">
</div>
<div class="col-xs-1">
<img src="{{asset("lb-faveo/dist/img/gifloader.gif")}}"><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
</div>
<div class="col-xs-6">
</div>
</div>
<section class="content" id="refresh" style="margin-bottom:-10px;margin-top:-10px">
<div class="col-md-12">
<?php
$priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
?>
<div class="callout callout-default ">
<div class="row">
<div class="col-md-3">
<?php
$sla = $tickets->sla;
$SlaPlan = App\Model\helpdesk\Manage\Sla_plan::where('id','=',1)->first();?>
<b>SLA Plan: {{$SlaPlan->grace_period}} </b>
</div>
<div class="col-md-3">
<b>Created Date: </b> {{ UTC::usertimezone($tickets->created_at) }}
</div>
<div class="col-md-3">
<b>Due Date: </b>
<?php
$time = $tickets->created_at;
$time = date_create($time);
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
echo UTC::usertimezone(date_format($time, 'd/m/Y H:i:s'));
?>
</div>
<div class="col-md-3">
<?php $response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->where('is_internal','=',0)->get();?>
@foreach($response as $last)
<?php $ResponseDate = $last->created_at; ?>
@endforeach
<b>Last Response: </b> {{ UTC::usertimezone($ResponseDate)}}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Status:</b></td> <?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?>
@if($status->id == 1)
<td title="{{$status->properties}}" style="color:orange">{{$status->state}}</td></tr>
@elseif($status->id == 2)
<td title="{{$status->properties}}" style="color:green">{{$status->state}}</td></tr>
@elseif($status->id == 3)
<td title="{{$status->properties}}" style="color:green">{{$status->state}}</td></tr>
@endif
<tr><td><b>Priority:</b></td> <?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?>
@if($priority->priority_id == 1)
<td title="{{$priority->priority_desc}}" style="color:green">{{$priority->priority}}</td>
@elseif($priority->priority_id == 2)
<td title="{{$priority->priority_desc}}" style="color:orange">{{$priority->priority}}</td>
@elseif($priority->priority_id == 3)
<td title="{{$priority->priority_desc}}" style="color:red">{{$priority->priority}}</td>
@endif
</tr>
<tr><td><b>Department:</b></td>
<?php
$help_topic = App\Model\helpdesk\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();
$department = App\Model\helpdesk\Agent\Department::where('id', '=', $help_topic->department)->first();
?>
<td title="{{ $department->name }}">{!! $department->name !!}</td></tr>
</table>
<!-- </div> -->
</div>
<div class="col-md-6">
<!-- <div class="callout callout-success"> -->
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>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>
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
</table>
</div>
<!-- </div> -->
</section>
</div>
</div>
</div>
<?php
$conversations = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->where('is_internal', '=', 0)->paginate(10);
foreach ($conversations as $conversation) {
$ConvDate1 = $conversation->created_at;
$ConvDate = explode(' ', $ConvDate1);
$date = $ConvDate[0];
$time = $ConvDate[1];
$time = substr($time, 0, -3);
if (isset($data) && $date == $data) {
} else {
$data = $ConvDate[0];
}
$role = App\User::where('id','=',$conversation->user_id)->first();
$attachment = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->first();
if($attachment == null ) {
$body = $conversation->body;
}
else {
$body = $conversation->body;
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->orderBy('id', 'DESC')->get();
foreach($attachments as $attachment)
{
if($attachment->type == 'pdf')
{
}elseif($attachment->type == 'docx')
{
}
else
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<img src="data:image/jpg;base64,' . base64_encode($data) . '" />';
$body = str_replace($attachment->name, "data:image/jpg;base64," . base64_encode($data), $body);
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
}
}
}
$string = $body;
$start = "<head>";
$end = "</head>";
if(strpos($string,$start) == false || strpos($string,$start) == false)
{
}
else
{
$ini = strpos($string,$start);
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
$parsed = substr($string,$ini,$len);
$body2 = $parsed;
$body = str_replace($body2 ," " ,$body);
}
?>
<ol class="comment-list" >
<li class="comment">
<article class="comment-body">
<footer class="comment-meta"<?php if($role->role == "user") { ?> style="background-color: hsla(100, 100%, 51%, 0.15)" <?php } else { ?> style="background-color:#FFFCB3" <?php } ?> >
<div class="comment-author">
@if($role->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{$role->profile_pic}}"alt="" height="50" width="50" class="avatar" <?php if($role->role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" <?php } else { ?> style="box-shadow: 0 1px 3px #FFEC00;" <?php } ?> >
@else
<img src="{{ Gravatar::src($role->email) }}" alt="" height="50" width="50" class="avatar" <?php if($role->role == "user") { ?>style="box-shadow: 0 1px 3px #00FF26;" <?php } else { ?> style="box-shadow: 0 1px 3px #FFEC00;" <?php } ?> >
@endif
<span class="hidden-xs">{{Auth::user()->first_name." ".Auth::user()->last_name}}</span>
@if($role->role == "user")
<b class="fn"><a href="#" rel="external" class="url">{{$role->user_name}}</a></b>
@else
<b class="fn"><a href="#" rel="external" class="url">{{$role->first_name." ".$role->last_name}}</a></b>
@endif
</div><!-- .comment-author -->
<div class="comment-metadata">
<small class="date text-muted">
<time datetime="2013-10-23T01:50:50+00:00"><i class="fa fa-clock-o"> </i> {{ UTC::usertimezone($conversation->created_at) }}</time>
</small>
</div><!-- .comment-metadata -->
</footer><!-- .comment-meta -->
<div class="comment-content">
<p>{!! $body !!}</p>
</div><!-- .comment-content -->
<div class="timeline-footer" style="margin-bottom:-5px">
<?php
$attachments = App\Model\helpdesk\Ticket\Ticket_attachments::where('thread_id','=',$conversation->id)->get();
$i = 0;
foreach($attachments as $attachment) {
if($attachment->poster == 'ATTACHMENT') {
$i++;
}
}
if($i>0)
{
echo "<hr style='border-top: 1px dotted #FFFFFF;margin-top:0px;margin-bottom:0px;background-color:#8B8C90;'><h4 class='box-title'><b>".$i." </b> Attachments</h4>";
}
?>
<ul class='mailbox-attachments clearfix'>
<?php
foreach($attachments as $attachment)
{
$size = $attachment->size;
$units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');
$power = $size > 0 ? floor(log($size, 1024)) : 0;
$value = number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power];
if($attachment->poster == 'ATTACHMENT')
{
if($attachment->type == 'jpg'||$attachment->type == 'JPG'||$attachment->type == 'jpeg'||$attachment->type == 'JPEG'||$attachment->type == 'png'||$attachment->type == 'PNG'||$attachment->type == 'gif'||$attachment->type == 'GIF')
{
$image = @imagecreatefromstring($attachment->file);
ob_start();
imagejpeg($image, null, 80);
$data = ob_get_contents();
ob_end_clean();
$var = '<a href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><img style="max-width:200px;height:133px;" src="data:image/jpg;base64,' . base64_encode($data) . '"/></a>';
echo '<li style="background-color:#f4f4f4;"><span class="mailbox-attachment-icon has-img">'.$var.'</span><div class="mailbox-attachment-info"><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></div></li>';
}
else
{
$var = '<a style="max-width:200px;height:133px;color:#666;" href="'.URL::route('image', array('image_id' => $attachment->id)).'" target="_blank"><span class="mailbox-attachment-icon" style="background-color:#fff;">'.strtoupper($attachment->type).'</span><div class="mailbox-attachment-info"><span ><b style="word-wrap: break-word;">'.$attachment->name.'</b><br/><p>'.$value.'</p></span></div></a>';
echo '<li style="background-color:#f4f4f4;">'.$var.'</li>';
}
}
}
?>
</ul>
</div>
</article><!-- .comment-body -->
</li><!-- .comment -->
</ol>
<?php
?>
<?php }
?>
<div class="pull-right" style="margin-top:-30px;margin-bottom:-30px">
<?php echo $conversations->setPath( url('check_ticket/{'.$id.'}'))->render(); ?>
</div>
<br/><br/>
@if(Session::has('success1'))
<div class="alert alert-success alert-dismissable" id='formabc'>
<i class="fa fa-check-circle"></i>
<b>Success!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success1')}}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails1'))
<div class="alert alert-danger alert-dismissable" id='formabc'>
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails1')}}
</div>
@endif
<?php $id2 = Crypt::decrypt($id); ?>
<div id="respond" class="comment-respond form-border">
<h3 id="reply-title" class="comment-reply-title section-title"><i class="line"></i>Leave a Reply</h3>
@if(Auth::user())
{!! Form::open(['url'=>'post/reply/'.$id2.'#formabc']) !!}
@else
{!! Form::open(['url'=>'post-ticket-reply/'.$id.'#formabc']) !!}
@endif
<div class="row">
<div class="form-group">
<div class="col-md-12">
<div class="form-group ">
<textarea class="form-control" name="comment" cols="30" rows="8"></textarea>
</div>
</div>
</div>
</div>
<div class="text-right">
<button type="submit" class="btn btn-custom btn-lg">Post Comment</button>
</div>
{!! Form::close() !!}
</div>
<script type="text/javascript">
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
jQuery(document).ready(function() {
// Close a ticket
$('#close').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/close/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
// $("#d1").trigger("click");
// var message = "Success! Your Ticket have been Closed";
// $("#alert11").show();
// $('#message-success1').html(message);
// setInterval(function(){
// $("#alert11").hide();
// setTimeout(function() {
// var link = document.querySelector('#load-inbox');
// if(link) {
// link.click();
// }
// }, 500);
// },2000);
}
})
return false;
});
// Resolved a ticket
$('#resolved').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/resolve/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
var message = "Success! Your Ticket have been Resolved";
$("#alert11").show();
$('#message-success1').html(message);
setInterval(function(){$("#alert11").hide();
setTimeout(function() {
var link = document.querySelector('#load-inbox');
if(link) {
link.click();
}
}, 500);
},2000);
}
})
return false;
});
// Open a ticket
$('#open').on('click', function(e) {
$.ajax({
type: "GET",
url: "../ticket/open/{{$tickets->id}}",
beforeSend: function() {
$("#refresh").hide();
$("#loader").show();
},
success: function(response) {
$("#refresh").load("../check_ticket/{!! $id !!} #refresh");
$("#refresh").show();
$("#loader").hide();
var message = "Success! Your Ticket have been Opened";
$("#alert11").show();
$('#message-success1').html(message);
setInterval(function(){$("#alert11").hide(); },4000);
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,158 @@
@extends('themes.default1.client.layout.client')
<!-- breadcrumbs -->
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="{!! URL::route('form') !!}">Submit Ticket</a></li>
</ol>
</div>
@stop
<!-- /breadcrumbs -->
@section('check')
<div class="banner-wrapper text-center clearfix">
<h3 class="banner-title text-info h4">Have a Ticket?</h3>
<div class="banner-content">
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
{!! Form::label('ticket_number',Lang::get('lang.ticket_number'),['style' => 'display: block']) !!}
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
<br/><input type="submit" value="Check Ticket Status" class="btn btn-info">
{!! Form::close() !!}
</div>
</div>
@stop
<!-- content -->
@section('content')
<div id="content" class="site-content col-md-9">
@if(Session::has('message'))
<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">&times;</button>
{{Session::get('message')}}
</div>
@endif
<!-- open a form -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!--
|====================================================
| SELECT FROM
|====================================================
-->
<?php
$encrypter = app('Illuminate\Encryption\Encrypter');
$encrypted_token = $encrypter->encrypt(csrf_token());
?>
<input id="token" type="hidden" value="{{$encrypted_token}}">
{!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
<div>
<div class="content-header">
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
</div>
<div class="row col-md-12">
<div class="col-md-12 form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic', 'Choose a Help Topic') !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
<?php
$forms = App\Model\helpdesk\Form\Forms::get();
$helptopic = App\Model\helpdesk\Manage\Help_topic::get();
?>
<select name="helptopic" class="form-control" id="selectid">
<?php
$system_default_department = App\Model\helpdesk\Settings\System::where('id','=',1)->first();
if($system_default_department->department) {
$department_relation_helptopic = App\Model\helpdesk\Manage\Help_topic::where('department','=',$system_default_department->department)->first();
$default_helptopic = $department_relation_helptopic->id;
} else {
$default_helptopic = 0;
}
?>
<option value="{!! $default_helptopic !!}">Default</option>
@foreach($helptopic as $topic)
<option value="{!! $topic->id !!}">{!! $topic->topic !!}</option>
@endforeach
{{-- @foreach($forms as $key=>$value) --}}
{{-- <option value="{!! $value->id !!}">{!! ucfirst($value->formname) !!}</option> --}}
{{-- @endforeach --}}
</select>
</div>
<div class="col-md-12 form-group {{ $errors->has('Name') ? 'has-error' : '' }}">
{!! Form::label('Name',Lang::get('lang.name')) !!}
{!! $errors->first('Name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Name',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-6 form-group {{ $errors->has('Email') ? 'has-error' : '' }}">
{!! Form::label('Email',Lang::get('lang.email')) !!}
{!! $errors->first('Email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Email',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-6 form-group {{ $errors->has('Phone') ? 'has-error' : '' }}">
{!! Form::label('Phone',Lang::get('lang.phone')) !!}
{!! $errors->first('Phone', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Phone',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12 form-group {{ $errors->has('Subject') ? 'has-error' : '' }}">
{!! Form::label('Subject',Lang::get('lang.subject')) !!}
{!! $errors->first('Subject', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('Subject',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12 form-group {{ $errors->has('Details') ? 'has-error' : '' }}">
{!! Form::label('Details',Lang::get('lang.message')) !!}
{!! $errors->first('Details', '<spam class="help-block">:message</spam>') !!}
{!! Form::textarea('Details',null,['class' => 'form-control']) !!}
</div>
<div class="col-md-12" id="response"> </div>
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}"> </div>
</div>
</div>
{!! Form::close() !!}
</div>
<!--
|====================================================
| SELECTED FORM STORED IN SCRIPT
|====================================================
-->
<script type="text/javascript">
$('#selectid').on('change',function() {
var value = $('#selectid').val();
$.ajax({
url: "postform/"+ value,
type: "post",
data: value,
success: function(data) {
$('#response').html(data);
//location.reload();
}
});
});
$(function () {
//Add text editor
$("textarea").wysihtml5();
});
</script>
@stop

View File

@@ -0,0 +1,416 @@
@extends('themes.default1.client.layout.client')
<?php $user = App\User::where('id','=',$tickets->user_id)->first();?>
@section('nav1')
class="active"
@stop
@section('My')
class="active"
@stop
@section('sidebar')
<li class="header">TICKET INFORMATION</li>
<li>
<a href="">
<span>TICKET ID</span>
</br><b>#{{$tickets->ticket_number}}</b>
</a>
</li>
<li>
<a href="">
<span>USER</span>
</br><i class="fa fa-user"> </i> <b>{{$user->email}}</b>
</a>
</li>
<li>
<a href="">
@if($tickets->assigned_to > 0)
<span>ASSIGNED TO</span>
</br> <b>{{$tickets ->assigned_to}}</b>
@else
<span>UNASSIGNED</span>
@endif
</a>
</li>
@stop
@section('content')
<!-- Main content -->
<!-- Main content -->
<div class="box box-primary">
<div class="box-header">
<section class="content-header"><h3 class="box-title"><i class="fa fa-user"> </i> {{$thread->title}} </h3> ( {{$tickets->ticket_number}} )
</section>
<div class="pull-right">
<!-- <button type="button" class="btn btn-default"><i class="fa fa-edit" style="color:green;"> </i> Edit</button> -->
<button type="button" class="btn btn-default"><i class="fa fa-print" style="color:blue;"> </i> {!! link_to_route('ticket.print','Print',[$tickets->id]) !!}</button>
<!-- </div> -->
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-exchange" style="color:teal;"> </i>
Change Status <span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="open"><i class="fa fa-folder-open-o" style="color:yellow;"> </i>Open</a></li>
<li><a href="#" id="close"><i class="fa fa-check" style="color:green;"> </i>Close</a></li>
<li><a href="#" id="resolved"><i class="fa fa-check-circle-o " style="color:green;"> </i> Resolved</a></li>
</ul>
</div>
{!! Form::close() !!}
</div>
</div>
<div class="box-body">
<div class="row">
<section class="content" id="refresh">
<div class="col-md-12">
<?php
$priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();
?>
<div class="callout callout-{!! $priority->priority_color !!}">
<div class="row">
<div class="col-md-3">
<?php
$sla = $tickets->sla;
$SlaPlan = App\Model\Manage\Sla_plan::where('id','=',1)->first();?>
<b>SLA Plan: {{$SlaPlan->grace_period}} </b>
</div>
<div class="col-md-3">
<b>Created Date: </b> {{date_format($tickets->created_at, 'd/m/Y H:i:s')}}
</div>
<div class="col-md-3">
<b>Due Date: </b>
<?php
$time = $tickets->created_at;
$time = date_create($time);
date_add($time, date_interval_create_from_date_string($SlaPlan->grace_period));
echo date_format($time, 'd/m/Y H:i:s');
?>
</div>
<div class="col-md-3">
<?php $response = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->get();?>
@foreach($response as $last)
<?php $ResponseDate = $last->created_at; ?>
@endforeach
<b>Last Response: </b> {{date_format($ResponseDate, 'd/m/Y H:i:s')}}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Status:</b></td> <?php $status = App\Model\Ticket\Ticket_Status::where('id','=',$tickets->status)->first();?><td title="{{$status->properties}}">{{$status->state}}</td></tr>
<tr><td><b>Priority:</b></td> <?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id','=',$tickets->priority_id)->first();?><td title="{{$priority->priority_desc}}">{{$priority->priority}}</td></tr>
<tr><td><b>Department:</b></td> <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->department}}</td></tr>
</table>
<!-- </div> -->
</div>
<div class="col-md-6">
<!-- <div class="callout callout-success"> -->
<table class="table table-hover">
<!-- <tr><th></th><th></th></tr> -->
<tr><td><b>Help Topic:</b></td> <?php $help_topic = App\Model\Manage\Help_topic::where('id','=',$tickets->help_topic_id)->first();?><td title="{{$help_topic->topic}}">{{$help_topic->topic}}</td></tr>
<tr><td><b>Last Message:</b></td> <td>{{$last->poster}}</td></tr>
</table>
</div>
<!-- </div> -->
</section>
</div>
</div>
</div>
<div class='row'>
<div class='col-xs-12'>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#General" data-toggle="tab" style="color:green;"><i class="fa fa-reply-all"> </i> Reply</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="General">
<div id="t1">
{!! Form::open(['route'=>'ticket.reply']) !!}
<div class="form-group">
</div>
<div class="form-group">
<div class="row">
<input type="hidden" name="ticket_ID" value="{{$tickets->id}}">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
{!! Form::label('To', 'To:') !!}
</div>
<div class="col-md-10">
{!! Form::text('To',$user->email,['class'=>'form-control','style'=>'width:55%'])!!}
{!! $errors->first('To', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
{!! Form::label('Reply Content', 'ReplyContent:') !!}
</div>
<div class="col-md-10">
<textarea name="ReplyContent"></textarea>
{!! $errors->first('ReplyContent', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
</div>
<div class="col-md-10">
<button type="submit" class="btn btn-primary"><i class="fa fa-check-square-o" style="color:blue;"> </i> Update</button> </div>
</div>
</div>
</div>
{!!Form::close()!!}
</div>
<div id="t2" style="display:none">
{!! Form::open(['route'=>'ticket.reply']) !!}
<div class="form-group">
<button type="submit" id="tt1" class="btn btn-default"><i class="fa fa-check-square-o" style="color:green;"> </i> Update</button>
<button style="display:none;" type="submit" id="tt2" class="btn btn-default"><i class="fa fa-check-square-o" style="color:blue;"> </i> Update</button>
<button type="button" class="btn btn-default"><i class="fa fa-hand-o-right" style="color:orange;"> </i> {!! link_to_route('assign.ticket','Assign') !!}</button>
<button type="button" id="internal" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
<button type="button" class="btn btn-default"><i class="fa fa-arrows-alt" style="color:red;"> </i> Surrender</button>
</div>
<div class="form-group">
<div class="row">
<input type="hidden" name="ticket_ID" value="{{$tickets->id}}">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
<label>Subject</label>
</div>
<div class="col-md-10">
{!! Form::text('To',$user->email,['class'=>'form-control','style'=>'width:55%'])!!}
{!! $errors->first('To', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="form-group {{ $errors->has('title') ? 'has-error' : '' }}">
<div class="col-md-2">
<label>Message</label>
</div>
<div class="col-md-10">
<textarea name="ReplyContent"></textarea>
{!! $errors->first('ReplyContent', '<spam class="help-block text-red">:message</spam>') !!}
</div>
</div>
</div>
</div>
{!!Form::close()!!}
</div>
</div>
<div class="tab-pane" id="Reply" >
<div class="form-group">
<button type="button" class="btn btn-default"><i class="fa fa-mail-forward" style="color:green;"> </i> Send</button>
<button type="button" class="btn btn-default"><i class="fa fa-th-large" style="color:teal;"> </i> Option</button>
<button type="button" class="btn btn-default"><i class="fa fa-file-text" style="color:blue;"> </i> Internal Notes</button>
</div>
<form>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>From</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:40%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>To</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="to" id="to" style="width:55%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Subject</label>
</div>
<div class="col-md-10">
<input type="text" class="form-control" name="from" id="from" style="width:100%" />
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Response</label>
</div>
<div class="col-md-10">
<select class="form-control" style="width:55%" >
<option>Select a canned response</option>
<option>Original Message</option>
<option>Last Message</option>
</select>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-2">
<label>Reply Content</label>
</div>
<div class="col-md-10">
<textarea id="txtEditor2"> </textarea>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- row -->
<div class="row">
<div class="col-md-12">
<!-- The time line -->
<ul class="timeline">
<!-- timeline time label -->
<?php $conversations = App\Model\Ticket\Ticket_Thread::where('ticket_id','=',$tickets->id)->paginate(2);
foreach ($conversations as $conversation) {
?>
<li class="time-label">
<?php
$ConvDate1 = $conversation->created_at;
$ConvDate = explode(' ',$ConvDate1);
$date = $ConvDate[0];
$time = $ConvDate[1];
$time = substr($time, 0, -3);
if(isset($data) && $date==$data){
} else {
?> <span class="bg-green">
{{date_format($conversation->created_at, 'd/m/Y')}}
</span> <?php
$data = $ConvDate[0];
}
?>
</li>
<li>
<?php if($conversation->staff_id > 0) { ?>
<i class="fa fa-group bg-yellow" title="Posted by Support Team"></i>
<?php } elseif($conversation->user_id > 0) { ?>
<i class="fa fa-user bg-aqua" title="Posted by Customer"></i>
<?php } else { ?>
<i class="fa fa-mail-reply-all bg-purple" title="Posted by System"></i>
<?php } ?>
<div class="timeline-item">
<span id="date" class="time"><i class="fa fa-clock-o"> </i> {{date_format($conversation->created_at, 'd/m/Y H:i:s')}}</span>
<h3 class="timeline-header"><a href="#">{{$conversation->poster}}</a></h3>
<div class="timeline-body">
{!! $conversation->body !!}
</div>
</div>
</li>
<?php $lastid = $conversation->id ?>
<?php } ?>
<li>
<i class="fa fa-clock-o bg-gray"></i>
</li>
<ul class="pull-right">
<?php echo $conversations->setPath( url('/thread/'.'1'))->render(); ?>
</ul>
</ul>
</div><!-- /.col -->
</div><!-- /.row -->
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#close').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/close/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
}
})
return false;
});
$('#resolved').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/resolve/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
}
})
return false;
});
$('#open').on('click', function (e) {
$.ajax({
type : "GET",
url : "http://localhost/faveo/public/ticket/open/{{$tickets->id}}",
success : function(response) {
$( "#refresh" ).load( "http://localhost/faveo/public/thread/{{$tickets->id}} #refresh");
$('#refresh').load('thread/2 #refresh');
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,151 @@
@extends('themes.default1.client.layout.client')
<!-- breadcrumbs -->
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">Home</a></li>
<li>Submit Ticket</a></li>
</ol>
</div>
@stop
<!-- /breadcrumbs -->
@section('check')
<div class="banner-wrapper text-center clearfix">
<h3 class="banner-title text-info h4">Have a Ticket?</h3>
<div class="banner-content">
{!! Form::open(['url' => 'checkmyticket' , 'method' => 'POST'] )!!}
{!! Form::label('email',Lang::get('lang.email')) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('email',null,['class' => 'form-control']) !!}
{!! Form::label('ticket_number',Lang::get('lang.ticket_number'),['style' => 'display: block']) !!}
{!! $errors->first('ticket_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ticket_number',null,['class' => 'form-control']) !!}
<br/><input type="submit" value="Check Ticket Status" class="btn btn-info">
{!! Form::close() !!}
</div>
</div>
@stop
<!-- content -->
@section('content')
<div id="content" class="site-content col-md-9">
@if(Session::has('message'))
<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">&times;</button>
{{Session::get('message')}}
</div>
@endif
<!-- open a form -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<!--
|====================================================
| SELECT FROM
|====================================================
-->
<?php
$encrypter = app('Illuminate\Encryption\Encrypter');
$encrypted_token = $encrypter->encrypt(csrf_token());
?>
<input id="token" type="hidden" value="{{$encrypted_token}}">
{!! Form::open(['action'=>'Client\helpdesk\FormController@postedForm','method'=>'post']) !!}
<div>
<div class="content-header">
<h4>Ticket {!! Form::submit(Lang::get('lang.send'),['class'=>'form-group btn btn-info pull-right'])!!}</h4>
</div>
<br/>
<div>
@if($errors != null)
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-check-circle"></i>
<b>Alert!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! $errors->first('Name', '<p>:message</p>') !!}
{!! $errors->first('Email', '<p>:message</p>') !!}
{!! $errors->first('Phone', '<p>:message</p>') !!}
{!! $errors->first('Subject', '<p>:message</p>') !!}
{!! $errors->first('Details', '<p>:message</p>') !!}
</div>
@endif
<div class="form-group {{ $errors->has('help_topic') ? 'has-error' : '' }}">
{!! Form::label('help_topic', 'Choose a Help Topic') !!}
{!! $errors->first('help_topic', '<spam class="help-block">:message</spam>') !!}
<select name="help_topic" class="form-control" id="selectid">
<option>--Select--</option>
<option value="1">Default Help Topic</option>
</select>
</div>
<!-- <label>data</label> -->
<!-- <input name="stack" id="stack"/> -->
<div id="ss" class="xs-md-6 form-group {{ $errors->has('') ? 'has-error' : '' }}">
</div>
</div>
</div>
{!! Form::close() !!}
</div>
<!--
|====================================================
| SELECTED FORM STORED IN SCRIPT
|====================================================
-->
<script type="text/javascript">
jQuery(document).ready(function() {
$('select').on('change', function (e) {
var value = $('#selectid').val();
var select = $('#selectid');
var $_token = $('#token').val();
var data1 = $(this).children('option:selected').data('id');
$.ajax({
type : "POST",
headers : { 'X-XSRF-TOKEN' : $_token },
url : "postform/"+ value,
dataType : 'html',
data : ({data2:data1}) ,
success : function(response) {
var data = response;
var splited = data.split(',').slice(1);
$.each(splited, function (index, value)
{
var splited = data.split(',').slice(1);
$("#ss").html("");
for (var j = 0 ; j<splited.length; j++)
{
var sli = splited[j].split('-');
if(sli[0]=='textarea')
{
$("#ss").append(sli[1]+"<div class="+'"form-group"'+">"
+"<textarea id="+sli[1]+" class="+
'form-control'+" name="+sli[1]+"/></textarea>"+"</div>");
var wysihtml5Editor = $('textarea').wysihtml5().data("wysihtml5").editor;
} else {
$("#ss").append(sli[1]+"<div class="+'"form-group"'+">"
+"<input type="+sli[0]+" id="+sli[1]+" class="+
'form-control'+" name="+sli[1]+">"+"</div>");
}
}
return false;
});
}
})
return false;
});
});
</script>
@stop

View File

@@ -0,0 +1,57 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/dist/css/widgetbox.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/iCheck/flat/blue.css")}}" rel="stylesheet" type="text/css" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<link href="http://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css">
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
@stop
@section('home')
class = "active"
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="{!! URL::route('home') !!}">Home</a></li>
</ol>
</div>
@stop
@section('content')
<div id="content" class="site-content col-md-12">
<div id="corewidgetbox">
<div class="widgetrow text-center">
@if(Auth::user())
@else
<span onclick="javascript: window.location.href='{{url('auth/register')}}';">
<a href="{{url('auth/register')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_register.png');">
<span class="widgetitemtitle">Register</span>
</a>
</span>
@endif
@if(App\Model\helpdesk\Settings\System::first()->status == 1)
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/Tickets/Submit';">
<a href="{{url('form')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_submitticket.png');">
<span class="widgetitemtitle">Submit a Ticket</span>
</a>
</span>
@endif
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/News/List';">
<a href="{{url('mytickets')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_news.png');">
<span class="widgetitemtitle">My Tickets</span>
</a>
</span>
</div>
</div>
<script type="text/javascript"> $(function(){ $('.dialogerror, .dialoginfo, .dialogalert').fadeIn('slow');$("form").bind("submit", function(e){$(this).find("input:submit").attr("disabled", "disabled");});});</script>
<script type="text/javascript" >try {if (top.location.hostname != self.location.hostname) { throw 1; }} catch (e) { top.location.href = self.location.href; }</script>
</div>
@stop

View File

@@ -0,0 +1,204 @@
@extends('themes.default1.client.layout.client')
@section('Tickets')
class="active"
@stop
@section('ticket-bar')
active
@stop
@section('ticket')
class="active"
@stop
@section('content')
<!-- Main content -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Ticket </h3> <small> 5 new messages</small>
<!-- <div class="box-tools pull-right">
<div class="has-feedback">
<input type="text" class="form-control input-sm" placeholder="Search Mail"/>
<span class="glyphicon glyphicon-search form-control-feedback"></span>
</div>
</div> --><!-- /.box-tools -->
</div><!-- /.box-header -->
<div class="box-body no-padding">
<div class="mailbox-controls">
<!-- Check all button -->
<button class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
<button class="btn btn-default btn-sm"><i class="fa fa-trash-o"></i></button>
<button class="btn btn-default btn-sm" onclick="click()" id="click"><i class="fa fa-refresh"></i></button>
<div class="pull-right">
<?php
$counted = count(App\Model\Ticket\Tickets::where('status', '=', 1)->get());
if ($counted < 20) {
echo $counted . "/" . $counted;
} else {
echo "20/" . $counted;
}
?>
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh">
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th>
</th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Reply Due
</th>
</thead>
<tbody id="hello">
<?php $tickets = App\Model\Ticket\Tickets::where('status', '=', 1)->orderBy('id', 'DESC')->paginate(20);?>
@foreach ($tickets as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('myticket',[$ticket->id]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?php $priority = App\Model\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<td class="mailbox-last-reply" style="color:{!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<td class="mailbox-date"></td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $tickets->setPath(url('/ticket'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
</div><!-- /.box-body -->
</div><!-- /. box -->
<script>
$(function() {
//Enable iCheck plugin for checkboxes
//iCheck for checkbox and radio inputs
$('input[type="checkbox"]').iCheck({
checkboxClass: 'icheckbox_flat-blue',
radioClass: 'iradio_flat-blue'
});
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click').click(function() {
$('#refresh').load('ticket #refresh');
});
});
// // check box get data
// jQuery(function($) {
// $("form input[id='check_all']").click(function() { // triggred check
// var inputs = $("form input[type='checkbox']"); // get the checkbox
// for(var i = 0; i < inputs.length; i++) { // count input tag in the form
// var type = inputs[i].getAttribute("type"); // get the type attribute
// if(type == "checkbox") {
// if(this.checked) {
// inputs[i].checked = true; // checked
// } else {
// inputs[i].checked = false; // unchecked
// }
// }
// }
// });
// $("form input[id='submit']").click(function() { // triggred submit
// var count_checked = $("[name='data[]']:checked").length; // count the checked
// if(count_checked == 0) {
// alert("Please select a product(s) to delete.");
// return false;
// }
// if(count_checked == 1) {
// return confirm("Are you sure you want to delete these product?");
// } else {
// return confirm("Are you sure you want to delete these products?");
// }
// });
// }); // jquery end
</script>
@stop

View File

@@ -0,0 +1,270 @@
@extends('themes.default1.client.layout.client')
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li class="active"><a href="{!! URL::route('ticket2') !!}">Mytickets</a></li>
</ol>
</div>
@stop
@section('myticket')
class="active"
@stop
@section('content')
<!-- Main content -->
<div id="content" class="site-content col-md-12">
<?php
$open = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()->id)
->where('status', '=', 1)
->orderBy('id', 'DESC')
->paginate(20);
?>
<?php
$close = App\Model\helpdesk\Ticket\Tickets::where('user_id', '=' , Auth::user()->id)
->whereIn('status', [2, 3])
->orderBy('id', 'DESC')
->paginate(20);
?>
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab_1" data-toggle="tab" aria-expanded="true">Opened <small class="label bg-orange">{!! $open->total() !!}</small></a></li>
<li class=""><a href="#tab_2" data-toggle="tab" aria-expanded="false">Closed <small class="label bg-green">{!! $close->total() !!}</small></a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab_1">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click1"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-yellow btn-sm" name="submit" value="Close">
<div class="pull-right" id="refresh21">
{!! $open->count().'-'.$open->total(); !!}
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh1">
<p style="display:none;text-align:center; position:fixed; margin-left:37%;margin-top:-80px;" id="show1" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Status
</th>
</thead>
<tbody id="hello">
@foreach ($open as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('check_ticket',[Crypt::encrypt($ticket->id)]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
<td class="mailbox-date">{!! $status->name !!}</td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $open->setPath(url('mytickets'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div><!-- /.box-body -->
{{-- /.tab_1 --}}
<div class="tab-pane" id="tab_2">
{!! Form::open(['route'=>'select_all','method'=>'post']) !!}
<div class="mailbox-controls">
<!-- Check all button -->
<a class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></a>
<a class="btn btn-default btn-sm" id="click2"><i class="fa fa-refresh"></i></a>
<input type="submit" class="btn btn-default text-blue btn-sm" name="submit" value="Open">
<div class="pull-right" id="refresh22">
{!! $close->count().'-'.$close->total(); !!}
</div>
</div>
<div class=" table-responsive mailbox-messages" id="refresh2">
<p style="display:none;text-align:center; position:fixed; margin-left:40%;margin-top:-70px;" id="show2" class="text-red"><b>Loading...</b></p>
<!-- table -->
<table class="table table-hover table-striped">
<thead>
<th></th>
<th>
Subject
</th>
<th>
Ticket ID
</th>
<th>
Priority
</th>
<th>
Last Replier
</th>
<th>
Last Activity
</th>
<th>
Status
</th>
</thead>
<tbody id="hello">
@foreach ($close as $ticket )
<tr <?php if ($ticket->seen_by == null) {?> style="color:green;" <?php }
?> >
<td><input type="checkbox" class="icheckbox_flat-blue" name="select_all[]" value="{{$ticket->id}}"/></td>
<?php $title = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->first();
$string = strip_tags($title->title);
if (strlen($string) > 40) {
$stringCut = substr($string, 0, 40);
$string = substr($stringCut, 0, strrpos($stringCut, ' ')).' ...';
}
$TicketData = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->max('id');
$TicketDatarow = App\Model\helpdesk\Ticket\Ticket_Thread::where('id', '=', $TicketData)->first();
$LastResponse = App\User::where('id', '=', $TicketDatarow->user_id)->first();
if($LastResponse->role == "user") {
$rep = "#F39C12";
$username = $LastResponse->user_name;
} else { $rep = "#000"; $username = $LastResponse->first_name ." ". $LastResponse->last_name;
if($LastResponse->first_name==null || $LastResponse->last_name==null) {
$username = $LastResponse->user_name;
}}
$titles = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $ticket->id)->get();
$count = count($titles);
foreach($titles as $title)
{
$title = $title;
} ?>
<td class="mailbox-name"><a href="{!! URL('check_ticket',[Crypt::encrypt($ticket->id)]) !!}" title="{!! $title->title !!}">{{$string}} </a> ({!! $count!!}) <i class="fa fa-comment"></i></td>
<td class="mailbox-Id">#{!! $ticket->ticket_number !!}</td>
<?php $priority = App\Model\helpdesk\Ticket\Ticket_Priority::where('priority_id', '=', $ticket->priority_id)->first();?>
<td class="mailbox-priority"><spam class="btn btn-{{$priority->priority_color}} btn-xs">{{$priority->priority}}</spam></td>
<td class="mailbox-last-reply" style="color: {!! $rep !!}">{!! $username !!}</td>
<td class="mailbox-last-activity">{!! $title->updated_at !!}</td>
<?php $status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $ticket->status)->first(); ?>
<td class="mailbox-date">{!! $status->name !!}</td>
</tr>
@endforeach
</tbody>
</table><!-- /.table -->
<div class="pull-right">
<?php echo $close->setPath(url('mytickets'))->render();?>&nbsp;
</div>
</div><!-- /.mail-box-messages -->
{!! Form::close() !!}
</div>
</div><!-- /. box -->
</div>
</div>
<script>
$(function () {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function () {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("uncheck");
$(".fa", this).removeClass("fa-check-square-o").addClass('fa-square-o');
} else {
//Check all checkboxes
$(".mailbox-messages input[type='checkbox']").iCheck("check");
$(".fa", this).removeClass("fa-square-o").addClass('fa-check-square-o');
}
$(this).data("clicks", !clicks);
});
});
$(function() {
// Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click1').click(function() {
$('#refresh1').load('mytickets #refresh1');
$('#refresh21').load('mytickets #refresh21');
$("#show1").show();
});
});
$(document).ready(function() { /// Wait till page is loaded
$('#click2').click(function() {
$('#refresh2').load('mytickets #refresh2');
$('#refresh22').load('mytickets #refresh22');
$("#show2").show();
});
});
</script>
@stop

View File

@@ -0,0 +1,205 @@
@extends('themes.default1.client.layout.client')
@section('HeadInclude')
<link href="{{asset("dist/css/AdminLTE.css")}}" rel="stylesheet" type="text/css" />
@stop
@section('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">You are here: </li>
<li><a href="#">My Profile</a></li>
<li class="active"><a href="{!! URL::route('client.profile') !!}">Edit Profile</a></li>
</ol>
</div>
@stop
@section('profile')
class="active"
@stop
@section('content')
<div id="content" class="site-content col-md-12">
<section class="section-title">
<h2>
Profile Settings </h2>
</section>
<div class="row">
<div class="col-md-6">
{!! Form::model($user,['url'=>'client-profile-edit', 'method' => 'PATCH','files'=>true]) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Profile {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success1'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success1')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails1'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails1')}}
</div>
@endif
<div class="form-group {{ $errors->has('first_name') ? 'has-error' : '' }}">
<!-- first name -->
{!! Form::label('first_name',Lang::get('lang.first_name')) !!}
{!! $errors->first('first_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('first_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('last_name') ? 'has-error' : '' }}">
<!-- last name -->
{!! Form::label('last_name',Lang::get('lang.last_name')) !!}
{!! $errors->first('last_name', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('last_name',null,['class' => 'form-control']) !!}
</div>
<div class="form-group">
<!-- gender -->
{!! Form::label('gender',Lang::get('lang.gender')) !!}
<div class="row">
<div class="col-xs-3">
{!! Form::radio('gender','1',true) !!}{{Lang::get('lang.male')}}
</div>
<div class="col-xs-3">
{!! Form::radio('gender','0') !!}{{Lang::get('lang.female')}}
</div>
</div>
</div>
<div class="form-group">
<!-- email -->
{!! Form::label('email',Lang::get('lang.email_address')) !!}
<div>
{{$user->email}}
</div>
</div>
<div class="form-group {{ $errors->has('company') ? 'has-error' : '' }}">
<!-- company -->
{!! Form::label('company',Lang::get('lang.company')) !!}
{!! $errors->first('company', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('company',null,['class' => 'form-control']) !!}
</div>
<div class="row">
<div class="col-xs-3 form-group {{ $errors->has('ext') ? 'has-error' : '' }}">
<!-- phone extensionn -->
{!! Form::label('ext',Lang::get('lang.ext')) !!}
{!! $errors->first('ext', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('ext',null,['class' => 'form-control']) !!}
</div>
<div class="col-xs-9 form-group {{ $errors->has('phone_number') ? 'has-error' : '' }}">
<!-- phone number -->
{!! Form::label('phone_number',Lang::get('lang.phone')) !!}
{!! $errors->first('phone_number', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('phone_number',null,['class' => 'form-control']) !!}
</div>
</div>
<div class="form-group {{ $errors->has('mobile') ? 'has-error' : '' }}">
<!-- mobile -->
{!! Form::label('mobile',Lang::get('lang.mobile_number')) !!}
{!! $errors->first('mobile', '<spam class="help-block">:message</spam>') !!}
{!! Form::text('mobile',null,['class' => 'form-control']) !!}
</div>
<div class="form-group {{ $errors->has('profile_pic') ? 'has-error' : '' }}">
<!-- profile pic -->
{!! Form::label('profile_pic',Lang::get('lang.profile_pic')) !!}
{!! $errors->first('profile_pic', '<spam class="help-block">:message</spam>') !!}
{!! Form::file('profile_pic') !!}
</div>
{!! Form::token() !!}
{!! Form::close() !!}
</div>
</div>
</div>
<div class="col-md-6">
{!! Form::model($user,['url'=>'client-profile-password' , 'method' => 'PATCH']) !!}
<div class="box box-primary">
<div class="content-header">
<h4>Change Password {!! Form::submit(Lang::get('lang.save'),['class'=>'form-group btn btn-primary pull-right'])!!}</h4>
</div>
<div class="box-body">
@if(Session::has('success2'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Success.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('success2')}}
</div>
@endif
<!-- fail message -->
@if(Session::has('fails2'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails2')}}
</div>
@endif
<!-- old password -->
<div class="form-group has-feedback {{ $errors->has('old_password') ? 'has-error' : '' }}">
{!! Form::label('old_password',Lang::get('lang.old_password')) !!}
{!! Form::password('old_password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('old_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- new password -->
<div class="form-group has-feedback {{ $errors->has('new_password') ? 'has-error' : '' }}">
{!! Form::label('new_password',Lang::get('lang.new_password')) !!}
{!! Form::password('new_password',['placeholder'=>'New Password','class' => 'form-control']) !!}
{!! $errors->first('new_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<!-- cofirm password -->
<div class="form-group has-feedback {{ $errors->has('confirm_password') ? 'has-error' : '' }}">
{!! Form::label('confirm_password',Lang::get('lang.confirm_password')) !!}
{!! Form::password('confirm_password',['placeholder'=>'Confirm Password','class' => 'form-control']) !!}
{!! $errors->first('confirm_password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
</div>
</div>
</div>
</div>
{!! Form::close() !!}
</div>
@stop

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,290 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> SUPPORT CENTER | CLIENT PANEL</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" />
<link href="{{asset("lb-faveo/dist/css/AdminLTEsemi.css")}}" rel="stylesheet" type="text/css" />
<!-- Font Awesome Icons -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
<!-- Ionicons -->
<link href="http://code.ionicframework.com/ionicons/2.0.0/css/ionicons.min.css" rel="stylesheet" type="text/css" />
<!-- fullCalendar 2.2.5-->
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
<!-- Theme style -->
<link href="{{asset("lb-faveo/dist/css/app.css")}}" rel="stylesheet" type="text/css" />
<link href="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css")}}" rel="stylesheet" type="text/css" />
{{-- // <script src="ckeditor/ckeditor.js"></script> --}}
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
@yield('HeadInclude')
</head>
<body>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<div class="container" style="margin-bottom:-25px;">
<div id="logo" class="site-logo text-center" style="font-size: 30px;">
<?php
$company = App\Model\helpdesk\Settings\Company::where('id', '=', '1')->first();
$system = App\Model\helpdesk\Settings\System::where('id', '=', '1')->first();
?>
@if($system->url)
<a href="{!! $system->url !!}" rel="home">
@else
<a href="{{url('home')}}" rel="home">
@endif
@if($company->use_logo == 1)
<img src="{{asset('lb-faveo/dist')}}{{'/'}}{{$company->logo}}" alt="User Image" width="200px" height="200px"/>
@else
@if($system->name)
{!! $system->name !!}
@else
<b>SUPPORT</b> CENTER
@endif
@endif
</a>
</div><!-- #logo -->
<div id="navbar" class="navbar-wrapper text-center">
<nav class="navbar navbar-default site-navigation" role="navigation">
<ul class="nav navbar-nav navbar-menu">
<li @yield('home')><a href="{{url('home')}}">Home</a></li>
@if($system->first()->status == 1)
<li @yield('submit')><a href="{{URL::route('form')}}">Submit A Ticket</a></li>
@endif
@if(Auth::user())
<li @yield('myticket')><a href="{{url('mytickets')}}">My Tickets</a></li>
<li @yield('profile')><a href="#" >My Profile</a>
<ul class="dropdown-menu">
<li>
<div class="banner-wrapper user-menu text-center clearfix">
@if(Auth::user()->profile_pic)
<img src="{{asset('lb-faveo/profilepic')}}{{'/'}}{{Auth::user()->profile_pic}}"class="img-circle" alt="User Image" height="80" width="80"/>
@else
<img src="{{ Gravatar::src(Auth::user()->email) }}" class="img-circle" alt="User Image">
@endif
<h3 class="banner-title text-info h4">{{Auth::user()->first_name." ".Auth::user()->last_name}}</h3>
<div class="banner-content">
{{-- <a href="{{url('kb/client-profile')}}" class="btn btn-custom btn-xs">Edit Profile</a> --}} <a href="{{url('auth/logout')}}" class="btn btn-custom btn-xs">Log out</a>
</div>
@if(Auth::user())
@if(Auth::user()->role != 'user')
<div class="banner-content">
<a href="{{url('dashboard')}}" class="btn btn-custom btn-xs">Dashboard</a>
</div>
@endif
@endif
@if(Auth::user())
@if(Auth::user()->role == 'user')
<div class="banner-content">
<a href="{{url('client-profile')}}" class="btn btn-custom btn-xs">Profile</a>
</div>
@endif
@endif
</div>
</li>
</ul>
</li>
</ul><!-- .navbar-user -->
@else
<ul class="nav navbar-nav navbar-login">
<li <?php if($errors->first('email') || $errors->first('password')){ ?> class="sfHover" <?php } else { ?> <?php } ?> ><a href="#" data-toggle="collapse" <?php if($errors->first('email') || $errors->first('password')){ } else { ?> class="collapsed" <?php } ?> data-target="#login-form">Login <i class="sub-indicator fa fa-chevron-circle-down fa-fw text-muted"></i></a></li>
</ul><!-- .navbar-login -->
<div id="login-form" <?php if($errors->first('email') || $errors->first('password')){ ?> class="login-form collapse fade clearfix in" <?php } else { ?> class="login-form collapse fade clearfix" <?php } ?> >
{!! Form::open(['action'=>'Auth\AuthController@postLogin', 'method'=>'post']) !!}
<div class="form-group has-feedback {{ $errors->has('email') ? 'has-error' : '' }}">
{!! Form::text('email',null,['placeholder'=>'Email','class' => 'form-control']) !!}
{!! $errors->first('email', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-envelope form-control-feedback"></span>
</div>
<div class="form-group has-feedback {{ $errors->has('password') ? 'has-error' : '' }}">
{!! Form::password('password',['placeholder'=>'Password','class' => 'form-control']) !!}
{!! $errors->first('password', '<spam class="help-block">:message</spam>') !!}
<span class="glyphicon glyphicon-lock form-control-feedback"></span>
</div>
<ul class="list-unstyled pull-left">
<li><a href="{{url('password/email')}}">Forgot password</a><br></li>
<li><a href="#">Create Account</a></li>
</ul>
<button type="submit" class="btn btn-custom pull-right">Login</button>
{!! Form::close() !!}
</div><!-- #login-form -->
@endif
</nav><!-- #site-navigation -->
</div><!-- #navbar -->
<div id="header-search" class="site-search clearfix">
</div>
</div>
</header>
<!-- Left side column. contains the logo and sidebar -->
<!-- Right side column. Contains the navbar and content of the page -->
@yield('breadcrumb')
<!-- Main content -->
<div id="main" class="site-main clearfix">
<div class="container">
<div class="content-area">
<div class="row">
@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">&times;</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>Alert!</b> Failed.
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{Session::get('fails')}}
</div>
@endif
@yield('content')
<div id="sidebar" class="site-sidebar col-md-3">
<div class="widget-area">
<section id="section-banner" class="section">
@yield('check')
</section><!-- #section-banner -->
<section id="section-categories" class="section">
@yield('category')
</section><!-- #section-categories -->
</div>
</div><!-- #sidebar -->
</div>
</div>
</div>
</div>
<!-- /.content-wrapper -->
<?php
$footer = App\Model\helpdesk\Theme\Footer::whereId('1')->first();
$footer2 = App\Model\helpdesk\Theme\Footer2::whereId('1')->first();
$footer3 = App\Model\helpdesk\Theme\Footer3::whereId('1')->first();
$footer4 = App\Model\helpdesk\Theme\Footer4::whereId('1')->first();
?>
<footer id="colophon" class="site-footer" role="contentinfo">
<div class="container">
<div class="row col-md-12">
@if($footer->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-about" class="section">
<h2 class="section-title h4 clearfix">{!!$footer->title!!}</h2>
<div class="textwidget">
<p>{!!$footer->footer!!}</p>
</div>
</section><!-- #section-about -->
</div>
</div>
@endif
@if($footer2->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-latest-news" class="section">
<h2 class="section-title h4 clearfix">{!!$footer2->title!!}</h2>
<div class="textwidget">
<p>{!!$footer2->footer!!}</p>
</div>
</section><!-- #section-latest-news -->
</div>
</div>
@endif
@if($footer3->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-newsletter" class="section">
<h2 class="section-title h4 clearfix">{!!$footer3->title!!}</h2>
<div class="textwidget">
<p>{!!$footer3->footer!!}</p>
</div>
</section><!-- #section-newsletter -->
</div>
</div>
@endif
@if($footer4->title == null)
@else
<div class="col-md-3">
<div class="widget-area">
<section id="section-newsletter" class="section">
<h2 class="section-title h4 clearfix">{{$footer4->title}}</h2>
<div class="textwidget">
<p>{!!$footer4->footer!!}</p>
</div>
</section>
</div>
</div>
@endif
</div>
<div class="clearfix"></div>
<hr/>
<div class="row">
<div class="site-info col-md-6">
<p class="text-muted">Copyright &copy; {!! date('Y') !!} <a href="{!! $company->website !!}">{!! $company->company_name !!}</a>. All rights reserved. Powered by <a href="http://www.faveohelpdesk.com/">Faveo</a></p>
</div>
</div>
</footer><!-- #colophon -->
<!-- jQuery 2.1.3 -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" type="text/javascript"></script>
<!-- Slimscroll -->
<script src="{{asset("lb-faveo/dist/js/superfish.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/dist/js/mobilemenu.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/dist/js/know.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js")}}" type="text/javascript"></script>
<script src="{{asset("lb-faveo/plugins/iCheck/icheck.min.js")}}" type="text/javascript"></script>
<script>
$(function() {
//Enable check and uncheck all functionality
$(".checkbox-toggle").click(function() {
var clicks = $(this).data('clicks');
if (clicks) {
//Uncheck all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("uncheck");
} else {
//Check all checkboxes
$("input[type='checkbox']", ".mailbox-messages").iCheck("check");
}
$(this).data("clicks", !clicks);
});
//Handle starring for glyphicon and font awesome
$(".mailbox-star").click(function(e) {
e.preventDefault();
//detect type
var $this = $(this).find("a > i");
var glyph = $this.hasClass("glyphicon");
var fa = $this.hasClass("fa");
//Switch states
if (glyph) {
$this.toggleClass("glyphicon-star");
$this.toggleClass("glyphicon-star-empty");
}
if (fa) {
$this.toggleClass("fa-star");
$this.toggleClass("fa-star-o");
}
});
});
</script>
</body>
</html>