Commit 860468aa authored by Mahmoud Aglan's avatar Mahmoud Aglan

fixed support

parent 2821b53d
...@@ -131,9 +131,9 @@ use App\Modules\Support\Services\AttachmentService; ...@@ -131,9 +131,9 @@ use App\Modules\Support\Services\AttachmentService;
</table> </table>
</div> </div>
<?php if (!empty($pagination) && $pagination['total_pages'] > 1): ?> <?php if (!empty($pagination) && ($pagination['last_page'] ?? 1) > 1): ?>
<div style="padding:15px 20px;border-top:1px solid #E5E7EB;display:flex;justify-content:center;gap:5px;"> <div style="padding:15px 20px;border-top:1px solid #E5E7EB;display:flex;justify-content:center;gap:5px;">
<?php for ($p = 1; $p <= $pagination['total_pages']; $p++): ?> <?php for ($p = 1; $p <= $pagination['last_page']; $p++): ?>
<?php $params = array_merge($filters, ['page' => $p]); ?> <?php $params = array_merge($filters, ['page' => $p]); ?>
<a href="/support?<?= http_build_query(array_filter($params)) ?>" class="btn btn-sm <?= $p === $pagination['current_page'] ? 'btn-primary' : 'btn-outline' ?>"><?= $p ?></a> <a href="/support?<?= http_build_query(array_filter($params)) ?>" class="btn btn-sm <?= $p === $pagination['current_page'] ? 'btn-primary' : 'btn-outline' ?>"><?= $p ?></a>
<?php endfor; ?> <?php endfor; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment