bug fixes and new additions
This commit is contained in:
152
resources/views/reports/clients-expired-contracts.blade.php
Executable file
152
resources/views/reports/clients-expired-contracts.blade.php
Executable file
@@ -0,0 +1,152 @@
|
||||
@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">Expired Contracts</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('expiredclientscontracts') !!}">
|
||||
<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>
|
||||
</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>Expired Contracts - Clients </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="clients-expired-contracts-reports-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="clients-expired-contracts-reports-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="clientsExpiredContractsReportsTable"></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();
|
||||
var rowID = cell.getData().id
|
||||
//return "<a href='"+ base_url + "/clientpaymentreports/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
//return '<a href="'+ base_url + '"/clients/"'+rowID+'" class="btn btn-link">'+ url +'</a>';
|
||||
}
|
||||
var table = new Tabulator("#clientsExpiredContractsReportsTable", {
|
||||
ajaxURL: "expiredclientscontracts/all",
|
||||
paginationSize: 15,
|
||||
paginationSizeSelector: true,
|
||||
paginationSizeSelector:[5, 10, 25, 50, 100, 200],
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Name",
|
||||
field: "name",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Account Manager",
|
||||
field: "accountManager",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contract Validity",
|
||||
field: "contract_validity",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person",
|
||||
field: "contact_person",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Email",
|
||||
field: "email",
|
||||
sorter: "datetime",
|
||||
},
|
||||
{
|
||||
title: "Date Added",
|
||||
field: "created_at",
|
||||
sorter: "datetime",
|
||||
}
|
||||
],
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("clients-expired-contracts-reports-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "clients-expired-contracts-report.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("clients-expired-contracts-reports-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "clients-payment-reports-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile ERP - Clients Expired Contracts Reports", //add title to report
|
||||
});
|
||||
});
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
var keyword = $(this).val();
|
||||
table.setData("expiredclientscontracts/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
152
resources/views/reports/mno-expired-contracts.blade.php
Executable file
152
resources/views/reports/mno-expired-contracts.blade.php
Executable file
@@ -0,0 +1,152 @@
|
||||
@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">MNO Expired Contracts</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="title_right">
|
||||
<div class="row">
|
||||
<form method="GET" action="{!! url('mnopaymentreports') !!}">
|
||||
<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>
|
||||
</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> MNO Expired Contracts </h2>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="x_content">
|
||||
<div>
|
||||
<button id="mno-expired-contracts-reports-download-xlsx" class="btn btn-success btn-sm"><i class="fa fa-file-excel-o"></i> Download XLSX</button>
|
||||
<button id="mno-expired-contracts-reports-download-pdf" class="btn btn-danger btn-sm"><i class="fa fa-file-pdf-o"></i> Download PDF</button>
|
||||
</div>
|
||||
<div id="mnoExpiredContractsReportsTable"></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();
|
||||
var rowID = cell.getData().id
|
||||
//return "<a href='"+ base_url + "/clientpaymentreports/"+rowID+"' class='btn btn-link'>"+url+"</a>";
|
||||
//return '<a href="'+ base_url + '"/clients/"'+rowID+'" class="btn btn-link">'+ url +'</a>';
|
||||
}
|
||||
var table = new Tabulator("#mnoExpiredContractsReportsTable", {
|
||||
ajaxURL: "expiredmnocontracts/all",
|
||||
paginationSize: 15,
|
||||
paginationSizeSelector: true,
|
||||
paginationSizeSelector:[5, 10, 25, 50, 100, 200],
|
||||
layout: "fitColumns",
|
||||
pagination: "local",
|
||||
selectable: false,
|
||||
printAsHtml: true,
|
||||
ajaxLoaderLoading: $('#logo_spinner').html(),
|
||||
columns: [
|
||||
{
|
||||
title: "Name",
|
||||
field: "name",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Country",
|
||||
field: "country",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Account Manager",
|
||||
field: "accountManager",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contract Validity",
|
||||
field: "contract_validity",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person",
|
||||
field: "contact_person",
|
||||
sorter: "string",
|
||||
},
|
||||
{
|
||||
title: "Contact Person Email",
|
||||
field: "contact_person_email",
|
||||
sorter: "datetime",
|
||||
},
|
||||
{
|
||||
title: "Date Added",
|
||||
field: "created_at",
|
||||
sorter: "datetime",
|
||||
}
|
||||
],
|
||||
rowClick:function(e, row){
|
||||
var userID = row.getData().id;
|
||||
//$('#userEditModal').modal('show');
|
||||
},
|
||||
});
|
||||
document.getElementById("mno-expired-contracts-reports-download-xlsx").addEventListener("click", function(){
|
||||
table.download("xlsx", "mno-expired-contracts-report.xlsx", {sheetName:"Sheet 1"});
|
||||
});
|
||||
//trigger download of data.pdf file
|
||||
document.getElementById("mno-expired-contracts-reports-download-pdf").addEventListener("click", function(){
|
||||
table.download("pdf", "mno-payment-reports-list.pdf", {
|
||||
orientation:"portrait", //set page orientation to portrait
|
||||
title:"Click Mobile ERP - MNO Expired Contracts Reports", //add title to report
|
||||
});
|
||||
});
|
||||
|
||||
$('#keywordField').on('keyup', function(){
|
||||
var keyword = $(this).val();
|
||||
table.setData("expiredmnocontracts/all?keyword=" + keyword);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -14,7 +14,7 @@
|
||||
<div class="title_left">
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{!! url('dashboard') !!}">Dashboard</a></li>
|
||||
<li class=""><a href="{!! url('reports/overview') !!}"> Reports</a></li>
|
||||
<!-- <li class=""><a href="{!! url('reports/overview') !!}"> Reports</a></li> -->
|
||||
<li class="active">MNO Payments</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<div class="x_content">
|
||||
<div class="row tile_count">
|
||||
|
||||
<h4 class="green">General Documents Overview</h4>
|
||||
<h3 class="green">Reports Overview</h3>
|
||||
<div class="col-md-2 col-sm-4 col-xs-6 tile_stats_count">
|
||||
<span class="count_top"><i class="fa fa-list"></i>
|
||||
<a href="{!! url('reports/recentclients') !!}">Recent Clients</a>
|
||||
@@ -65,7 +65,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/recentclients') !!}"> 400</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
@@ -77,7 +77,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/clientsbyservice') !!}"> 923</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -89,7 +89,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('clientpaymentreports') !!}"> 6,123</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
@@ -112,7 +112,7 @@
|
||||
|
||||
<div class="count green">
|
||||
<a href="{!! url('mnopaymentreports') !!}">
|
||||
<img src="{{ url('public/assets/img/folder-icon.png') }}" width="40px"></a>
|
||||
<img src="{{ url('public/assets/img/report-icon.png') }}" width="40px"></a>
|
||||
<a href="{!! url('reports/useractivities') !!}"> 2,323</a>
|
||||
</div>
|
||||
<!-- <span class="count_bottom"><i class="green">4% </i> From last Week</span> -->
|
||||
|
||||
Reference in New Issue
Block a user