<!doctype html>
<html lang="id">
<head>
  <meta charset="utf-8">
  <title>Admin - @yield('title','Panel')</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
  <nav class="navbar navbar-dark bg-dark">
    <div class="container">
      <a class="navbar-brand" href="{{ route('admin.dashboard') }}">Home</a>
      <div class="d-flex gap-2">
        <a href="{{ route('admin.galeri.index') }}" class="btn btn-outline-light btn-sm">Galeri</a>
        <a href="{{ route('admin.kegiatan.index') }}" class="btn btn-outline-light btn-sm">Kegiatan</a>
        <a href="{{ route('admin.program.index') }}" class="btn btn-outline-light btn-sm">program</a>
        @if(Route::has('admin.logout'))
          <form action="{{ route('admin.logout') }}" method="POST">@csrf
            <button class="btn btn-danger btn-sm">Logout</button>
          </form>
        @endif
      </div>
    </div>
  </nav>

  <main class="container py-4">
    @if(session('success'))
      <div class="alert alert-success">{{ session('success') }}</div>
    @endif
    @yield('content')
  </main>
</body>
</html>
