<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}} · {{.S.SiteName}} Yönetim</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/admin.css?v=8">
<link rel="icon" href="/static/img/logo-mark.svg?v=2">
</head>
<body>
<div class="admin-shell">
  <aside class="sidebar">
    <a class="side-brand" href="/admin/panel"><span class="brand-mark"><img class="brand-img" src="/static/img/logo-mark.svg" alt="BabyToyAkü logo"></span> {{$bp := brandParts .S.SiteName}}<span class="brand-text">{{index $bp 0}}<span class="brand-x">{{index $bp 1}}</span></span></a>
    <nav class="side-nav">
      <a href="/admin/panel" class="{{if eq .Active "panel"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-dash"/></svg>Panel</a>
      <a href="/admin/urunler" class="{{if eq .Active "urunler"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-car"/></svg>Ürünler</a>
      <a href="/admin/siparisler" class="{{if eq .Active "siparisler"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-box"/></svg>Siparişler</a>
      <a href="/admin/kampanya" class="{{if eq .Active "kampanya"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-percent"/></svg>Kampanya</a>
      <a href="/admin/mesajlar" class="{{if eq .Active "mesajlar"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-msg"/></svg>Mesajlar</a>
      <a href="/admin/ayarlar" class="{{if eq .Active "ayarlar"}}on{{end}}"><svg class="ico ico-sm"><use href="/static/icons.svg#i-gear"/></svg>Ayarlar</a>
    </nav>
    <div class="side-foot">
      <a href="/" target="_blank"><svg class="ico ico-sm"><use href="/static/icons.svg#i-globe"/></svg>Siteyi Görüntüle</a>
      <a href="/admin/cikis"><svg class="ico ico-sm"><use href="/static/icons.svg#i-out"/></svg>Çıkış</a>
    </div>
  </aside>
  <main class="admin-main">
    <header class="admin-head">
      <h1>{{.Title}}</h1>
    </header>
    {{block "content" .}}{{end}}
  </main>
</div>
</body>
</html>
