mirror of
https://github.com/itflow-org/itflow
synced 2026-09-21 22:21:15 +00:00
Initial migration from AdminLTE 3 to 4, bootstrap 4 to 5
This commit is contained in:
@@ -19,9 +19,9 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale mr-2"></i>Annual Budget</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale me-2"></i>Annual Budget</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -46,19 +46,19 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo
|
||||
<thead class="text-dark">
|
||||
<tr>
|
||||
<th>Category</th>
|
||||
<th class="text-right">January</th>
|
||||
<th class="text-right">February</th>
|
||||
<th class="text-right">March</th>
|
||||
<th class="text-right">April</th>
|
||||
<th class="text-right">May</th>
|
||||
<th class="text-right">June</th>
|
||||
<th class="text-right">July</th>
|
||||
<th class="text-right">August</th>
|
||||
<th class="text-right">September</th>
|
||||
<th class="text-right">October</th>
|
||||
<th class="text-right">November</th>
|
||||
<th class="text-right">December</th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">January</th>
|
||||
<th class="text-end">February</th>
|
||||
<th class="text-end">March</th>
|
||||
<th class="text-end">April</th>
|
||||
<th class="text-end">May</th>
|
||||
<th class="text-end">June</th>
|
||||
<th class="text-end">July</th>
|
||||
<th class="text-end">August</th>
|
||||
<th class="text-end">September</th>
|
||||
<th class="text-end">October</th>
|
||||
<th class="text-end">November</th>
|
||||
<th class="text-end">December</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -77,12 +77,12 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo
|
||||
$amount = $budget['budget_amount'];
|
||||
$categoryTotal += $amount;
|
||||
$monthlyTotals[$month] += $amount;
|
||||
echo "<td class='text-right'>" . $amount . "</td>";
|
||||
echo "<td class='text-end'>" . $amount . "</td>";
|
||||
} else {
|
||||
echo "<td class='text-right'>0</td>";
|
||||
echo "<td class='text-end'>0</td>";
|
||||
}
|
||||
}
|
||||
echo "<td class='text-right'>" . $categoryTotal . "</td>";
|
||||
echo "<td class='text-end'>" . $categoryTotal . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
@@ -91,9 +91,9 @@ $monthlyTotals = array_fill(1, 12, 0); // Initialize monthly totals for each mo
|
||||
$grandTotal = 0;
|
||||
for ($month = 1; $month <= 12; $month++) {
|
||||
$grandTotal += $monthlyTotals[$month];
|
||||
echo "<td class='text-right'>" . $monthlyTotals[$month] . "</td>";
|
||||
echo "<td class='text-end'>" . $monthlyTotals[$month] . "</td>";
|
||||
}
|
||||
echo "<td class='text-right'>" . $grandTotal . "</td>";
|
||||
echo "<td class='text-end'>" . $grandTotal . "</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -122,15 +122,15 @@ $result = $stmt->get_result();
|
||||
<div class="card">
|
||||
<div class="card-header bg-dark py-2">
|
||||
<h3 class="card-title mt-2">
|
||||
<i class="fas fa-fw fa-life-ring mr-2"></i>
|
||||
<i class="fas fa-fw fa-life-ring me-2"></i>
|
||||
Client Time Detail Audit Report (<?= escapeHtml($from) ?> to <?= escapeHtml($to) ?>)
|
||||
<?php if ($billable_only) { ?>
|
||||
<span class="badge badge-success ml-2">Billable Only</span>
|
||||
<span class="badge bg-success ms-2">Billable Only</span>
|
||||
<?php } ?>
|
||||
</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();">
|
||||
<i class="fas fa-fw fa-print mr-2"></i>Print
|
||||
<i class="fas fa-fw fa-print me-2"></i>Print
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,23 +158,23 @@ $result = $stmt->get_result();
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 mb-2 d-flex align-items-end ml-auto">
|
||||
<button type="submit" class="btn btn-success btn-block">
|
||||
<i class="fas fa-fw fa-filter mr-1"></i>Apply
|
||||
<div class="col-md-2 mb-2 d-flex align-items-end ms-auto">
|
||||
<button type="submit" class="btn btn-success w-100">
|
||||
<i class="fas fa-fw fa-filter me-1"></i>Apply
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4 mb-2 d-flex align-items-end">
|
||||
<div class="custom-control custom-checkbox">
|
||||
<div class="form-check">
|
||||
<input
|
||||
type="checkbox"
|
||||
class="custom-control-input"
|
||||
class="form-check-input"
|
||||
id="billable_only"
|
||||
name="billable_only"
|
||||
value="1"
|
||||
<?php if ($billable_only) echo 'checked'; ?>
|
||||
>
|
||||
<label class="custom-control-label" for="billable_only">Billable tickets only</label>
|
||||
<label class="form-check-label" for="billable_only">Billable tickets only</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -190,8 +190,8 @@ $result = $stmt->get_result();
|
||||
<thead class="bg-dark">
|
||||
<tr>
|
||||
<th>Ticket / Replies with Time</th>
|
||||
<th class="text-right" style="width: 150px;">Time Worked</th>
|
||||
<th class="text-right" style="width: 120px;">Billable (hrs)</th>
|
||||
<th class="text-end" style="width: 150px;">Time Worked</th>
|
||||
<th class="text-end" style="width: 120px;">Billable (hrs)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@@ -201,10 +201,10 @@ $result = $stmt->get_result();
|
||||
$printTicketSubtotalRow = function($ticket_label_html, $ticket_seconds, $ticket_billable_seconds) {
|
||||
$ticket_billed = secondsToDecimalHours($ticket_billable_seconds);
|
||||
?>
|
||||
<tr class="font-weight-bold">
|
||||
<td class="text-right pr-3">Ticket Total for <?= $ticket_label_html ?></td>
|
||||
<td class="text-right"><?= formatDuration(secondsToHmsString($ticket_seconds)) ?></td>
|
||||
<td class="text-right"><?= number_format($ticket_billed, 2) ?></td>
|
||||
<tr class="fw-bold">
|
||||
<td class="text-end pe-3">Ticket Total for <?= $ticket_label_html ?></td>
|
||||
<td class="text-end"><?= formatDuration(secondsToHmsString($ticket_seconds)) ?></td>
|
||||
<td class="text-end"><?= number_format($ticket_billed, 2) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
return $ticket_billed;
|
||||
@@ -273,12 +273,12 @@ $result = $stmt->get_result();
|
||||
|
||||
// Client subtotal (billable based on sum of rounded replies across all tickets)
|
||||
?>
|
||||
<tr class="font-weight-bold">
|
||||
<td class="text-right">
|
||||
<tr class="fw-bold">
|
||||
<td class="text-end">
|
||||
Total for <?= $current_client_name ?> (<?= $client_ticket_count ?> tickets)
|
||||
</td>
|
||||
<td class="text-right"><?= formatDuration(secondsToHmsString($client_time_seconds)) ?></td>
|
||||
<td class="text-right"><?= number_format(secondsToDecimalHours($client_billable_seconds), 2) ?></td>
|
||||
<td class="text-end"><?= formatDuration(secondsToHmsString($client_time_seconds)) ?></td>
|
||||
<td class="text-end"><?= number_format(secondsToDecimalHours($client_billable_seconds), 2) ?></td>
|
||||
</tr>
|
||||
<tr><td colspan="3"></td></tr>
|
||||
<?php
|
||||
@@ -295,7 +295,7 @@ $result = $stmt->get_result();
|
||||
$current_client_name = $client_name_html;
|
||||
?>
|
||||
<tr class="table-active">
|
||||
<td colspan="3" class="font-weight-bold"><?= $client_name_html ?></td>
|
||||
<td colspan="3" class="fw-bold"><?= $client_name_html ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -328,9 +328,9 @@ $result = $stmt->get_result();
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="font-weight-bold"><?= $ticket_label_html ?></td>
|
||||
<td class="text-right text-muted"></td>
|
||||
<td class="text-right text-muted"></td>
|
||||
<td class="fw-bold"><?= $ticket_label_html ?></td>
|
||||
<td class="text-end text-muted"></td>
|
||||
<td class="text-end text-muted"></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -338,15 +338,15 @@ $result = $stmt->get_result();
|
||||
// Reply row (indented)
|
||||
?>
|
||||
<tr>
|
||||
<td class="pl-4 text-muted">
|
||||
<i class="far fa-clock mr-1"></i>
|
||||
<td class="ps-4 text-muted">
|
||||
<i class="far fa-clock me-1"></i>
|
||||
<?= escapeHtml(date('Y-m-d g:i A', strtotime($reply_created_at))) ?>
|
||||
<div class="mt-1 text-body" style="white-space: normal;">
|
||||
<?= $reply_content_html ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-right"><?= formatDuration($reply_hms) ?></td>
|
||||
<td class="text-right"><?= number_format(secondsToDecimalHours($reply_billable_seconds), 2) ?></td>
|
||||
<td class="text-end"><?= formatDuration($reply_hms) ?></td>
|
||||
<td class="text-end"><?= number_format(secondsToDecimalHours($reply_billable_seconds), 2) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
@@ -378,23 +378,23 @@ $result = $stmt->get_result();
|
||||
|
||||
// Close last client subtotal
|
||||
?>
|
||||
<tr class="font-weight-bold">
|
||||
<td class="text-right">
|
||||
<tr class="fw-bold">
|
||||
<td class="text-end">
|
||||
Total for <?= $current_client_name ?> (<?= $client_ticket_count ?> tickets)
|
||||
</td>
|
||||
<td class="text-right"><?= formatDuration(secondsToHmsString($client_time_seconds)) ?></td>
|
||||
<td class="text-right"><?= number_format(secondsToDecimalHours($client_billable_seconds), 2) ?></td>
|
||||
<td class="text-end"><?= formatDuration(secondsToHmsString($client_time_seconds)) ?></td>
|
||||
<td class="text-end"><?= number_format(secondsToDecimalHours($client_billable_seconds), 2) ?></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan="3"></td></tr>
|
||||
|
||||
<!-- Grand totals -->
|
||||
<tr class="font-weight-bold">
|
||||
<td class="text-right">
|
||||
<tr class="fw-bold">
|
||||
<td class="text-end">
|
||||
Grand Total (<?= $grand_ticket_count ?> tickets)
|
||||
</td>
|
||||
<td class="text-right"><?= formatDuration(secondsToHmsString($grand_time_seconds)) ?></td>
|
||||
<td class="text-right"><?= number_format(secondsToDecimalHours($grand_billable_seconds), 2) ?></td>
|
||||
<td class="text-end"><?= formatDuration(secondsToHmsString($grand_time_seconds)) ?></td>
|
||||
<td class="text-end"><?= number_format(secondsToDecimalHours($grand_billable_seconds), 2) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -24,9 +24,9 @@ $passwords_not_rotated_sql = mysqli_query($mysqli,
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring mr-2"></i>Client credentials not changed/rotated in the last 90 days</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring me-2"></i>Client credentials not changed/rotated in the last 90 days</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -36,9 +36,9 @@ $passwords_not_rotated_sql = mysqli_query($mysqli,
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Credential Name</th>
|
||||
<th class="text-right">Credential Description</th>
|
||||
<th class="text-right">Credential Password Last Changed</th>
|
||||
<th class="text-end">Credential Name</th>
|
||||
<th class="text-end">Credential Description</th>
|
||||
<th class="text-end">Credential Password Last Changed</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -58,9 +58,9 @@ $passwords_not_rotated_sql = mysqli_query($mysqli,
|
||||
|
||||
<tr>
|
||||
<td><?= $client_name ?></td>
|
||||
<td class="text-right"><?= $credential_name ?></td>
|
||||
<td class="text-right"><?= $credential_description ?></td>
|
||||
<td class="text-right"><?= timeAgo($credential_password_changed) . " (" . $credential_password_changed . ")" ?></td>
|
||||
<td class="text-end"><?= $credential_name ?></td>
|
||||
<td class="text-end"><?= $credential_description ?></td>
|
||||
<td class="text-end"><?= timeAgo($credential_password_changed) . " (" . $credential_password_changed . ")" ?></td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
@@ -41,9 +41,9 @@ $sql_vendor_expenses = mysqli_query($mysqli, "
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-building mr-2"></i>Expense By Vendor <small>(With expense amounts of 600 or more)</small></h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-building me-2"></i>Expense By Vendor <small>(With expense amounts of 600 or more)</small></h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -69,7 +69,7 @@ $sql_vendor_expenses = mysqli_query($mysqli, "
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Vendor</th>
|
||||
<th class="text-right">Paid</th>
|
||||
<th class="text-end">Paid</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -81,7 +81,7 @@ $sql_vendor_expenses = mysqli_query($mysqli, "
|
||||
|
||||
<tr>
|
||||
<td><?= $vendor_name ?></td>
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $amount_paid, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $amount_paid, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -27,9 +27,9 @@ $largest_expense_month = 0;
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins mr-2"></i>Expense Summary</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins me-2"></i>Expense Summary</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -51,19 +51,19 @@ $largest_expense_month = 0;
|
||||
<thead class="text-dark">
|
||||
<tr>
|
||||
<th>Category</th>
|
||||
<th class="text-right">January</th>
|
||||
<th class="text-right">February</th>
|
||||
<th class="text-right">March</th>
|
||||
<th class="text-right">April</th>
|
||||
<th class="text-right">May</th>
|
||||
<th class="text-right">June</th>
|
||||
<th class="text-right">July</th>
|
||||
<th class="text-right">August</th>
|
||||
<th class="text-right">September</th>
|
||||
<th class="text-right">October</th>
|
||||
<th class="text-right">November</th>
|
||||
<th class="text-right">December</th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">January</th>
|
||||
<th class="text-end">February</th>
|
||||
<th class="text-end">March</th>
|
||||
<th class="text-end">April</th>
|
||||
<th class="text-end">May</th>
|
||||
<th class="text-end">June</th>
|
||||
<th class="text-end">July</th>
|
||||
<th class="text-end">August</th>
|
||||
<th class="text-end">September</th>
|
||||
<th class="text-end">October</th>
|
||||
<th class="text-end">November</th>
|
||||
<th class="text-end">December</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -80,13 +80,13 @@ $largest_expense_month = 0;
|
||||
$expense_amount_for_month = floatval($rowm['expense_amount_for_month']);
|
||||
$total_expense_for_all_months += $expense_amount_for_month;
|
||||
?>
|
||||
<td class="text-right">
|
||||
<td class="text-end">
|
||||
<a class="text-dark" href="expenses.php?q=<?= $category_name ?>&dtf=<?= "$year-$month" ?>-01&dtt=<?= "$year-$month" ?>-31">
|
||||
<?= numfmt_format_currency($currency_format, $expense_amount_for_month, $session_company_currency) ?>
|
||||
</a>
|
||||
</td>
|
||||
<?php } ?>
|
||||
<th class="text-right">
|
||||
<th class="text-end">
|
||||
<a class="text-dark" href="expenses.php?q=<?= $category_name ?>&dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<?= numfmt_format_currency($currency_format, $total_expense_for_all_months, $session_company_currency) ?>
|
||||
</a>
|
||||
@@ -104,13 +104,13 @@ $largest_expense_month = 0;
|
||||
$expense_total_amount_for_month = floatval($rowt['expense_total_amount_for_month']);
|
||||
$grand_total_all_months += $expense_total_amount_for_month;
|
||||
?>
|
||||
<th class="text-right">
|
||||
<th class="text-end">
|
||||
<a class="text-dark" href="expenses.php?dtf=<?= "$year-$month" ?>-01&dtt=<?= "$year-$month" ?>-31">
|
||||
<?= numfmt_format_currency($currency_format, $expense_total_amount_for_month, $session_company_currency) ?>
|
||||
</a>
|
||||
</th>
|
||||
<?php } ?>
|
||||
<th class="text-right">
|
||||
<th class="text-end">
|
||||
<a class="text-dark" href="expenses.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<?= numfmt_format_currency($currency_format, $grand_total_all_months, $session_company_currency) ?>
|
||||
</a>
|
||||
|
||||
@@ -1,19 +1,19 @@
|
||||
<!-- Main Sidebar Container -->
|
||||
<aside class="main-sidebar sidebar-dark-primary d-print-none">
|
||||
<aside class="app-sidebar shadow d-print-none" data-bs-theme="dark">
|
||||
|
||||
<a class="pb-1 mt-1 brand-link" href="/agent/<?= $config_start_page ?>">
|
||||
<p class="h5"><i class="nav-icon fas fa-arrow-left ml-3 mr-2"></i>
|
||||
<p class="h5"><i class="nav-icon fas fa-arrow-left ms-3 me-2"></i>
|
||||
<span class="brand-text ">Back | <strong>Reports</strong>
|
||||
</p>
|
||||
</a>
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div class="sidebar">
|
||||
<div class="sidebar-wrapper">
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav>
|
||||
|
||||
<ul class="nav nav-pills nav-sidebar flex-column mt-2" data-widget="treeview" data-accordion="false">
|
||||
<ul class="nav nav-pills sidebar-menu flex-column mt-2" data-lte-toggle="treeview" data-accordion="false">
|
||||
|
||||
<?php if ($config_module_enable_accounting == 1 && lookupUserPermission("module_financial") >= 1) { ?>
|
||||
<li class="nav-header">INCOME</li>
|
||||
@@ -161,7 +161,7 @@
|
||||
<a href="<?= $custom_link_uri ?>" <?= $target ?> class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == basename($custom_link_uri)) { echo "active"; } ?>">
|
||||
<i class="fas fa-<?= $custom_link_icon ?> nav-icon"></i>
|
||||
<p><?= $custom_link_name ?></p>
|
||||
<i class="fas fa-angle-right nav-icon float-right"></i>
|
||||
<i class="fas fa-angle-right nav-icon float-end"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
@@ -23,9 +23,9 @@ $sql_payment_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(payment_date) A
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-users mr-2"></i>Income By Client <small>(With payments of 600 or more)</small></h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-users me-2"></i>Income By Client <small>(With payments of 600 or more)</small></h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -64,7 +64,7 @@ $sql_payment_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(payment_date) A
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Paid</th>
|
||||
<th class="text-end">Paid</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -78,7 +78,7 @@ $sql_payment_years = mysqli_query($mysqli, "SELECT DISTINCT YEAR(payment_date) A
|
||||
|
||||
<tr>
|
||||
<td><a href="../../agent/client_overview.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $amount_paid, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $amount_paid, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -29,9 +29,9 @@ $largest_income_month = 0;
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins mr-2"></i>Income Summary</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins me-2"></i>Income Summary</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
@@ -55,19 +55,19 @@ $largest_income_month = 0;
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Category</th>
|
||||
<th class="text-right">January</th>
|
||||
<th class="text-right">February</th>
|
||||
<th class="text-right">March</th>
|
||||
<th class="text-right">April</th>
|
||||
<th class="text-right">May</th>
|
||||
<th class="text-right">June</th>
|
||||
<th class="text-right">July</th>
|
||||
<th class="text-right">August</th>
|
||||
<th class="text-right">September</th>
|
||||
<th class="text-right">October</th>
|
||||
<th class="text-right">November</th>
|
||||
<th class="text-right">December</th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">January</th>
|
||||
<th class="text-end">February</th>
|
||||
<th class="text-end">March</th>
|
||||
<th class="text-end">April</th>
|
||||
<th class="text-end">May</th>
|
||||
<th class="text-end">June</th>
|
||||
<th class="text-end">July</th>
|
||||
<th class="text-end">August</th>
|
||||
<th class="text-end">September</th>
|
||||
<th class="text-end">October</th>
|
||||
<th class="text-end">November</th>
|
||||
<th class="text-end">December</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -92,9 +92,9 @@ $largest_income_month = 0;
|
||||
$payment_amount_for_month = $payment_amount_for_month + $revenues_amount_for_month;
|
||||
$total_payment_for_all_months += $payment_amount_for_month;
|
||||
?>
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $payment_amount_for_month, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $payment_amount_for_month, $session_company_currency) ?></td>
|
||||
<?php } ?>
|
||||
<td class="text-right text-bold"><?= numfmt_format_currency($currency_format, $total_payment_for_all_months, $session_company_currency) ?></td>
|
||||
<td class="text-end text-bold"><?= numfmt_format_currency($currency_format, $total_payment_for_all_months, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -114,9 +114,9 @@ $largest_income_month = 0;
|
||||
$payment_total_amount_for_month += $revenues_total_amount_for_month;
|
||||
$grand_total_all_months += $payment_total_amount_for_month;
|
||||
?>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_month, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_month, $session_company_currency) ?></th>
|
||||
<?php } ?>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $grand_total_all_months, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $grand_total_all_months, $session_company_currency) ?></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -6,7 +6,7 @@ require_once "includes/inc_all_reports.php";
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins mr-2"></i>Reports</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-coins me-2"></i>Reports</h3>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<form class="p-3">
|
||||
|
||||
@@ -8,9 +8,9 @@ enforceUserPermission('module_financial');
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-exclamation-triangle mr-2"></i>Clients with a Balance</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-exclamation-triangle me-2"></i>Clients with a Balance</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -54,7 +54,7 @@ enforceUserPermission('module_financial');
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Balance</th>
|
||||
<th class="text-end">Balance</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -68,7 +68,7 @@ enforceUserPermission('module_financial');
|
||||
|
||||
<tr>
|
||||
<td><a href="../../agent/invoices.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $balance, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $balance, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -26,9 +26,9 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale mr-2"></i>Profit & Loss</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale me-2"></i>Profit & Loss</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
@@ -52,11 +52,11 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
<thead class="text-dark">
|
||||
<tr>
|
||||
<th></th>
|
||||
<th class="text-right">Jan-Mar</th>
|
||||
<th class="text-right">Apr-Jun</th>
|
||||
<th class="text-right">Jul-Sep</th>
|
||||
<th class="text-right">Oct-Dec</th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">Jan-Mar</th>
|
||||
<th class="text-end">Apr-Jun</th>
|
||||
<th class="text-end">Jul-Sep</th>
|
||||
<th class="text-end">Oct-Dec</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><br><br>Income</th>
|
||||
@@ -93,7 +93,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_one, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_one, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -115,7 +115,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_two, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_two, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -136,7 +136,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_three, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_three, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -159,9 +159,9 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_four, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $payment_amount_for_quarter_four, $session_company_currency) ?></td>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $total_payments_for_all_four_quarters, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $total_payments_for_all_four_quarters, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@@ -194,7 +194,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_one, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_one, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -216,7 +216,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_two, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_two, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -238,7 +238,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_three, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_three, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -262,9 +262,9 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_four, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $payment_total_amount_for_quarter_four, $session_company_currency) ?></th>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $total_payments_for_all_four_quarters, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $total_payments_for_all_four_quarters, $session_company_currency) ?></th>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
@@ -292,7 +292,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_one, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_one, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -306,7 +306,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_two, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_two, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -320,7 +320,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_three, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_three, $session_company_currency) ?></td>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -336,9 +336,9 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_four, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $expense_amount_for_quarter_four, $session_company_currency) ?></td>
|
||||
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $total_expenses_for_all_four_quarters, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $total_expenses_for_all_four_quarters, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@@ -363,7 +363,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_one, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_one, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -377,7 +377,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_two, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_two, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -391,7 +391,7 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_three, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_three, $session_company_currency) ?></th>
|
||||
|
||||
<?php
|
||||
|
||||
@@ -407,9 +407,9 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
|
||||
?>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_four, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $expense_total_amount_for_quarter_four, $session_company_currency) ?></th>
|
||||
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $total_expenses_for_all_four_quarters, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $total_expenses_for_all_four_quarters, $session_company_currency) ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<?php
|
||||
@@ -421,11 +421,11 @@ $sql_categories_expense = mysqli_query($mysqli, "SELECT category_id, category_na
|
||||
?>
|
||||
|
||||
<th>Net Profit</th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $net_profit_quarter_one, $session_company_currency) ?></th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $net_profit_quarter_two, $session_company_currency) ?></th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $net_profit_quarter_three, $session_company_currency) ?></th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $net_profit_quarter_four, $session_company_currency) ?></th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $net_profit_year, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $net_profit_quarter_one, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $net_profit_quarter_two, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $net_profit_quarter_three, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $net_profit_quarter_four, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $net_profit_year, $session_company_currency) ?></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -20,9 +20,9 @@ $sql = mysqli_query($mysqli, "
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-sync mr-2"></i>Recurring Income By Client</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-sync me-2"></i>Recurring Income By Client</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -31,7 +31,7 @@ $sql = mysqli_query($mysqli, "
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Monthly Recurring</th>
|
||||
<th class="text-end">Monthly Recurring</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -47,7 +47,7 @@ $sql = mysqli_query($mysqli, "
|
||||
|
||||
<tr>
|
||||
<td><a href="../../agent/client_overview.php?client_id=<?= $client_id ?>"><?= $client_name ?></a></td>
|
||||
<td class="text-right"><?= numfmt_format_currency($currency_format, $recurring_monthly_total, $session_company_currency) ?></td>
|
||||
<td class="text-end"><?= numfmt_format_currency($currency_format, $recurring_monthly_total, $session_company_currency) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -55,7 +55,7 @@ $sql = mysqli_query($mysqli, "
|
||||
?>
|
||||
<tr>
|
||||
<th>Total Monthly Income</th>
|
||||
<th class="text-right"><?= numfmt_format_currency($currency_format, $recurring_total, $session_company_currency) ?></th>
|
||||
<th class="text-end"><?= numfmt_format_currency($currency_format, $recurring_total, $session_company_currency) ?></th>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -58,9 +58,9 @@ while ($resolve_row = mysqli_fetch_assoc($sql_resolve_times)) {
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-stopwatch mr-2"></i>SLA by Client</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-stopwatch me-2"></i>SLA by Client</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -82,7 +82,7 @@ while ($resolve_row = mysqli_fetch_assoc($sql_resolve_times)) {
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i><?= $period_label ?></h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area me-2"></i><?= $period_label ?></h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -90,15 +90,15 @@ while ($resolve_row = mysqli_fetch_assoc($sql_resolve_times)) {
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Tickets</th>
|
||||
<th class="text-right">Response met</th>
|
||||
<th class="text-right">Response missed</th>
|
||||
<th class="text-right">Response %</th>
|
||||
<th class="text-right">Resolution met</th>
|
||||
<th class="text-right">Resolution missed</th>
|
||||
<th class="text-right">Resolution %</th>
|
||||
<th class="text-right">Avg time to respond</th>
|
||||
<th class="text-right">Avg clock to resolve</th>
|
||||
<th class="text-end">Tickets</th>
|
||||
<th class="text-end">Response met</th>
|
||||
<th class="text-end">Response missed</th>
|
||||
<th class="text-end">Response %</th>
|
||||
<th class="text-end">Resolution met</th>
|
||||
<th class="text-end">Resolution missed</th>
|
||||
<th class="text-end">Resolution %</th>
|
||||
<th class="text-end">Avg time to respond</th>
|
||||
<th class="text-end">Avg clock to resolve</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -147,15 +147,15 @@ while ($resolve_row = mysqli_fetch_assoc($sql_resolve_times)) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $client_name ?></td>
|
||||
<td class="text-right"><?= $ticket_count ?></td>
|
||||
<td class="text-right"><?= $response_met ?></td>
|
||||
<td class="text-right"><?= $response_missed ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($response_percent) ?></td>
|
||||
<td class="text-right"><?= $resolution_met ?></td>
|
||||
<td class="text-right"><?= $resolution_missed ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($resolution_percent) ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_resolve ?></td>
|
||||
<td class="text-end"><?= $ticket_count ?></td>
|
||||
<td class="text-end"><?= $response_met ?></td>
|
||||
<td class="text-end"><?= $response_missed ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($response_percent) ?></td>
|
||||
<td class="text-end"><?= $resolution_met ?></td>
|
||||
<td class="text-end"><?= $resolution_missed ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($resolution_percent) ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_resolve ?></td>
|
||||
</tr>
|
||||
<?php }
|
||||
if (!$any_rows) { ?>
|
||||
|
||||
@@ -57,9 +57,9 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-stopwatch mr-2"></i>SLA Summary</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-stopwatch me-2"></i>SLA Summary</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -109,7 +109,7 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i>By Priority (<?= $year ?>)</h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area me-2"></i>By Priority (<?= $year ?>)</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -117,13 +117,13 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Priority</th>
|
||||
<th class="text-right">Tickets</th>
|
||||
<th class="text-right">Response met</th>
|
||||
<th class="text-right">Response missed</th>
|
||||
<th class="text-right">Response %</th>
|
||||
<th class="text-right">Resolution met</th>
|
||||
<th class="text-right">Resolution missed</th>
|
||||
<th class="text-right">Resolution %</th>
|
||||
<th class="text-end">Tickets</th>
|
||||
<th class="text-end">Response met</th>
|
||||
<th class="text-end">Response missed</th>
|
||||
<th class="text-end">Response %</th>
|
||||
<th class="text-end">Resolution met</th>
|
||||
<th class="text-end">Resolution missed</th>
|
||||
<th class="text-end">Resolution %</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -135,13 +135,13 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
?>
|
||||
<tr>
|
||||
<td><?= $priority ?></td>
|
||||
<td class="text-right"><?= $stats['ticket_count'] ?></td>
|
||||
<td class="text-right"><?= $stats['response_met'] ?></td>
|
||||
<td class="text-right"><?= $stats['response_missed'] ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($stats['response_percent']) ?></td>
|
||||
<td class="text-right"><?= $stats['resolution_met'] ?></td>
|
||||
<td class="text-right"><?= $stats['resolution_missed'] ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($stats['resolution_percent']) ?></td>
|
||||
<td class="text-end"><?= $stats['ticket_count'] ?></td>
|
||||
<td class="text-end"><?= $stats['response_met'] ?></td>
|
||||
<td class="text-end"><?= $stats['response_missed'] ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($stats['response_percent']) ?></td>
|
||||
<td class="text-end"><?= $stats['resolution_met'] ?></td>
|
||||
<td class="text-end"><?= $stats['resolution_missed'] ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($stats['resolution_percent']) ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@@ -152,7 +152,7 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-calendar mr-2"></i>By Month (<?= $year ?>)</h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-calendar me-2"></i>By Month (<?= $year ?>)</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -160,10 +160,10 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Month</th>
|
||||
<th class="text-right">Tickets</th>
|
||||
<th class="text-right">Response %</th>
|
||||
<th class="text-right">Resolution %</th>
|
||||
<th class="text-right">Still open</th>
|
||||
<th class="text-end">Tickets</th>
|
||||
<th class="text-end">Response %</th>
|
||||
<th class="text-end">Resolution %</th>
|
||||
<th class="text-end">Still open</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -175,10 +175,10 @@ $overall = getSlaCompliance("AND YEAR(ticket_created_at) = $year");
|
||||
?>
|
||||
<tr>
|
||||
<td><?= date("F", mktime(1, 1, 1, $month, 1)) ?></td>
|
||||
<td class="text-right"><?= $stats['ticket_count'] ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($stats['response_percent']) ?></td>
|
||||
<td class="text-right"><?= slaPercentDisplay($stats['resolution_percent']) ?></td>
|
||||
<td class="text-right"><?= $stats['resolution_pending'] ?></td>
|
||||
<td class="text-end"><?= $stats['ticket_count'] ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($stats['response_percent']) ?></td>
|
||||
<td class="text-end"><?= slaPercentDisplay($stats['resolution_percent']) ?></td>
|
||||
<td class="text-end"><?= $stats['resolution_pending'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
||||
@@ -20,9 +20,9 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale mr-2"></i>Collected Tax Summary</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-balance-scale me-2"></i>Collected Tax Summary</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
@@ -56,16 +56,16 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
<?php
|
||||
if ($view == 'monthly') {
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
echo "<th class='text-right'>" . date('M', mktime(0, 0, 0, $i, 10)) . "</th>";
|
||||
echo "<th class='text-end'>" . date('M', mktime(0, 0, 0, $i, 10)) . "</th>";
|
||||
}
|
||||
} else {
|
||||
echo "<th class='text-right'>Jan-Mar</th>";
|
||||
echo "<th class='text-right'>Apr-Jun</th>";
|
||||
echo "<th class='text-right'>Jul-Sep</th>";
|
||||
echo "<th class='text-right'>Oct-Dec</th>";
|
||||
echo "<th class='text-end'>Jan-Mar</th>";
|
||||
echo "<th class='text-end'>Apr-Jun</th>";
|
||||
echo "<th class='text-end'>Jul-Sep</th>";
|
||||
echo "<th class='text-end'>Oct-Dec</th>";
|
||||
}
|
||||
?>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -93,7 +93,7 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
$monthly_totals[$i] += $monthly_tax;
|
||||
$grand_total += $monthly_tax;
|
||||
|
||||
echo "<td class='text-right'>" . numfmt_format_currency($currency_format, $monthly_tax, $company_currency) . "</td>";
|
||||
echo "<td class='text-end'>" . numfmt_format_currency($currency_format, $monthly_tax, $company_currency) . "</td>";
|
||||
}
|
||||
|
||||
// Row total = sum of this tax’s 12 months
|
||||
@@ -101,7 +101,7 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
$row_total += (float) getMonthlyTax($tax_name, $i, $year, $mysqli);
|
||||
}
|
||||
echo "<td class='text-right text-bold'>" . numfmt_format_currency($currency_format, $row_total, $company_currency) . "</td>";
|
||||
echo "<td class='text-end text-bold'>" . numfmt_format_currency($currency_format, $row_total, $company_currency) . "</td>";
|
||||
|
||||
} else {
|
||||
|
||||
@@ -115,10 +115,10 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
|
||||
$row_total += $quarterly_tax;
|
||||
|
||||
echo "<td class='text-right'>" . numfmt_format_currency($currency_format, $quarterly_tax, $company_currency) . "</td>";
|
||||
echo "<td class='text-end'>" . numfmt_format_currency($currency_format, $quarterly_tax, $company_currency) . "</td>";
|
||||
}
|
||||
|
||||
echo "<td class='text-right text-bold'>" . numfmt_format_currency($currency_format, $row_total, $company_currency) . "</td>";
|
||||
echo "<td class='text-end text-bold'>" . numfmt_format_currency($currency_format, $row_total, $company_currency) . "</td>";
|
||||
}
|
||||
|
||||
echo "</tr>";
|
||||
@@ -130,15 +130,15 @@ $sql_tax = mysqli_query($mysqli, "SELECT `tax_name` FROM `taxes`");
|
||||
|
||||
if ($view == 'monthly') {
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
echo "<th class='text-right text-bold'>" . numfmt_format_currency($currency_format, $monthly_totals[$i], $company_currency) . "</th>";
|
||||
echo "<th class='text-end text-bold'>" . numfmt_format_currency($currency_format, $monthly_totals[$i], $company_currency) . "</th>";
|
||||
}
|
||||
} else {
|
||||
for ($q = 1; $q <= 4; $q++) {
|
||||
echo "<th class='text-right text-bold'>" . numfmt_format_currency($currency_format, $quarterly_totals[$q], $company_currency) . "</th>";
|
||||
echo "<th class='text-end text-bold'>" . numfmt_format_currency($currency_format, $quarterly_totals[$q], $company_currency) . "</th>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "<th class='text-right text-bold'>" . numfmt_format_currency($currency_format, $grand_total, $company_currency) . "</th>";
|
||||
echo "<th class='text-end text-bold'>" . numfmt_format_currency($currency_format, $grand_total, $company_currency) . "</th>";
|
||||
echo "</tr>";
|
||||
|
||||
?>
|
||||
|
||||
@@ -24,9 +24,9 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring mr-2"></i>Tickets By Client</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring me-2"></i>Tickets By Client</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -56,7 +56,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i>Yearly (<?= $year ?>)</h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area me-2"></i>Yearly (<?= $year ?>)</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -64,15 +64,15 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Raised</th>
|
||||
<th class="text-right">Priority: Low</th>
|
||||
<th class="text-right">Priority: Med</th>
|
||||
<th class="text-right">Priority: High</th>
|
||||
<th class="text-right">Priority: Urgent</th>
|
||||
<th class="text-right">Resolved</th>
|
||||
<th class="text-right">Total Time worked <i>(H:M:S)</i></th>
|
||||
<th class="text-right">Avg time to respond</th>
|
||||
<th class="text-right">Avg time to resolve</th>
|
||||
<th class="text-end">Raised</th>
|
||||
<th class="text-end">Priority: Low</th>
|
||||
<th class="text-end">Priority: Med</th>
|
||||
<th class="text-end">Priority: High</th>
|
||||
<th class="text-end">Priority: Urgent</th>
|
||||
<th class="text-end">Resolved</th>
|
||||
<th class="text-end">Total Time worked <i>(H:M:S)</i></th>
|
||||
<th class="text-end">Avg time to respond</th>
|
||||
<th class="text-end">Avg time to resolve</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -160,15 +160,15 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
|
||||
<tr>
|
||||
<td><?= $client_name ?></td>
|
||||
<td class="text-right"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-right"><?= $low_ticket_count ?></td>
|
||||
<td class="text-right"><?= $med_ticket_count ?></td>
|
||||
<td class="text-right"><?= $high_ticket_count ?></td>
|
||||
<td class="text-right"><?= $urgent_ticket_count ?></td>
|
||||
<td class="text-right"><?= $ticket_resolved_count ?></td>
|
||||
<td class="text-right"><?= $ticket_total_time_worked ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_resolve ?></td>
|
||||
<td class="text-end"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-end"><?= $low_ticket_count ?></td>
|
||||
<td class="text-end"><?= $med_ticket_count ?></td>
|
||||
<td class="text-end"><?= $high_ticket_count ?></td>
|
||||
<td class="text-end"><?= $urgent_ticket_count ?></td>
|
||||
<td class="text-end"><?= $ticket_resolved_count ?></td>
|
||||
<td class="text-end"><?= $ticket_total_time_worked ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_resolve ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
@@ -184,7 +184,7 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i>Monthly (<?= date("F", mktime(1, 1, 1, $month, 1)) . ' ' . $year ?>)</h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area me-2"></i>Monthly (<?= date("F", mktime(1, 1, 1, $month, 1)) . ' ' . $year ?>)</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -192,15 +192,15 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Raised</th>
|
||||
<th class="text-right">Priority: Low</th>
|
||||
<th class="text-right">Priority: Med</th>
|
||||
<th class="text-right">Priority: High</th>
|
||||
<th class="text-right">Priority: Urgent</th>
|
||||
<th class="text-right">Resolved</th>
|
||||
<th class="text-right">Total Time worked <i>(H:M:S)</i></th>
|
||||
<th class="text-right">Avg time to respond</th>
|
||||
<th class="text-right">Avg time to resolve</th>
|
||||
<th class="text-end">Raised</th>
|
||||
<th class="text-end">Priority: Low</th>
|
||||
<th class="text-end">Priority: Med</th>
|
||||
<th class="text-end">Priority: High</th>
|
||||
<th class="text-end">Priority: Urgent</th>
|
||||
<th class="text-end">Resolved</th>
|
||||
<th class="text-end">Total Time worked <i>(H:M:S)</i></th>
|
||||
<th class="text-end">Avg time to respond</th>
|
||||
<th class="text-end">Avg time to resolve</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -288,15 +288,15 @@ $sql_clients = mysqli_query($mysqli, "SELECT client_id, client_name FROM clients
|
||||
|
||||
<tr>
|
||||
<td><?= $client_name ?></td>
|
||||
<td class="text-right"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-right"><?= $low_ticket_count ?></td>
|
||||
<td class="text-right"><?= $med_ticket_count ?></td>
|
||||
<td class="text-right"><?= $high_ticket_count ?></td>
|
||||
<td class="text-right"><?= $urgent_ticket_count ?></td>
|
||||
<td class="text-right"><?= $ticket_resolved_count ?></td>
|
||||
<td class="text-right"><?= $ticket_total_time_worked ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-right"><?= $avg_time_to_resolve ?></td>
|
||||
<td class="text-end"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-end"><?= $low_ticket_count ?></td>
|
||||
<td class="text-end"><?= $med_ticket_count ?></td>
|
||||
<td class="text-end"><?= $high_ticket_count ?></td>
|
||||
<td class="text-end"><?= $urgent_ticket_count ?></td>
|
||||
<td class="text-end"><?= $ticket_resolved_count ?></td>
|
||||
<td class="text-end"><?= $ticket_total_time_worked ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_respond ?></td>
|
||||
<td class="text-end"><?= $avg_time_to_resolve ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -27,9 +27,9 @@ $largest_ticket_month = 0;
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring mr-2"></i>Ticket Summary</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring me-2"></i>Ticket Summary</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
@@ -53,19 +53,19 @@ $largest_ticket_month = 0;
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-right">January</th>
|
||||
<th class="text-right">February</th>
|
||||
<th class="text-right">March</th>
|
||||
<th class="text-right">April</th>
|
||||
<th class="text-right">May</th>
|
||||
<th class="text-right">June</th>
|
||||
<th class="text-right">July</th>
|
||||
<th class="text-right">August</th>
|
||||
<th class="text-right">September</th>
|
||||
<th class="text-right">October</th>
|
||||
<th class="text-right">November</th>
|
||||
<th class="text-right">December</th>
|
||||
<th class="text-right">Total</th>
|
||||
<th class="text-end">January</th>
|
||||
<th class="text-end">February</th>
|
||||
<th class="text-end">March</th>
|
||||
<th class="text-end">April</th>
|
||||
<th class="text-end">May</th>
|
||||
<th class="text-end">June</th>
|
||||
<th class="text-end">July</th>
|
||||
<th class="text-end">August</th>
|
||||
<th class="text-end">September</th>
|
||||
<th class="text-end">October</th>
|
||||
<th class="text-end">November</th>
|
||||
<th class="text-end">December</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -84,10 +84,10 @@ $largest_ticket_month = 0;
|
||||
}
|
||||
|
||||
$total_tickets_for_all_months += $tickets_for_month; ?>
|
||||
<td class="text-right"><?= $tickets_for_month ?></td>
|
||||
<td class="text-end"><?= $tickets_for_month ?></td>
|
||||
<?php } ?>
|
||||
|
||||
<td class="text-right"><b><?= $total_tickets_for_all_months ?></b></td>
|
||||
<td class="text-end"><b><?= $total_tickets_for_all_months ?></b></td>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -21,9 +21,9 @@ $rows = 0;
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring mr-2"></i>Unbilled Tickets By Client</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring me-2"></i>Unbilled Tickets By Client</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -42,9 +42,9 @@ $rows = 0;
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Client</th>
|
||||
<th class="text-right">Tickets Raised</th>
|
||||
<th class="text-right">Billable Tickets</th>
|
||||
<th class="text-right">Unbilled Tickets</th>
|
||||
<th class="text-end">Tickets Raised</th>
|
||||
<th class="text-end">Billable Tickets</th>
|
||||
<th class="text-end">Unbilled Tickets</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -116,9 +116,9 @@ $rows = 0;
|
||||
<td>
|
||||
<a href="../../agent/tickets.php?client_id=<?= $client_id ?>&billable=1&unbilled"><?= $client_name ?></a>
|
||||
</td>
|
||||
<td class="text-right"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-right"><?= $ticket_closed_count ?></td>
|
||||
<td class="text-right"><?= $ticket_unbilled_count ?></td>
|
||||
<td class="text-end"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-end"><?= $ticket_closed_count ?></td>
|
||||
<td class="text-end"><?= $ticket_unbilled_count ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -34,9 +34,9 @@ $sql_users = mysqli_query($mysqli, "
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-2">
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring mr-2"></i>Time Logged By Technician</h3>
|
||||
<h3 class="card-title mt-2"><i class="fas fa-fw fa-life-ring me-2"></i>Time Logged By Technician</h3>
|
||||
<div class="card-tools">
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print mr-2"></i>Print</button>
|
||||
<button type="button" class="btn btn-primary d-print-none" onclick="window.print();"><i class="fas fa-fw fa-print me-2"></i>Print</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@@ -52,7 +52,7 @@ $sql_users = mysqli_query($mysqli, "
|
||||
|
||||
<div class="card card-dark mb-3">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area mr-2"></i>Yearly (<?= $year ?>)</h3>
|
||||
<h3 class="card-title"><i class="fas fa-fw fa-chart-area me-2"></i>Yearly (<?= $year ?>)</h3>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive-sm">
|
||||
@@ -60,9 +60,9 @@ $sql_users = mysqli_query($mysqli, "
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Technician</th>
|
||||
<th class="text-right">Tickets assigned</th>
|
||||
<th class="text-right">Tickets touched</th>
|
||||
<th class="text-right">Total time worked <i>(H:M:S)</i></th>
|
||||
<th class="text-end">Tickets assigned</th>
|
||||
<th class="text-end">Tickets touched</th>
|
||||
<th class="text-end">Total time worked <i>(H:M:S)</i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -116,9 +116,9 @@ $sql_users = mysqli_query($mysqli, "
|
||||
|
||||
<tr>
|
||||
<td><?= $user_name ?></td>
|
||||
<td class="text-right"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-right"><?= $tickets_touched ?></td>
|
||||
<td class="text-right"><?= $ticket_total_time_worked ?></td>
|
||||
<td class="text-end"><?= $ticket_raised_count ?></td>
|
||||
<td class="text-end"><?= $tickets_touched ?></td>
|
||||
<td class="text-end"><?= $ticket_total_time_worked ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user