update 1.0.8.0

Commits for version update
This commit is contained in:
Manish Verma
2016-10-17 12:02:27 +05:30
parent dec927987b
commit 76e85db070
9674 changed files with 495757 additions and 58922 deletions

View File

@@ -0,0 +1,117 @@
<!DOCTYPE html>
<html>
<head>
<title>PDF</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
* {
font-family: "DejaVu Sans Mono", monospace;
}
</style>
<link href="{{asset("lb-faveo/css/bootstrap.min.css")}}" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="background-color:#F2F2F2;">
<h2>
<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();
?>
<center>
@if($system->url)
<a href="{!! $system->url !!}" rel="home">
@else
<a href="{{url('/')}}" rel="home" style="text-decoration:none;">
@endif
@if($company->use_logo == 1)
<img src="{!! public_path().'/uploads/company'.'/'.$company->logo !!}" width="100px;"/>
@else
@if($system->name)
{!! $system->name !!}
@else
<b>SUPPORT</b> CENTER
@endif
@endif
</a>
</center>
</div>
</h2>
</div>
<br/><br/>
<?php $help_topic_name = App\Model\helpdesk\Manage\Help_topic::where('id', '=', $table_help_topic)->first(); ?>
<span class="lead"> Help Topic : {!! $help_topic_name->topic !!} </span>
<br/>
Date Range : {!! reset($table_datas[0]) !!} --- {!! end($table_datas)->date !!}
<br/><br/>
<span class="lead">SUMMARY</span>
<table class="table table-striped" style="font-size:8;">
<thead>
<tr>
<td>Date</td>
@if(array_key_exists('open', $table_datas[1]))
<td>Created</td>
@endif
@if(array_key_exists('closed', $table_datas[1]))
<td>Closed</td>
@endif
@if(array_key_exists('reopened', $table_datas[1]))
<td>Reopened</td>
@endif
</tr>
</thead>
<tbody>
<?php
//dd($table_datas[1]);
$table_open = '';
$table_closed = '';
$table_reopened = '';
foreach ($table_datas as $table_data) {
echo '<tr>';
echo '<td>' . $table_data->date . '</td>';
if (array_key_exists('open', $table_data)) {
echo '<td>' . $table_data->open . '</td>';
$table_open += $table_data->open;
}
if (array_key_exists('closed', $table_data)) {
echo '<td>' . $table_data->closed . '</td>';
$table_closed += $table_data->closed;
}
if (array_key_exists('reopened', $table_data)) {
echo '<td>' . $table_data->reopened . '</td>';
$table_reopened += $table_data->reopened;
}
echo '</tr>';
}
?>
</tbody>
</table>
<table>
<tr>
<td>
<span style="color:#F7CF07;">TOTAL IN PROGRESS</span> : {!! $table_datas[1]->inprogress !!}
</td>
<td>
@if(array_key_exists('open', $table_data))
<span style="color:blue;">TOTAL CREATED</span> : {!! $table_open !!}
@endif
</td>
<td>
@if(array_key_exists('reopened', $table_data))
<span style="color:orange;">TOTAL REOPENED</span> : {!! $table_reopened !!}
@endif
</td>
<td>
@if(array_key_exists('closed', $table_data))
<span style="color:#00e765;">TOTAL CLOSED</span> : {!! $table_closed !!}
@endif
</td>
</tr>
</table>
</body>
</html>