- Bump DESK_MOLONI version to 3.0.1 across module - Normalize hooks to after_client_* and instantiate PerfexHooks safely - Fix OAuthController view path and API client class name - Add missing admin views for webhook config/logs; adjust view loading - Harden client portal routes and admin routes mapping - Make Dashboard/Logs/Queue tolerant to optional model methods - Align log details query with existing schema; avoid broken joins This makes the module operational in Perfex (admin + client), reduces 404s, and avoids fatal errors due to inconsistent tables/methods.
29 lines
903 B
PHP
29 lines
903 B
PHP
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
|
|
<div class="container">
|
|
<h3><?php echo _l('desk_moloni_webhook_logs'); ?></h3>
|
|
<?php if (empty($logs)) { ?>
|
|
<p>No webhook logs found.</p>
|
|
<?php } else { ?>
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>Timestamp</th>
|
|
<th>Event</th>
|
|
<th>Status</th>
|
|
<th>Error</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($logs as $log) { ?>
|
|
<tr>
|
|
<td><?php echo htmlspecialchars($log['timestamp'] ?? ''); ?></td>
|
|
<td><?php echo htmlspecialchars($log['endpoint'] ?? ''); ?></td>
|
|
<td><?php echo empty($log['error']) ? 'SUCCESS' : 'ERROR'; ?></td>
|
|
<td><?php echo htmlspecialchars($log['error'] ?? ''); ?></td>
|
|
</tr>
|
|
<?php } ?>
|
|
</tbody>
|
|
</table>
|
|
<?php } ?>
|
|
</div>
|