<!doctype html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>@yield('title', 'Admin Panel')</title>
    <link rel="stylesheet" href="{{ asset('css/admin.css') }}">
</head>
<body class="@yield('body-class')">
    @unless(View::hasSection('hideHeader'))
        <header class="admin-header">
            <div class="admin-brand">EleaStore Admin</div>
            <nav class="admin-nav">
                <a href="{{ route('admin.dashboard') }}">Dashboard</a>
                <a href="{{ route('admin.products.index') }}">Produk</a>
                <a href="{{ route('admin.reports.inventory') }}">Laporan</a>
                <a href="{{ route('admin.stock-movements.index') }}">Riwayat Stok</a>
                <form method="post" action="{{ route('admin.logout') }}" style="display:inline">@csrf<button class="btn ghost" type="submit">Logout</button></form>
            </nav>
        </header>
    @endunless

    <main class="admin-container">
        @yield('content')
    </main>
</body>
</html>
