backoffice/resources/views/dashboard.blade.php

41 lines
No EOL
1.7 KiB
PHP

<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BACKOFFICE - Webhooks</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100 p-8">
<div class="max-w-6xl mx-auto bg-white p-6 rounded shadow">
<h1 class="text-2xl font-bold mb-4">Webhooks Recibidos</h1>
<div class="overflow-x-auto">
<table class="w-full text-left border-collapse">
<thead>
<tr class="bg-gray-200">
<th class="p-2 border">ID</th>
<th class="p-2 border">Fecha</th>
<th class="p-2 border">Origen</th>
<th class="p-2 border">Payload</th>
</tr>
</thead>
<tbody>
<?php foreach($entries as $entry): ?>
<tr>
<td class="p-2 border"><?= $entry->id ?></td>
<td class="p-2 border"><?= $entry->created_at ?></td>
<td class="p-2 border"><?= htmlspecialchars($entry->source) ?></td>
<td class="p-2 border"><pre class="text-xs bg-gray-50 p-2 rounded max-h-48 overflow-auto"><?= htmlspecialchars($entry->payload) ?></pre></td>
</tr>
<?php endforeach; ?>
<?php if($entries->isEmpty()): ?>
<tr>
<td colspan="4" class="p-4 text-center text-gray-500">No hay webhooks recibidos aún.</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</body>
</html>