First Commit

This commit is contained in:
marco
2026-09-01 07:49:48 -03:00
commit 28b1044038
399 changed files with 41659 additions and 0 deletions
+76
View File
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="{{ str_replace("_", "-", app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield("title", config("app.name", "Annunk")) - {{ config("app.name") }}</title>
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600,700&display=swap" rel="stylesheet" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Figtree', 'sans-serif'],
},
}
}
}
</script>
<style>
[x-cloak] { display: none !important; }
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
</style>
@stack("styles")
</head>
<body class="font-sans antialiased bg-gray-50">
<div class="min-h-screen">
@include("layouts.navigation")
@isset($header)
<header class="bg-white shadow-sm border-b border-gray-100">
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endisset
<!-- Page Content -->
<main>
@yield("content")
</main>
<!-- Footer -->
<footer class="bg-white border-t border-gray-200 mt-8">
<div class="max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8">
<p class="text-center text-sm text-gray-600">
&copy;2026 - {{ __('auth.All rights reserved') }} - {{ __('auth.Powered by') }}
<a href="https://syspanel.com.br" target="_blank" rel="noopener noreferrer" class="text-indigo-600 hover:text-indigo-800">Syspanel</a>
</p>
<p class="text-center text-sm text-gray-600 mt-2">
<a href="{{ route('legal.terms') }}" class="text-indigo-600 hover:text-indigo-800">{{ __('legal.terms_of_use') }}</a>
<span class="mx-2">|</span>
<a href="{{ route('legal.cookies') }}" class="text-indigo-600 hover:text-indigo-800">{{ __('legal.cookie_policy') }}</a>
<span class="mx-2">|</span>
<a href="{{ route('legal.privacy') }}" class="text-indigo-600 hover:text-indigo-800">{{ __('legal.privacy_policy') }}</a>
</p>
</div>
</footer>
</div>
@include('components.cookie-banner')
@stack("scripts")
</body>
</html>
+339
View File
@@ -0,0 +1,339 @@
<nav x-data="{ open: false }" class="bg-white border-b border-gray-100 shadow-sm">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<!-- Left side -->
<div class="flex items-center">
<div class="shrink-0 flex items-center">
<a href="{{ route("dashboard") }}" class="text-xl font-bold bg-gradient-to-r from-indigo-600 to-purple-600 bg-clip-text text-transparent">
Annunk
</a>
</div>
<!-- Desktop Navigation -->
<div class="hidden space-x-1 sm:-my-px sm:ms-8 sm:flex">
<!-- Dashboard -->
<a href="{{ route("dashboard") }}"
class="inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg {{ request()->routeIs("dashboard") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
<svg class="w-4 h-4 mr-1.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"/>
</svg>
{{ __("Dashboard") }}
</a>
@role("admin|superadmin")
<!-- AI Chat -->
<a href="{{ route("chat.index") }}"
class="inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg {{ request()->routeIs("chat.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
<svg class="w-4 h-4 mr-1.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
</svg>
{{ __("Chat com IA") }}
</a>
<!-- Learning Dropdown -->
<div x-data="{ learningOpen: false }" class="relative">
<button @click="learningOpen = !learningOpen" @click.away="learningOpen = false"
class="inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg {{ request()->routeIs("admin.subjects.*") || request()->routeIs("admin.insights.*") || request()->routeIs("admin.custom-subjects.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
<svg class="w-4 h-4 mr-1.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>
</svg>
{{ __("Learning") }}
<svg class="ml-1 w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="learningOpen" class="origin-top-left absolute left-0 mt-2 w-56 rounded-xl shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-50 py-1">
<a href="{{ route("admin.interests.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("admin.interests.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/>
</svg>
{{ __("My Interests") }}
</a>
<a href="{{ route("admin.subjects.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("admin.subjects.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
</svg>
{{ __("Subjects") }}
</a>
<a href="{{ route("admin.insights.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("admin.insights.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z"/>
</svg>
{{ __("Insights") }}
</a>
<a href="{{ route("admin.custom-subjects.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("admin.custom-subjects.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" 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"/>
</svg>
{{ __("My Custom Subjects") }}
</a>
</div>
</div>
<!-- Integrations Dropdown -->
<div x-data="{ integOpen: false }" class="relative">
<button @click="integOpen = !integOpen" @click.away="integOpen = false"
class="inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg {{ request()->routeIs("admin.telegram.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
<svg class="w-4 h-4 mr-1.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/>
</svg>
{{ __("Integrations") }}
<svg class="ml-1 w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="integOpen" class="origin-top-left absolute left-0 mt-2 w-56 rounded-xl shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-50 py-1">
<a href="{{ route("admin.telegram.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("admin.telegram.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
</svg>
{{ __("Telegram Bot") }}
</a>
</div>
</div>
@endrole
@role("superadmin")
<!-- Admin Dropdown -->
<div x-data="{ adminOpen: false }" class="relative">
<button @click="adminOpen = !adminOpen" @click.away="adminOpen = false"
class="inline-flex items-center px-3 py-2 text-sm font-medium rounded-lg {{ request()->routeIs("superadmin.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
<svg class="w-4 h-4 mr-1.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
</svg>
{{ __("Admin") }}
<svg class="ml-1 w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</button>
<div x-show="adminOpen" class="origin-top-left absolute left-0 mt-2 w-56 rounded-xl shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-50 py-1">
<a href="{{ route("superadmin.users.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("superadmin.users.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197m13.5-9a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0z"/>
</svg>
{{ __("Users") }}
</a>
<a href="{{ route("superadmin.system.index") }}"
class="block px-4 py-2.5 text-sm text-gray-700 hover:bg-gray-50 {{ request()->routeIs("superadmin.system.*") ? "bg-indigo-50 text-indigo-700" : "" }}">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/>
</svg>
{{ __("System") }}
</a>
</div>
</div>
@endrole
</div>
</div>
<!-- Right side -->
<div class="flex items-center gap-2">
<!-- Language Selector -->
<x-language-selector variant="text-gray-500 hover:text-gray-700" />
@auth
<!-- Notifications -->
<div class="hidden sm:flex sm:items-center sm:ms-2">
<div x-data="{ notifOpen: false }" class="relative">
<button @click="notifOpen = !notifOpen" @click.away="notifOpen = false"
class="relative inline-flex items-center p-2 text-sm font-medium rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-50 focus:outline-none transition">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"/>
</svg>
@if($unreadNotifications->count() > 0)
<span class="absolute top-1 right-1 inline-flex items-center justify-center px-1.5 py-0.5 text-xs font-bold leading-none text-white bg-red-600 rounded-full">
{{ $unreadNotifications->count() > 9 ? '9+' : $unreadNotifications->count() }}
</span>
@endif
</button>
<div x-show="notifOpen" @click.away="notifOpen = false"
class="origin-top-right absolute right-0 mt-2 w-80 rounded-xl shadow-lg bg-white ring-1 ring-black ring-opacity-5 z-50 py-1">
<div class="px-4 py-3 border-b border-gray-100">
<p class="text-sm font-semibold text-gray-900">{{ __('Notifications') }}</p>
</div>
@forelse($unreadNotifications->take(5) as $notification)
<a href="{{ route('notifications.index') }}"
class="block px-4 py-3 text-sm text-gray-700 hover:bg-gray-50 border-b border-gray-100 last:border-0">
<div class="flex items-center gap-2">
<span>{{ $notification->typeIcon() }}</span>
<div class="flex-1 min-w-0">
<p class="font-medium text-gray-900 truncate">{{ $notification->title }}</p>
<p class="text-xs text-gray-500 truncate">{{ $notification->message }}</p>
</div>
</div>
</a>
@empty
<div class="px-4 py-3 text-sm text-gray-500">
{{ __('No new notifications.') }}
</div>
@endforelse
<div class="border-t border-gray-100">
<a href="{{ route('notifications.index') }}"
class="block px-4 py-2 text-sm text-indigo-600 hover:bg-gray-50 font-medium text-center">
{{ __('View all notifications') }}
</a>
</div>
</div>
</div>
</div>
<!-- User Dropdown -->
<div class="hidden sm:flex sm:items-center sm:ms-2">
<div class="ms-3 relative">
<div x-data="{ open: false }" class="relative">
<button @click="open = !open" class="flex items-center text-sm focus:outline-none">
<span class="inline-flex items-center px-3 py-2 border border-gray-200 text-sm leading-4 font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none transition">
<span class="w-6 h-6 rounded-full bg-indigo-100 flex items-center justify-center text-xs font-bold text-indigo-600 mr-2">
{{ substr(Auth::user()->name, 0, 1) }}
</span>
{{ Auth::user()->name }}
<svg class="ml-2 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
</svg>
</span>
</button>
<div x-show="open" @click.away="open = false"
class="origin-top-right absolute right-0 mt-2 w-56 rounded-xl shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 z-50">
<div class="px-4 py-3 border-b border-gray-100">
<p class="text-sm font-medium text-gray-900">{{ Auth::user()->name }}</p>
<p class="text-xs text-gray-500">{{ Auth::user()->email }}</p>
</div>
<a href="{{ route("profile.edit") }}"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
</svg>
{{ __("Profile") }}
</a>
<a href="{{ route('legal.history') }}"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-50">
<svg class="w-4 h-4 inline mr-2" 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"/>
</svg>
{{ __("Legal History") }}
</a>
<div class="border-t border-gray-100"></div>
<form method="POST" action="{{ route("logout") }}">
@csrf
<button type="submit" class="w-full text-left block px-4 py-2 text-sm text-red-600 hover:bg-red-50">
<svg class="w-4 h-4 inline mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"/>
</svg>
{{ __("Log Out") }}
</button>
</form>
</div>
</div>
</div>
</div>
@endauth
<!-- Mobile menu button -->
<button @click="open = !open" class="sm:hidden inline-flex items-center justify-center p-2 rounded-md text-gray-500 hover:text-gray-700 hover:bg-gray-100 focus:outline-none transition">
<svg class="h-6 w-6" stroke="currentColor" fill="none" viewBox="0 0 24 24">
<path :class="{'hidden': open, 'inline-flex': !open }" class="inline-flex" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
<path :class="{'hidden': !open, 'inline-flex': open }" class="hidden" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
</svg>
</button>
</div>
</div>
</div>
<!-- Mobile Navigation -->
@auth
<div x-show="open" class="sm:hidden border-t border-gray-100">
<div class="pt-2 pb-3 space-y-1 px-4">
<a href="{{ route("dashboard") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("dashboard") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Dashboard") }}
</a>
@role("admin|superadmin")
<a href="{{ route("chat.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("chat.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Chat com IA") }}
</a>
<div class="text-xs font-semibold text-gray-400 uppercase tracking-wider px-3 pt-4 pb-1">{{ __("Learning") }}</div>
<a href="{{ route("admin.interests.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("admin.interests.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("My Interests") }}
</a>
<a href="{{ route("admin.subjects.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("admin.subjects.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Subjects") }}
</a>
<a href="{{ route("admin.insights.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("admin.insights.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Insights") }}
</a>
<a href="{{ route("admin.custom-subjects.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("admin.custom-subjects.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("My Custom Subjects") }}
</a>
<div class="text-xs font-semibold text-gray-400 uppercase tracking-wider px-3 pt-4 pb-1">{{ __("Integrations") }}</div>
<a href="{{ route("admin.telegram.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("admin.telegram.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Telegram") }}
</a>
@endrole
@role("superadmin")
<div class="text-xs font-semibold text-gray-400 uppercase tracking-wider px-3 pt-4 pb-1">{{ __("Administration") }}</div>
<a href="{{ route("superadmin.users.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("superadmin.users.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("Users") }}
</a>
<a href="{{ route("superadmin.system.index") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium {{ request()->routeIs("superadmin.system.*") ? "bg-indigo-50 text-indigo-700" : "text-gray-500 hover:text-gray-700 hover:bg-gray-50" }}">
{{ __("System") }}
</a>
@endrole
</div>
<div class="pt-4 pb-3 border-t border-gray-200 px-4">
<div class="flex items-center">
<div class="flex-shrink-0">
<span class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center text-sm font-bold text-indigo-600">
{{ substr(Auth::user()->name, 0, 1) }}
</span>
</div>
<div class="ml-3">
<div class="text-base font-medium text-gray-800">{{ Auth::user()->name }}</div>
<div class="text-sm font-medium text-gray-500">{{ Auth::user()->email }}</div>
</div>
</div>
<div class="mt-3 space-y-1">
<a href="{{ route("profile.edit") }}"
class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">
{{ __("Profile") }}
</a>
<a href="{{ route('legal.history') }}"
class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-500 hover:text-gray-700 hover:bg-gray-50">
{{ __("Legal History") }}
</a>
<form method="POST" action="{{ route("logout") }}">
@csrf
<button type="submit" class="w-full text-left block px-3 py-2 rounded-lg text-sm font-medium text-red-600 hover:bg-red-50">
{{ __("Log Out") }}
</button>
</form>
</div>
</div>
</div>
@endauth
</nav>
+104
View File
@@ -0,0 +1,104 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title', config('app.name', 'Annunk'))</title>
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600,700&display=swap" rel="stylesheet" />
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Figtree', 'sans-serif'],
},
}
}
}
</script>
<style>
.hero-gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
[x-cloak] { display: none !important; }
</style>
</head>
<body class="font-sans antialiased">
<div class="min-h-screen flex flex-col">
<!-- Navigation -->
<nav class="bg-white shadow-sm border-b border-gray-100">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center h-16">
<div class="flex items-center">
<a href="{{ url('/') }}" class="text-2xl font-bold bg-gradient-to-r from-indigo-600 to-purple-600 bg-clip-text text-transparent">
Annunk
</a>
</div>
<div class="flex items-center gap-4">
<x-language-selector />
@if (Route::has('login'))
@auth
<a href="{{ route('dashboard') }}" class="inline-flex items-center px-4 py-2 bg-indigo-600 text-white text-sm font-medium rounded-lg hover:bg-indigo-700 transition">
{{ __('auth.Dashboard') }}
</a>
@else
@if (!request()->routeIs('login'))
<a href="{{ route('login') }}" class="inline-flex items-center px-4 py-2 text-indigo-600 text-sm font-medium hover:text-indigo-700 transition">
{{ __('auth.Log in') }}
</a>
@endif
@if (Route::has('register') && !request()->routeIs('register'))
<a href="{{ route('register') }}" class="inline-flex items-center px-4 py-2 bg-indigo-600 text-white text-sm font-medium rounded-lg hover:bg-indigo-700 transition">
{{ __('auth.Register') }}
</a>
@endif
@endauth
@endif
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<main class="flex-grow {{ $lightBackground ?? false ? 'bg-gray-50' : 'hero-gradient flex items-center justify-center' }} px-4 py-12">
@yield('content')
</main>
<!-- Footer -->
<footer class="bg-gray-900 text-white">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
<div class="text-center">
<p class="text-sm text-gray-300">
@2026 - {{ __('auth.All rights reserved') }} - {{ __('auth.Powered by') }} <a href="https://syspanel.com.br" target="_blank" rel="noopener noreferrer" class="text-indigo-400 hover:text-indigo-300">Syspanel</a> - <a href="https://syspanel.com.br" target="_blank" rel="noopener noreferrer" class="text-indigo-400 hover:text-indigo-300">www.syspanel.com.br</a>
</p>
<p class="text-sm text-gray-300 mt-2">
<a href="{{ route('legal.terms') }}" class="text-indigo-400 hover:text-indigo-300">{{ __('legal.terms_of_use') }}</a>
<span class="mx-2">|</span>
<a href="{{ route('legal.cookies') }}" class="text-indigo-400 hover:text-indigo-300">{{ __('legal.cookie_policy') }}</a>
<span class="mx-2">|</span>
<a href="{{ route('legal.privacy') }}" class="text-indigo-400 hover:text-indigo-300">{{ __('legal.privacy_policy') }}</a>
</p>
</div>
</div>
</footer>
</div>
@include('components.cookie-banner')
@stack('scripts')
</body>
</html>