update v1.0.3.3

This commit is contained in:
sujitprasad
2015-12-22 14:09:23 +05:30
parent 2bc3db252e
commit 696e0390fe
8590 changed files with 3456 additions and 818 deletions

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('home')
class = "active"
@stop
@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('breadcrumb')
<div class="site-hero clearfix">
<ol class="breadcrumb breadcrumb-custom">
<li class="text">{!! Lang::get('lang.you_are_here') !!}: </li>
<li><a href="{!! URL::route('/') !!}">{!! Lang::get('lang.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">{!! Lang::get('lang.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::route('form') !!}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_submitticket.png');">
<span class="widgetitemtitle">{!! Lang::get('lang.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">{!! Lang::get('lang.my_tickets') !!}</span>
</a>
</span>
<span onclick="javascript: window.location.href='https://support.ebs.in/app/index.php?/News/List';">
<a href="{{url('/knowledgebase')}}" class="widgetrowitem defaultwidget" style="background-image: URL('https://support.ebs.in/app/__swift/themes/client/images/icon_widget_knowledgebase.png');">
<span class="widgetitemtitle">{!! Lang::get('lang.knowledge_base') !!}</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

File diff suppressed because it is too large Load Diff