<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="h-full">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ ($title ?? 'Dashboard') . ' — STP Admin' }}</title>
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
</head>
<body class="h-full bg-gray-50 font-sans antialiased">
<div class="min-h-screen">
{{-- Top bar --}}
<nav class="bg-white border-b border-gray-200 px-4 py-3 flex items-center justify-between">
<a href="/admin" class="text-sm font-semibold text-primary-600">← Back to Admin Panel</a>
<span class="text-sm text-gray-500">{{ Auth::user()->name ?? '' }}</span>
</nav>
{{-- Page content --}}
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
@if(session('success'))
<div class="mb-4 p-3 rounded bg-green-50 text-green-800 text-sm">{{ session('success') }}</div>
@endif
@if(session('error'))
<div class="mb-4 p-3 rounded bg-red-50 text-red-800 text-sm">{{ session('error') }}</div>
@endif
{{ $slot }}
</main>
</div>
@livewireScripts
</body>
</html>