Ajustes Toast

This commit is contained in:
Halbe Bruno
2025-12-06 08:47:48 -03:00
parent 81dd696d0b
commit 77ae5965c1
13 changed files with 139 additions and 133 deletions

View File

@@ -76,6 +76,17 @@
<p class="px-4 text-xs font-semibold text-gray-400 uppercase tracking-wider">Gestão</p>
</div>
<a href="/admin/orders"
class="flex items-center px-4 py-3 text-gray-700 rounded-lg hover:bg-primary-50 hover:text-primary-700 transition-colors group <?= (strpos($_SERVER['REQUEST_URI'], '/admin/orders') !== false) ? 'bg-primary-50 text-primary-700' : '' ?>">
<svg class="w-5 h-5 mr-3 text-gray-400 group-hover:text-primary-500" fill="none"
stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z">
</path>
</svg>
Ordens Judiciais
</a>
<a href="/admin/clients"
class="flex items-center px-4 py-3 text-gray-700 rounded-lg hover:bg-primary-50 hover:text-primary-700 transition-colors group <?= (strpos($_SERVER['REQUEST_URI'], '/admin/clients') !== false) ? 'bg-primary-50 text-primary-700' : '' ?>">
<svg class="w-5 h-5 mr-3 text-gray-400 group-hover:text-primary-500" fill="none"
@@ -98,17 +109,6 @@
Servidores
</a>
<a href="/admin/orders"
class="flex items-center px-4 py-3 text-gray-700 rounded-lg hover:bg-primary-50 hover:text-primary-700 transition-colors group <?= (strpos($_SERVER['REQUEST_URI'], '/admin/orders') !== false) ? 'bg-primary-50 text-primary-700' : '' ?>">
<svg class="w-5 h-5 mr-3 text-gray-400 group-hover:text-primary-500" fill="none"
stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z">
</path>
</svg>
Ordens Judiciais
</a>
<a href="/admin/logs"
class="flex items-center px-4 py-3 text-gray-700 rounded-lg hover:bg-primary-50 hover:text-primary-700 transition-colors group <?= (strpos($_SERVER['REQUEST_URI'], '/admin/logs') !== false) ? 'bg-primary-50 text-primary-700' : '' ?>">
<svg class="w-5 h-5 mr-3 text-gray-400 group-hover:text-primary-500" fill="none"
@@ -184,21 +184,7 @@
<!-- Scrollable Content -->
<main class="flex-1 overflow-x-hidden overflow-y-auto bg-gray-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<?php if (isset($_SESSION['flash_success'])): ?>
<div class="mb-4 bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative"
role="alert">
<span class="block sm:inline"><?= $_SESSION['flash_success'] ?></span>
<?php unset($_SESSION['flash_success']); ?>
</div>
<?php endif; ?>
<?php if (isset($_SESSION['flash_error'])): ?>
<div class="mb-4 bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative"
role="alert">
<span class="block sm:inline"><?= $_SESSION['flash_error'] ?></span>
<?php unset($_SESSION['flash_error']); ?>
</div>
<?php endif; ?>
<?php if (isset($content))
include $content; ?>
@@ -210,6 +196,8 @@
<div x-show="sidebarOpen" @click="sidebarOpen = false"
class="fixed inset-0 z-30 bg-black bg-opacity-50 md:hidden" x-transition.opacity></div>
</div>
<?php include __DIR__ . '/../partials/toast.php'; ?>
</body>
</html>