bug fixes, AM change feature, refactoring
This commit is contained in:
77
resources/views/support-ticket/create.blade.php
Normal file
77
resources/views/support-ticket/create.blade.php
Normal file
@@ -0,0 +1,77 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left" style="width:800px !important;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active"><a href="{!! url('supporttickets/list') !!}">Ticket List</a></li>
|
||||
<li class="active">New Ticket</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::open(['url' => 'supporttickets', 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Subject</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('subject') ? 'has-error' : ''}}">
|
||||
{!! Form::text('subject', old('subject'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter subject' , 'id' => 'subject']) !!}
|
||||
{!! $errors->first('subject', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">Body</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('body') ? 'has-error' : ''}}">
|
||||
{!! Form::textarea('body', old('body'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter body ' , 'id' => 'body']) !!}
|
||||
{!! $errors->first('body', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">Attachment</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('body') ? 'has-error' : ''}}">
|
||||
{!! Form::file('attachment', null, ['class' => 'form-control' , 'id' => 'attachment']) !!}
|
||||
{!! $errors->first('attachment', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
|
||||
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('select').select2();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
76
resources/views/support-ticket/edit.blade.php
Normal file
76
resources/views/support-ticket/edit.blade.php
Normal file
@@ -0,0 +1,76 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left" style="width:800px !important;">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">Create Service</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
@include('commons.notifications')
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
{{-- start of content --}}
|
||||
<div class="x_content">
|
||||
<br>
|
||||
{!! Form::open(['url' => 'supporttickets', 'class' => 'form-horizontal form-label-left']) !!}
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">Subject</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('subject') ? 'has-error' : ''}}">
|
||||
{!! Form::text('subject', old('subject'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter subject' , 'id' => 'subject']) !!}
|
||||
{!! $errors->first('subject', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">Body</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('body') ? 'has-error' : ''}}">
|
||||
{!! Form::textarea('body', old('body'), ['class' => 'form-control col-md-7 col-xs-12', 'placeholder'=>'Enter body ' , 'id' => 'body']) !!}
|
||||
{!! $errors->first('body', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="type">Attachment</label>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 {{ $errors->has('body') ? 'has-error' : ''}}">
|
||||
{!! Form::file('attachment', null, ['class' => 'form-control' , 'id' => 'attachment']) !!}
|
||||
{!! $errors->first('attachment', '<p class="help-block">:message</p>') !!}
|
||||
</div>
|
||||
</div>
|
||||
<div class="ln_solid"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
|
||||
<button type="submit" class="btn btn-success btn-block"><i class="fa fa-save"></i> Submit</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
{{-- end of x_content --}}
|
||||
</div>
|
||||
{{-- end of x_panel --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
$('select').select2();
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
182
resources/views/support-ticket/index.blade.php
Normal file
182
resources/views/support-ticket/index.blade.php
Normal file
@@ -0,0 +1,182 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
<link href="{!! url('public/assets/vendors/tabulator/css/bootstrap/tabulator_bootstrap.css') !!}" type="text/css" rel="stylesheet">
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">Support Ticket List</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('supporttickets') !!}">
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group">
|
||||
<div style="margin-top:1px; margin-right:-90px;" class="top_search">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search" style="margin-top: -2px;">
|
||||
<div class="input-group">
|
||||
<input type="text" name="keyword" class="form-control" id="keywordField" placeholder="Keyword here...">
|
||||
<span class="input-group-btn">
|
||||
<button type="submit" class="btn btn-primary" style="color: #fff;" type="button">Go!</button>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="pull-right"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@include('commons.notifications')
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2> Support Ticket Lists </h2>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-primary btn-sm" href="{!! url('supporttickets/create') !!}"><i class="fa fa-plus-circle"></i> New Ticket</a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
|
||||
<div>
|
||||
<button id="support-tickets-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="support-tickets-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="supportTicketsTable"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('javascript')
|
||||
<script src="{!! url('public/assets/vendors/tabulator/js/tabulator.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/xlsx.full.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.min.js') !!}"></script>
|
||||
<script type="text/javascript" src="{!! url('public/assets/vendors/tabulator/js/jspdf.plugin.autotable.js') !!}"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
function link(cell, formatterParams){
|
||||
var url = cell.getValue();
|
||||
console.log(cell.getData());
|
||||
var rowID = cell.getData().id
|
||||
return "<a href='"+ base_url + "/supporttickets/"+rowID+"/edit' class='btn btn-link'>"+url+"</a>";
|
||||
}
|
||||
function cellDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
return "<span style='color:#54B4D3; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
function statusDesign (cell, formatterParams){
|
||||
var value = cell.getValue();
|
||||
|
||||
if (value !== null) {
|
||||
if(value.includes('CLOSED')){
|
||||
return "<span style='color:#3FB449; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
else if(value.includes('OPEN')){
|
||||
return "<span style='color:#d9534f; font-weight:bold;'>" + value + "</span>";
|
||||
}
|
||||
else{
|
||||
return "<span style='color:#E4A11B;'>" + value + "</span>";
|
||||
}
|
||||
}
|
||||
}
|
||||
var table = new Tabulator("#supportTicketsTable", {
|
||||
ajaxURL: "all",
|
||||
paginationSize: 15,
|
||||
layout: "fitColumns",
|
||||
pagination: "remote",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
|
||||
{
|
||||
title: "Case Number",
|
||||
field: "case_number",
|
||||
sorter: "string",
|
||||
// formatter: cellDesign,
|
||||
formatter:link,
|
||||
},
|
||||
{
|
||||
title: "Subject",
|
||||
field: "subject",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Ticket Body",
|
||||
field: "body",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "assigned To",
|
||||
field: "assignedToName",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Created By",
|
||||
field: "createdBy",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Status",
|
||||
field: "status",
|
||||
sorter: "string",
|
||||
formatter: statusDesign,
|
||||
},
|
||||
{
|
||||
title: "Created At",
|
||||
field: "created_at",
|
||||
sorter: "string",
|
||||
}
|
||||
],
|
||||
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
console.log(userID);
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("support-tickets-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "support-tickets-list.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("support-tickets-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "support-ticket-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile - Support Ticket List", //add title to report
|
||||
});
|
||||
});
|
||||
$('#keywordField').on('keyup', function(){
|
||||
console.log('up');
|
||||
var keyword = $(this).val();
|
||||
table.setData("supporttickets/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
106
resources/views/support-ticket/landing.blade.php
Normal file
106
resources/views/support-ticket/landing.blade.php
Normal file
@@ -0,0 +1,106 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
@endsection
|
||||
@section('content')
|
||||
<div class="">
|
||||
<div class="page-title">
|
||||
<div class="title_left">
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class="active">Support Tickets</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<div class="row">
|
||||
@include('commons.notifications')
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2> Welcome to the Support Center </h2>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-warning btn-sm" href="{!! url('senderids/create') !!}"><i class="fa fa-plus-circle"></i> New Ticket </a>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-sm-6 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Tickets Count (Today) <small><a href="{{ url('supporttickets/today') }}">40</a></small></h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
|
||||
<div class="bs-example" data-example-id="simple-jumbotron">
|
||||
<div class="jumbotron">
|
||||
<h1>Open a new Ticket</h1>
|
||||
<p>Create a new ticket with as much details as possible.</p>
|
||||
<a href="{{ url('supporttickets/create') }}" class="btn btn-success"><i class="fa fa-life-ring"></i> New Ticket</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6 col-sm-6 col-xs-12">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Total Tickets Count <small><a href="{{ url('supporttickets') }}">400</a></small></h2>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
|
||||
<div class="bs-example" data-example-id="simple-jumbotron">
|
||||
<div class="jumbotron">
|
||||
<h1>Check Ticket Status</h1>
|
||||
<p>Check details of Past and Present tickets</p>
|
||||
<!-- <form class="form-inline">
|
||||
<div class="form-group">
|
||||
<input type="text" name="case_number" class="form-control">
|
||||
<button type="submit" class="btn btn-primary" ><i class="fa fa-clock-o"></i> Check</button>
|
||||
</div>
|
||||
</form> -->
|
||||
|
||||
|
||||
<form class="form-inline" action="">
|
||||
<div class="form-group">
|
||||
<!-- <label for="email">Ticket Number:</label> -->
|
||||
<input type="email" class="form-control" id="email" placeholder="Enter Ticket Number">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-clock-o"></i> Submit</button>
|
||||
</form>
|
||||
|
||||
<!-- <a href="" class="btn btn-primary" style="margin-top: 5px;"><i class="fa fa-clock-o"></i> Check </a> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
107
resources/views/support-ticket/show.blade.php
Normal file
107
resources/views/support-ticket/show.blade.php
Normal file
@@ -0,0 +1,107 @@
|
||||
@extends('layouts.master')
|
||||
@section('page_title')
|
||||
@if(isset($page_title))
|
||||
{{ $page_title }}
|
||||
@endif
|
||||
@endsection
|
||||
@section('css')
|
||||
@endsection
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-6">
|
||||
<div class="x_panel">
|
||||
<div class="x_title">
|
||||
<h2>Daily active users <small>Sessions</small></h2>
|
||||
<ul class="nav navbar-right panel_toolbox">
|
||||
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
|
||||
</li>
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="#">Settings 1</a>
|
||||
</li>
|
||||
<li><a href="#">Settings 2</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a class="close-link"><i class="fa fa-close"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
<div class="x_content">
|
||||
<ul class="list-unstyled timeline">
|
||||
<li>
|
||||
<div class="block">
|
||||
<div class="tags">
|
||||
<a href="" class="tag">
|
||||
<span>Entertainment</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="block_content">
|
||||
<h2 class="title">
|
||||
<a>Who Needs Sundance When You’ve Got Crowdfunding?</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>13 hours ago</span> by <a>Jane Smith</a>
|
||||
</div>
|
||||
<p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read More</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="block">
|
||||
<div class="tags">
|
||||
<a href="" class="tag">
|
||||
<span>Entertainment</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="block_content">
|
||||
<h2 class="title">
|
||||
<a>Who Needs Sundance When You’ve Got Crowdfunding?</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>13 hours ago</span> by <a>Jane Smith</a>
|
||||
</div>
|
||||
<p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read More</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="block">
|
||||
<div class="tags">
|
||||
<a href="" class="tag">
|
||||
<span>Entertainment</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="block_content">
|
||||
<h2 class="title">
|
||||
<a>Who Needs Sundance When You’ve Got Crowdfunding?</a>
|
||||
</h2>
|
||||
<div class="byline">
|
||||
<span>13 hours ago</span> by <a>Jane Smith</a>
|
||||
</div>
|
||||
<p class="excerpt">Film festivals used to be do-or-die moments for movie makers. They were where you met the producers that could fund your project, and if the buyers liked your flick, they’d pay to Fast-forward and… <a>Read More</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@section('javascript')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user